📄 posix.xs
字号:
goto not_there;#endif if (strEQ(name, "ESTALE"))#ifdef ESTALE return ESTALE;#else goto not_there;#endif break; case 'T': if (strEQ(name, "ETIMEDOUT"))#ifdef ETIMEDOUT return ETIMEDOUT;#else goto not_there;#endif if (strEQ(name, "ETOOMANYREFS"))#ifdef ETOOMANYREFS return ETOOMANYREFS;#else goto not_there;#endif if (strEQ(name, "ETXTBSY"))#ifdef ETXTBSY return ETXTBSY;#else goto not_there;#endif break; case 'U': if (strEQ(name, "EUSERS"))#ifdef EUSERS return EUSERS;#else goto not_there;#endif break; case 'W': if (strEQ(name, "EWOULDBLOCK"))#ifdef EWOULDBLOCK return EWOULDBLOCK;#else goto not_there;#endif break; case 'X': if (strEQ(name, "EXIT_FAILURE"))#ifdef EXIT_FAILURE return EXIT_FAILURE;#else return 1;#endif if (strEQ(name, "EXIT_SUCCESS"))#ifdef EXIT_SUCCESS return EXIT_SUCCESS;#else return 0;#endif if (strEQ(name, "EXDEV"))#ifdef EXDEV return EXDEV;#else goto not_there;#endif break; } if (strEQ(name, "E2BIG"))#ifdef E2BIG return E2BIG;#else goto not_there;#endif break; case 'F': if (strnEQ(name, "FLT_", 4)) { if (strEQ(name, "FLT_MAX"))#ifdef FLT_MAX return FLT_MAX;#else goto not_there;#endif if (strEQ(name, "FLT_MIN"))#ifdef FLT_MIN return FLT_MIN;#else goto not_there;#endif if (strEQ(name, "FLT_ROUNDS"))#ifdef FLT_ROUNDS return FLT_ROUNDS;#else goto not_there;#endif if (strEQ(name, "FLT_DIG"))#ifdef FLT_DIG return FLT_DIG;#else goto not_there;#endif if (strEQ(name, "FLT_EPSILON"))#ifdef FLT_EPSILON return FLT_EPSILON;#else goto not_there;#endif if (strEQ(name, "FLT_MANT_DIG"))#ifdef FLT_MANT_DIG return FLT_MANT_DIG;#else goto not_there;#endif if (strEQ(name, "FLT_MAX_10_EXP"))#ifdef FLT_MAX_10_EXP return FLT_MAX_10_EXP;#else goto not_there;#endif if (strEQ(name, "FLT_MAX_EXP"))#ifdef FLT_MAX_EXP return FLT_MAX_EXP;#else goto not_there;#endif if (strEQ(name, "FLT_MIN_10_EXP"))#ifdef FLT_MIN_10_EXP return FLT_MIN_10_EXP;#else goto not_there;#endif if (strEQ(name, "FLT_MIN_EXP"))#ifdef FLT_MIN_EXP return FLT_MIN_EXP;#else goto not_there;#endif if (strEQ(name, "FLT_RADIX"))#ifdef FLT_RADIX return FLT_RADIX;#else goto not_there;#endif break; } if (strnEQ(name, "F_", 2)) { if (strEQ(name, "F_DUPFD"))#ifdef F_DUPFD return F_DUPFD;#else goto not_there;#endif if (strEQ(name, "F_GETFD"))#ifdef F_GETFD return F_GETFD;#else goto not_there;#endif if (strEQ(name, "F_GETFL"))#ifdef F_GETFL return F_GETFL;#else goto not_there;#endif if (strEQ(name, "F_GETLK"))#ifdef F_GETLK return F_GETLK;#else goto not_there;#endif if (strEQ(name, "F_OK"))#ifdef F_OK return F_OK;#else goto not_there;#endif if (strEQ(name, "F_RDLCK"))#ifdef F_RDLCK return F_RDLCK;#else goto not_there;#endif if (strEQ(name, "F_SETFD"))#ifdef F_SETFD return F_SETFD;#else goto not_there;#endif if (strEQ(name, "F_SETFL"))#ifdef F_SETFL return F_SETFL;#else goto not_there;#endif if (strEQ(name, "F_SETLK"))#ifdef F_SETLK return F_SETLK;#else goto not_there;#endif if (strEQ(name, "F_SETLKW"))#ifdef F_SETLKW return F_SETLKW;#else goto not_there;#endif if (strEQ(name, "F_UNLCK"))#ifdef F_UNLCK return F_UNLCK;#else goto not_there;#endif if (strEQ(name, "F_WRLCK"))#ifdef F_WRLCK return F_WRLCK;#else goto not_there;#endif break; } if (strEQ(name, "FD_CLOEXEC"))#ifdef FD_CLOEXEC return FD_CLOEXEC;#else goto not_there;#endif if (strEQ(name, "FILENAME_MAX"))#ifdef FILENAME_MAX return FILENAME_MAX;#else goto not_there;#endif break; case 'H': if (strEQ(name, "HUGE_VAL"))#if defined(USE_LONG_DOUBLE) && defined(HUGE_VALL) /* HUGE_VALL is admittedly non-POSIX but if we are using long doubles * we might as well use long doubles. --jhi */ return HUGE_VALL;#endif#ifdef HUGE_VAL return HUGE_VAL;#else goto not_there;#endif if (strEQ(name, "HUPCL"))#ifdef HUPCL return HUPCL;#else goto not_there;#endif break; case 'I': if (strEQ(name, "INT_MAX"))#ifdef INT_MAX return INT_MAX;#else goto not_there;#endif if (strEQ(name, "INT_MIN"))#ifdef INT_MIN return INT_MIN;#else goto not_there;#endif if (strEQ(name, "ICANON"))#ifdef ICANON return ICANON;#else goto not_there;#endif if (strEQ(name, "ICRNL"))#ifdef ICRNL return ICRNL;#else goto not_there;#endif if (strEQ(name, "IEXTEN"))#ifdef IEXTEN return IEXTEN;#else goto not_there;#endif if (strEQ(name, "IGNBRK"))#ifdef IGNBRK return IGNBRK;#else goto not_there;#endif if (strEQ(name, "IGNCR"))#ifdef IGNCR return IGNCR;#else goto not_there;#endif if (strEQ(name, "IGNPAR"))#ifdef IGNPAR return IGNPAR;#else goto not_there;#endif if (strEQ(name, "INLCR"))#ifdef INLCR return INLCR;#else goto not_there;#endif if (strEQ(name, "INPCK"))#ifdef INPCK return INPCK;#else goto not_there;#endif if (strEQ(name, "ISIG"))#ifdef ISIG return ISIG;#else goto not_there;#endif if (strEQ(name, "ISTRIP"))#ifdef ISTRIP return ISTRIP;#else goto not_there;#endif if (strEQ(name, "IXOFF"))#ifdef IXOFF return IXOFF;#else goto not_there;#endif if (strEQ(name, "IXON"))#ifdef IXON return IXON;#else goto not_there;#endif break; case 'L': if (strnEQ(name, "LC_", 3)) { if (strEQ(name, "LC_ALL"))#ifdef LC_ALL return LC_ALL;#else goto not_there;#endif if (strEQ(name, "LC_COLLATE"))#ifdef LC_COLLATE return LC_COLLATE;#else goto not_there;#endif if (strEQ(name, "LC_CTYPE"))#ifdef LC_CTYPE return LC_CTYPE;#else goto not_there;#endif if (strEQ(name, "LC_MONETARY"))#ifdef LC_MONETARY return LC_MONETARY;#else goto not_there;#endif if (strEQ(name, "LC_NUMERIC"))#ifdef LC_NUMERIC return LC_NUMERIC;#else goto not_there;#endif if (strEQ(name, "LC_TIME"))#ifdef LC_TIME return LC_TIME;#else goto not_there;#endif break; } if (strnEQ(name, "LDBL_", 5)) { if (strEQ(name, "LDBL_MAX"))#ifdef LDBL_MAX return LDBL_MAX;#else goto not_there;#endif if (strEQ(name, "LDBL_MIN"))#ifdef LDBL_MIN return LDBL_MIN;#else goto not_there;#endif if (strEQ(name, "LDBL_DIG"))#ifdef LDBL_DIG return LDBL_DIG;#else goto not_there;#endif if (strEQ(name, "LDBL_EPSILON"))#ifdef LDBL_EPSILON return LDBL_EPSILON;#else goto not_there;#endif if (strEQ(name, "LDBL_MANT_DIG"))#ifdef LDBL_MANT_DIG return LDBL_MANT_DIG;#else goto not_there;#endif if (strEQ(name, "LDBL_MAX_10_EXP"))#ifdef LDBL_MAX_10_EXP return LDBL_MAX_10_EXP;#else goto not_there;#endif if (strEQ(name, "LDBL_MAX_EXP"))#ifdef LDBL_MAX_EXP return LDBL_MAX_EXP;#else goto not_there;#endif if (strEQ(name, "LDBL_MIN_10_EXP"))#ifdef LDBL_MIN_10_EXP return LDBL_MIN_10_EXP;#else goto not_there;#endif if (strEQ(name, "LDBL_MIN_EXP"))#ifdef LDBL_MIN_EXP return LDBL_MIN_EXP;#else goto not_there;#endif break; } if (strnEQ(name, "L_", 2)) { if (strEQ(name, "L_ctermid"))#ifdef L_ctermid return L_ctermid;#else goto not_there;#endif if (strEQ(name, "L_cuserid"))#ifdef L_cuserid return L_cuserid;#else goto not_there;#endif /* L_tmpnam[e] was a typo--retained for compatibility */ if (strEQ(name, "L_tmpname") || strEQ(name, "L_tmpnam"))#ifdef L_tmpnam return L_tmpnam;#else goto not_there;#endif break; } if (strEQ(name, "LONG_MAX"))#ifdef LONG_MAX return LONG_MAX;#else goto not_there;#endif if (strEQ(name, "LONG_MIN"))#ifdef LONG_MIN return LONG_MIN;#else goto not_there;#endif if (strEQ(name, "LINK_MAX"))#ifdef LINK_MAX return LINK_MAX;#else goto not_there;#endif break; case 'M': if (strEQ(name, "MAX_CANON"))#ifdef MAX_CANON return MAX_CANON;#else goto not_there;#endif if (strEQ(name, "MAX_INPUT"))#ifdef MAX_INPUT return MAX_INPUT;#else goto not_there;#endif if (strEQ(name, "MB_CUR_MAX"))#ifdef MB_CUR_MAX return MB_CUR_MAX;#else goto not_there;#endif if (strEQ(name, "MB_LEN_MAX"))#ifdef MB_LEN_MAX return MB_LEN_MAX;#else goto not_there;#endif break; case 'N': if (strEQ(name, "NULL")) return 0; if (strEQ(name, "NAME_MAX"))#ifdef NAME_MAX return NAME_MAX;#else goto not_there;#endif if (strEQ(name, "NCCS"))#ifdef NCCS return NCCS;#else goto not_there;#endif if (strEQ(name, "NGROUPS_MAX"))#ifdef NGROUPS_MAX return NGROUPS_MAX;#else goto not_there;#endif if (strEQ(name, "NOFLSH"))#ifdef NOFLSH return NOFLSH;#else goto not_there;#endif break; case 'O': if (strnEQ(name, "O_", 2)) { if (strEQ(name, "O_APPEND"))#ifdef O_APPEND return O_APPEND;#else goto not_there;#endif if (strEQ(name, "O_CREAT"))#ifdef O_CREAT return O_CREAT;#else goto not_there;#endif if (strEQ(name, "O_TRUNC"))#ifdef O_TRUNC return O_TRUNC;#else goto not_there;#endif if (strEQ(name, "O_RDONLY"))#ifdef O_RDONLY return O_RDONLY;#else goto not_there;#endif if (strEQ(name, "O_RDWR"))#ifdef O_RDWR return O_RDWR;#else goto not_there;#endif if (strEQ(name, "O_WRONLY"))#ifdef O_WRONLY return O_WRONLY;#else goto not_there;#endif if (strEQ(name, "O_EXCL"))#ifdef O_EXCL return O_EXCL;#else goto not_there;#endif if (strEQ(name, "O_NOCTTY"))#ifdef O_NOCTTY return O_NOCTTY;#else goto not_there;#endif if (strEQ(name, "O_NONBLOCK"))#ifdef O_NONBLOCK return O_NONBLOCK;#else goto not_there;#endif if (strEQ(name, "O_ACCMODE"))#ifdef O_ACCMODE return O_ACCMODE;#else goto not_there;#endif break; } if (strEQ(name, "OPEN_MAX"))#ifdef OPEN_MAX return OPEN_MAX;#else goto not_there;#endif if (strEQ(name, "OPOST"))#ifdef OPOST return OPOST;#else goto not_there;#endif break; case 'P': if (strEQ(name, "PATH_MAX"))#ifdef PATH_MAX return PATH_MAX;#else goto not_there;#endif if (strEQ(name, "PARENB"))#ifdef PARENB return PARENB;#else goto not_there;#endif if (strEQ(name, "PARMRK"))#ifdef PARMRK return PARMRK;#else goto not_there;#endif if (strEQ(name, "PARODD"))#ifdef PARODD return PARODD;#else goto not_there;#endif if (strEQ(name, "PIPE_BUF"))#ifdef PIPE_BUF return PIPE_BUF;#else goto not_there;#endif break; case 'R': if (strEQ(name, "RAND_MAX"))#ifdef RAND_MAX return RAND_MAX;#else goto not_there;#endif if (strEQ(name, "R_OK"))#ifdef R_OK return R_OK;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -