Server IP : 104.21.38.3 / Your IP : 172.70.208.53 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/plugin/innodb_memcached/daemon_memcached/include/memcached/ |
Upload File : |
/* Copyright (c) 2016, 2023, Oracle and/or its affiliates. */ #ifndef UTIL_H #define UTIL_H /* * Wrappers around strtoull/strtoll that are safer and easier to * use. For tests and assumptions, see internal_tests.c. * * str a NULL-terminated base decimal 10 unsigned integer * out out parameter, if conversion succeeded * * returns true if conversion succeeded. */ #include <memcached/visibility.h> #include <memcached/types.h> /* Changed for INNODB_MEMCACHED */ #if defined(htonll) #define HAVE_HTONLL 1 #endif #ifdef __cplusplus extern "C" { #endif MEMCACHED_PUBLIC_API bool safe_strtoull(const char *str, uint64_t *out); MEMCACHED_PUBLIC_API bool safe_strtoll(const char *str, int64_t *out); MEMCACHED_PUBLIC_API bool safe_strtoul(const char *str, uint32_t *out); MEMCACHED_PUBLIC_API bool safe_strtol(const char *str, int32_t *out); MEMCACHED_PUBLIC_API bool safe_strtof(const char *str, float *out); #ifndef HAVE_HTONLL MEMCACHED_PUBLIC_API extern uint64_t htonll(uint64_t); MEMCACHED_PUBLIC_API extern uint64_t ntohll(uint64_t); #endif #ifdef __GCC # define __gcc_attribute__ __attribute__ #else # define __gcc_attribute__(x) #endif /** * Vararg variant of perror that makes for more useful error messages * when reporting with parameters. * * @param fmt a printf format */ MEMCACHED_PUBLIC_API void vperror(const char *fmt, ...) __gcc_attribute__ ((format (printf, 1, 2))); #ifdef __cplusplus } #endif /* __cplusplus */ #endif