Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

184 lines
6.6 KiB

  1. # NOTE: Derived from ..\..\lib\POSIX.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package POSIX;
  5. #line 766 "..\..\lib\POSIX.pm (autosplit into ..\..\lib\auto\POSIX\load_imports.al)"
  6. sub load_imports {
  7. %EXPORT_TAGS = (
  8. assert_h => [qw(assert NDEBUG)],
  9. ctype_h => [qw(isalnum isalpha iscntrl isdigit isgraph islower
  10. isprint ispunct isspace isupper isxdigit tolower toupper)],
  11. dirent_h => [qw()],
  12. errno_h => [qw(E2BIG EACCES EADDRINUSE EADDRNOTAVAIL EAFNOSUPPORT
  13. EAGAIN EALREADY EBADF EBUSY ECHILD ECONNABORTED
  14. ECONNREFUSED ECONNRESET EDEADLK EDESTADDRREQ EDOM EDQUOT
  15. EEXIST EFAULT EFBIG EHOSTDOWN EHOSTUNREACH EINPROGRESS
  16. EINTR EINVAL EIO EISCONN EISDIR ELOOP EMFILE EMLINK
  17. EMSGSIZE ENAMETOOLONG ENETDOWN ENETRESET ENETUNREACH
  18. ENFILE ENOBUFS ENODEV ENOENT ENOEXEC ENOLCK ENOMEM
  19. ENOPROTOOPT ENOSPC ENOSYS ENOTBLK ENOTCONN ENOTDIR
  20. ENOTEMPTY ENOTSOCK ENOTTY ENXIO EOPNOTSUPP EPERM
  21. EPFNOSUPPORT EPIPE EPROCLIM EPROTONOSUPPORT EPROTOTYPE
  22. ERANGE EREMOTE ERESTART EROFS ESHUTDOWN ESOCKTNOSUPPORT
  23. ESPIPE ESRCH ESTALE ETIMEDOUT ETOOMANYREFS ETXTBSY
  24. EUSERS EWOULDBLOCK EXDEV errno)],
  25. fcntl_h => [qw(FD_CLOEXEC F_DUPFD F_GETFD F_GETFL F_GETLK F_RDLCK
  26. F_SETFD F_SETFL F_SETLK F_SETLKW F_UNLCK F_WRLCK
  27. O_ACCMODE O_APPEND O_CREAT O_EXCL O_NOCTTY O_NONBLOCK
  28. O_RDONLY O_RDWR O_TRUNC O_WRONLY
  29. creat
  30. SEEK_CUR SEEK_END SEEK_SET
  31. S_IRGRP S_IROTH S_IRUSR S_IRWXG S_IRWXO S_IRWXU
  32. S_ISBLK S_ISCHR S_ISDIR S_ISFIFO S_ISGID S_ISREG S_ISUID
  33. S_IWGRP S_IWOTH S_IWUSR)],
  34. float_h => [qw(DBL_DIG DBL_EPSILON DBL_MANT_DIG
  35. DBL_MAX DBL_MAX_10_EXP DBL_MAX_EXP
  36. DBL_MIN DBL_MIN_10_EXP DBL_MIN_EXP
  37. FLT_DIG FLT_EPSILON FLT_MANT_DIG
  38. FLT_MAX FLT_MAX_10_EXP FLT_MAX_EXP
  39. FLT_MIN FLT_MIN_10_EXP FLT_MIN_EXP
  40. FLT_RADIX FLT_ROUNDS
  41. LDBL_DIG LDBL_EPSILON LDBL_MANT_DIG
  42. LDBL_MAX LDBL_MAX_10_EXP LDBL_MAX_EXP
  43. LDBL_MIN LDBL_MIN_10_EXP LDBL_MIN_EXP)],
  44. grp_h => [qw()],
  45. limits_h => [qw( ARG_MAX CHAR_BIT CHAR_MAX CHAR_MIN CHILD_MAX
  46. INT_MAX INT_MIN LINK_MAX LONG_MAX LONG_MIN MAX_CANON
  47. MAX_INPUT MB_LEN_MAX NAME_MAX NGROUPS_MAX OPEN_MAX
  48. PATH_MAX PIPE_BUF SCHAR_MAX SCHAR_MIN SHRT_MAX SHRT_MIN
  49. SSIZE_MAX STREAM_MAX TZNAME_MAX UCHAR_MAX UINT_MAX
  50. ULONG_MAX USHRT_MAX _POSIX_ARG_MAX _POSIX_CHILD_MAX
  51. _POSIX_LINK_MAX _POSIX_MAX_CANON _POSIX_MAX_INPUT
  52. _POSIX_NAME_MAX _POSIX_NGROUPS_MAX _POSIX_OPEN_MAX
  53. _POSIX_PATH_MAX _POSIX_PIPE_BUF _POSIX_SSIZE_MAX
  54. _POSIX_STREAM_MAX _POSIX_TZNAME_MAX)],
  55. locale_h => [qw(LC_ALL LC_COLLATE LC_CTYPE LC_MONETARY LC_NUMERIC
  56. LC_TIME NULL localeconv setlocale)],
  57. math_h => [qw(HUGE_VAL acos asin atan ceil cosh fabs floor fmod
  58. frexp ldexp log10 modf pow sinh tan tanh)],
  59. pwd_h => [qw()],
  60. setjmp_h => [qw(longjmp setjmp siglongjmp sigsetjmp)],
  61. signal_h => [qw(SA_NOCLDSTOP SA_NOCLDWAIT SA_NODEFER SA_ONSTACK
  62. SA_RESETHAND SA_RESTART SA_SIGINFO SIGABRT SIGALRM
  63. SIGCHLD SIGCONT SIGFPE SIGHUP SIGILL SIGINT SIGKILL
  64. SIGPIPE SIGQUIT SIGSEGV SIGSTOP SIGTERM SIGTSTP SIGTTIN
  65. SIGTTOU SIGUSR1 SIGUSR2 SIG_BLOCK SIG_DFL SIG_ERR
  66. SIG_IGN SIG_SETMASK SIG_UNBLOCK raise sigaction signal
  67. sigpending sigprocmask sigsuspend)],
  68. stdarg_h => [qw()],
  69. stddef_h => [qw(NULL offsetof)],
  70. stdio_h => [qw(BUFSIZ EOF FILENAME_MAX L_ctermid L_cuserid
  71. L_tmpname NULL SEEK_CUR SEEK_END SEEK_SET
  72. STREAM_MAX TMP_MAX stderr stdin stdout
  73. clearerr fclose fdopen feof ferror fflush fgetc fgetpos
  74. fgets fopen fprintf fputc fputs fread freopen
  75. fscanf fseek fsetpos ftell fwrite getchar gets
  76. perror putc putchar puts remove rewind
  77. scanf setbuf setvbuf sscanf tmpfile tmpnam
  78. ungetc vfprintf vprintf vsprintf)],
  79. stdlib_h => [qw(EXIT_FAILURE EXIT_SUCCESS MB_CUR_MAX NULL RAND_MAX
  80. abort atexit atof atoi atol bsearch calloc div
  81. free getenv labs ldiv malloc mblen mbstowcs mbtowc
  82. qsort realloc strtod strtol strtoul wcstombs wctomb)],
  83. string_h => [qw(NULL memchr memcmp memcpy memmove memset strcat
  84. strchr strcmp strcoll strcpy strcspn strerror strlen
  85. strncat strncmp strncpy strpbrk strrchr strspn strstr
  86. strtok strxfrm)],
  87. sys_stat_h => [qw(S_IRGRP S_IROTH S_IRUSR S_IRWXG S_IRWXO S_IRWXU
  88. S_ISBLK S_ISCHR S_ISDIR S_ISFIFO S_ISGID S_ISREG
  89. S_ISUID S_IWGRP S_IWOTH S_IWUSR S_IXGRP S_IXOTH S_IXUSR
  90. fstat mkfifo)],
  91. sys_times_h => [qw()],
  92. sys_types_h => [qw()],
  93. sys_utsname_h => [qw(uname)],
  94. sys_wait_h => [qw(WEXITSTATUS WIFEXITED WIFSIGNALED WIFSTOPPED
  95. WNOHANG WSTOPSIG WTERMSIG WUNTRACED)],
  96. termios_h => [qw( B0 B110 B1200 B134 B150 B1800 B19200 B200 B2400
  97. B300 B38400 B4800 B50 B600 B75 B9600 BRKINT CLOCAL
  98. CREAD CS5 CS6 CS7 CS8 CSIZE CSTOPB ECHO ECHOE ECHOK
  99. ECHONL HUPCL ICANON ICRNL IEXTEN IGNBRK IGNCR IGNPAR
  100. INLCR INPCK ISIG ISTRIP IXOFF IXON NCCS NOFLSH OPOST
  101. PARENB PARMRK PARODD TCIFLUSH TCIOFF TCIOFLUSH TCION
  102. TCOFLUSH TCOOFF TCOON TCSADRAIN TCSAFLUSH TCSANOW
  103. TOSTOP VEOF VEOL VERASE VINTR VKILL VMIN VQUIT VSTART
  104. VSTOP VSUSP VTIME
  105. cfgetispeed cfgetospeed cfsetispeed cfsetospeed tcdrain
  106. tcflow tcflush tcgetattr tcsendbreak tcsetattr )],
  107. time_h => [qw(CLK_TCK CLOCKS_PER_SEC NULL asctime clock ctime
  108. difftime mktime strftime tzset tzname)],
  109. unistd_h => [qw(F_OK NULL R_OK SEEK_CUR SEEK_END SEEK_SET
  110. STDERR_FILENO STDIN_FILENO STDOUT_FILENO W_OK X_OK
  111. _PC_CHOWN_RESTRICTED _PC_LINK_MAX _PC_MAX_CANON
  112. _PC_MAX_INPUT _PC_NAME_MAX _PC_NO_TRUNC _PC_PATH_MAX
  113. _PC_PIPE_BUF _PC_VDISABLE _POSIX_CHOWN_RESTRICTED
  114. _POSIX_JOB_CONTROL _POSIX_NO_TRUNC _POSIX_SAVED_IDS
  115. _POSIX_VDISABLE _POSIX_VERSION _SC_ARG_MAX
  116. _SC_CHILD_MAX _SC_CLK_TCK _SC_JOB_CONTROL
  117. _SC_NGROUPS_MAX _SC_OPEN_MAX _SC_SAVED_IDS
  118. _SC_STREAM_MAX _SC_TZNAME_MAX _SC_VERSION
  119. _exit access ctermid cuserid
  120. dup2 dup execl execle execlp execv execve execvp
  121. fpathconf getcwd getegid geteuid getgid getgroups
  122. getpid getuid isatty lseek pathconf pause setgid setpgid
  123. setsid setuid sysconf tcgetpgrp tcsetpgrp ttyname)],
  124. utime_h => [qw()],
  125. );
  126. # Exporter::export_tags();
  127. for (values %EXPORT_TAGS) {
  128. push @EXPORT, @$_;
  129. }
  130. @EXPORT_OK = qw(
  131. closedir opendir readdir rewinddir
  132. fcntl open
  133. getgrgid getgrnam
  134. atan2 cos exp log sin sqrt
  135. getpwnam getpwuid
  136. kill
  137. fileno getc printf rename sprintf
  138. abs exit rand srand system
  139. chmod mkdir stat umask
  140. times
  141. wait waitpid
  142. gmtime localtime time
  143. alarm chdir chown close fork getlogin getppid getpgrp link
  144. pipe read rmdir sleep unlink write
  145. utime
  146. nice
  147. );
  148. require Exporter;
  149. }
  150. 1;
  151. # end of POSIX::load_imports