📄 config.h
字号:
/* lib/config.h. Generated automatically by configure. *//* lib/config.h.in. Generated automatically from configure.in by autoheader. *//*** This file has been automatically generated by 'acconfig' from aclocal.m4** Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>** ** This file is free software; as a special exception the author gives** unlimited permission to copy and/or distribute it, with or without ** modifications, as long as this notice is preserved.** ** This program is distributed in the hope that it will be useful, but** WITHOUT ANY WARRANTY, to the extent permitted by law; without even the** implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.*//* This is the top section *//* Define if you have <unistd.h>. */#define HAVE_UNISTD_H 1/* Define if on MINIX. *//* #undef _MINIX *//* Define if the system does not provide POSIX.1 features except with this defined. *//* #undef _POSIX_1_SOURCE *//* Define if you need to in order for stat and other things to work. *//* #undef _POSIX_SOURCE *//* Define as the return type of signal handlers (int or void). */#define RETSIGTYPE void/* Define if you can safely include both <sys/time.h> and <time.h>. */#define TIME_WITH_SYS_TIME 1/* And now the rest of the boys */#define HAVE_BOOL_TYPE 1#define HAVE_EXCEPTION_HANDLING 1#define HAVE_SIGACTION 1/* #undef HAVE_BSD_SIGNAL_H */#define HAVE_STRCASECMP 1#define HAVE_STRDUP 1#define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP#define HAVE_PTHREAD_MUTEXATTR_SETTYPE 1/* #undef HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP *//* #undef HAVE_PTHREAD_MUTEXATTR_SETKIND_NP */#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1/* #undef HAVE_PTHREAD_DELAY_NP */#define HAVE_PTHREAD_SCHED_YIELD 1/* #undef HAVE_PTHREAD_YIELD */#define HAVE_PTHREAD_NANOSLEEP 1#define HAVE_PTHREAD_CANCEL 1#define HAVE_PTHREAD_SETCANCELTYPE 1/* #undef HAVE_PTHREAD_SETCANCEL */#define HAVE_SYS_TIME_H 1#define TIME_WITH_SYS_TIME 1#define HAVE_SYS_SOCKET_H 1#define HAVE_ARPA_INET_H 1#define HAVE_SYS_UN_H 1/* #undef HAVE_SELECT_H */#define HAVE_SYS_SELECT_H 1#define HAVE_INET_ATON 1#define HAVE_INET_SOCKETS 1#define HAVE_UNIX_SOCKETS 1#define HAVE_SOCKLEN_T 1/* #undef HAVE_SYS_RESOURCE_H *//* #undef HAVE_PDETACH *//* #undef HAVE_SYSEXITS_H *//* #undef HAVE_TCPD_H *//* #undef HAVE_DLOPEN */#define HAVE_MODULES 1/* Define if you have the lockf function. */#define HAVE_LOCKF 1/* Define if you have the realpath function. */#define HAVE_REALPATH 1/* Define if you have the sigaction function. */#define HAVE_SIGACTION 1/* Define if you have the strcasecmp function. */#define HAVE_STRCASECMP 1/* Define if you have the strdup function. */#define HAVE_STRDUP 1/* Define if you have the <arpa/inet.h> header file. */#define HAVE_ARPA_INET_H 1/* Define if you have the <bsd/signal.h> header file. *//* #undef HAVE_BSD_SIGNAL_H *//* Define if you have the <dlfcn.h> header file. */#define HAVE_DLFCN_H 1/* Define if you have the <pthread.h> header file. */#define HAVE_PTHREAD_H 1/* Define if you have the <pthread_np.h> header file. *//* #undef HAVE_PTHREAD_NP_H *//* Define if you have the <sched.h> header file. */#define HAVE_SCHED_H 1/* Define if you have the <select.h> header file. *//* #undef HAVE_SELECT_H *//* Define if you have the <semaphore.h> header file. */#define HAVE_SEMAPHORE_H 1/* Define if you have the <sys/sched.h> header file. *//* #undef HAVE_SYS_SCHED_H *//* Define if you have the <sys/select.h> header file. */#define HAVE_SYS_SELECT_H 1/* Define if you have the <sys/socket.h> header file. */#define HAVE_SYS_SOCKET_H 1/* Define if you have the <sys/time.h> header file. */#define HAVE_SYS_TIME_H 1/* Define if you have the <sys/un.h> header file. */#define HAVE_SYS_UN_H 1/* Define if you have the <unistd.h> header file. */#define HAVE_UNISTD_H 1/* Define if you have the <winsock.h> header file. *//* #undef HAVE_WINSOCK_H *//* Define if you have the malloc library (-lmalloc). *//* #undef HAVE_LIBMALLOC *//* Name of package */#define PACKAGE "ACS"/* Version number of package */#define VERSION "0.5.5"/* This is the bottom section */ // Add bool support if missing#ifndef HAVE_BOOL_TYPEtypedef enum { true=1, false=0 } bool;#endif// replace 'throw' with abort for libs on broken C++#ifndef HAVE_EXCEPTION_HANDLING#define throw(x) abort()#define try if(1)#define catch(x) if(0)#endif #ifdef HAVE_SIGACTION#ifdef HAVE_BSD_SIGNAL_H/* #undef HAVE_BSD_SIGNAL_H */#endif#endif#ifdef HAVE_BSD_SIGNAL_H#include <bsd/signal.h>#else#include <signal.h>#endif#ifndef SA_ONESHOT#define SA_ONESHOT SA_RESETHAND#endif #ifdef HAVE_UNISTD_H#include <sys/types.h>#include <unistd.h>#endif #include <string.h>#ifdef HAVE_STRCASECMP#ifndef stricmp#define stricmp(x,y) strcasecmp(x,y)#endif#ifndef strnicmp#define strnicmp(x,y,n) strncasecmp(x,y,n)#endif#endif#ifndef HAVE_STRDUP#define strdup(s) (char *)malloc(strlen(s))#endif#if defined(__SVR4) && defined(__sun)#define _THR_SUNOS5#else#if defined(__SVR4__) && defined(__SUN__)#define _THR_SUNOS5#endif#endif#ifdef _THR_SUNOS5#include "/usr/include/thread.h"#endif#if defined(HAVE_PTHREAD_H) && defined(_THREAD_SAFE)#ifndef __USE_UNIX98#define __USE_UNIX98#include <pthread.h>/* #undef __USE_UNIX98 */#else#include <pthread.h>#endif#ifdef HAVE_PTHREAD_NP_H#include <pthread_np.h>#endif#ifdef HAVE_SEMAPHORE_H#include <semaphore.h>#endif#ifdef _POSIX_PRIORITY_SCHEDULING#ifdef HAVE_SCHED_H#include <sched.h>#else#ifdef HAVE_SYS_SCHED_H#include <sys/sched.h>#endif#endif#endif#define __PTHREAD_H__#ifndef PTHREAD_MUTEXTYPE_RECURSIVE#ifdef MUTEX_TYPE_COUNTING_FAST#define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP#endif#endif#ifndef HAVE_PTHREAD_MUTEXATTR_SETTYPE#if HAVE_PTHREAD_MUTEXATTR_SETKIND_NP#ifndef PTHREAD_MUTEXTYPE_RECURSIVE#define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP#endif#define pthread_mutexattr_gettype(x, y) pthread_mutexattr_getkind_np(x, y)#define pthread_mutexattr_settype(x, y) pthread_mutexattr_setkind_np(x, y)#endif #if HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP#ifndef PTHREAD_MUTEXTYPE_RECURSIVE#define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP#endif#define pthread_mutexattr_settype(x, y) pthread_mutexattr_settype_np(x, y)#define pthread_mutexattr_gettype(x, y) pthread_mutexattr_gettype_np(x, y)#endif#endif#ifndef HAVE_PTHREAD_YIELD#ifdef HAVE_PTHREAD_SCHED_YIELD#define pthread_yield() sched_yield()#define HAVE_PTHREAD_YIELD#endif#endif#ifndef HAVE_PTHREAD_DELAY#ifdef HAVE_PTHREAD_DELAY_NP#define HAVE_PTHREAD_DELAY#define pthread_delay(x) pthread_delay_np(x)#endif#ifdef HAVE_PTHREAD_NANOSLEEP#ifndef HAVE_PTHREAD_DELAY#define HAVE_PTHREAD_DELAY#define pthread_delay(x) nanosleep(x, NULL)#endif#endif#endif#ifdef HAVE_PTHREAD_ATTR_SETSTACK#ifndef PTHREAD_STACK_MIN#define PTHREAD_STACK_MIN 8192#endif#endif#ifndef HAVE_PTHREAD_CANCEL#ifdef SIGCANCEL#define _SIG_THREAD_CANCEL SIGCANCEL#else#define _SIG_THREAD_CANCEL SIGQUIT#endif#define pthread_cancel(x) pthread_kill(x, _SIG_THREAD_CANCEL)#endif#ifndef HAVE_PTHREAD_SETCANCELTYPE#ifdef HAVE_PTHREAD_SETCANCELenum{ PTHREAD_CANCEL_ASYNCHRONOUS = CANCEL_ON, PTHREAD_CANCEL_DEFERRED = CANCEL_OFF};enum{ PTHREAD_CANCEL_ENABLE = CANCEL_ON, PTHREAD_CANCEL_DISABLE = CANCEL_OFF};#define pthread_setcancelstate(x, y) \ (y == NULL) ? pthread_setcancel(x) : *y = pthread_setcancel#define pthread_setcanceltype(x, y) \ (y == NULL) ? pthread_setasynccancel(x) | *y = pthread_setasynccancel(x)#else#define pthread_setcanceltype(x, y)#define pthread_setcancelstate(x, y)#endif#endif#endif #if TIME_WITH_SYS_TIME#include <sys/time.h>#include <time.h>#else#if HAVE_SYS_TIME_H#include <sys/time.h>#else#include <time.h>#endif#endif #ifdef HAVE_WINSOCK_H#include <winsock.h>#else#ifdef HAVE_SYS_SOCKET_H#include <sys/socket.h>#ifdef HAVE_SELECT_H#include <select.h>#else#ifdef HAVE_SYS_SELECT_H#include <sys/select.h>#endif#endif#ifdef HAVE_ARPA_INET_H#include <netinet/in.h>#include <arpa/inet.h>#include <netdb.h>#endif#ifdef HAVE_SYS_UN_H#include <sys/un.h>#endif#endif#endif#ifndef HAVE_INET_ATON#define inet_aton(cp, addr) \ (((*(unsigned long int *)(addr)) = inet_addr(cp)) != -1)#endif#ifndef SUN_LEN#ifdef SCM_RIGHTS#define HAVE_UN_LEN#endif#ifdef __linux#define HAVE_UN_LEN#endif#ifdef HAVE_UN_LEN#define SUN_LEN(ptr) sizeof(sockaddr_un.sun_len) + \ sizeof(sockaddr_un.sun_family) + sizeof(sockaddr_un.sun_path) + 1#else#define SUN_LEN(ptr) ((size_t)((struct sockaddr_un *)0)->sun_path) \ + strlen((ptr)->sun_path))#endif#endif#ifndef HAVE_SOCKLEN_Ttypedef int socklen_t;#endif #ifdef HAVE_SYS_RESOURCE_H#include <sys/resource.h>#endif#ifdef HAVE_DLFCN_H#include <dlfcn.h>#endif#ifdef HAVE_SYSEXITS_H#include <sysexits.h>#endif#ifdef HAVE_TCPD_H#include <tcpd.h>#endif#ifndef EX_OK#define EX_OK 0#endif#ifndef EX_USAGE#define EX_USAGE 64#endif#ifndef EX_DATAERR#define EX_DATAERR 65#endif#ifndef EX_NOINPUT#define EX_NOINPUT 66#endif#ifndef EX_NOUSER#define EX_NOUSER 67#endif#ifndef EX_NOHOST#define EX_NOHOST 68#endif#ifndef EX_UNAVAILABLE#define EX_UNAVAILABLE 69#endif#ifndef EX_SOFTWARE#define EX_SOFTWARE 70#endif#ifndef EX_OSERR#define EX_OSERR 71#endif#ifndef EX_OSFILE#define EX_OSFILE 72#endif#ifndef EX_CANTCREAT#define EX_CANTCREAT 73#endif#ifndef EX_IOERR#define EX_IOERR 74#endif#ifndef EX_TEMPFAIL#define EX_TEMPFAIL 75#endif#ifndef EX_PROTOCOL#define EX_PROTOCOL 76#endif#ifndef EX_NOPERM#define EX_NOPERM 77#endif#ifndef EX_CONFIG#define EX_CONFIG 78#endif#ifndef EX__MAX#define EX__MAX 78#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -