calls.texinfo

来自「cygwin, 著名的在win32下模拟unix操作系统的东东」· TEXINFO 代码 · 共 710 行 · 第 1/2 页

TEXINFO
710
字号
@chapter What Unix API calls are supported by Cygwin?This is the beginning of documentation listing the calls supportedby the Cygwin library.All POSIX.1/1996 and ANSI C calls are listed in this file.  Note thatwhile almost all POSIX.1/1990 calls are included in Cygwin, mostPOSIX.1/1996 calls are not (yet at least!).  Additional Unixcompatibility calls and extended libc/libm calls are provided byCygwin but may or may not be listed yet.To see if a function is implemented but not listed here, check for thepresence of the call in the file winsup/cygwin.din in the sources.  Inaddition, you may want to read the source code corresponding to the callto verify that it is not a stub.  Finally, libc/libm functions(including extended calls not listed here) may be documented in thenewlib texinfo documentation.Calls are implemented on both Windows 95 and NT unless otherwisenoted.  Included are references to relevant standards, if any.Calls starting with "cygwin_" are Cygwin-specific calls.@section ANSI C Library Functions@strong{(Please note: This section has not yet been updated for the latestnet release.)}@itemize @code@item libc stdio (newlib/libc/stdio)@itemize @code@item clearerr: C 4.9.10.1@item fclose: C 4.9.5.1, P 8.2.3.2@item feof: C 4.9.10.2@item ferror: C 4.9.10.3@item fflush: C 4.9.5.2, P 8.2.3.4@item fgetc: C 4.9.7.1, P 8.2.3.5@item fgetpos: C 4.9.9.1@item fgets: C 4.9.7.2, P 8.2.3.5@item fopen: C 4.9.5.3, P 8.2.3.1@item fprintf: C 4.9.7.3, P 8.2.3.6@item fputc: C 4.9.7.3, P 8.2.3.6@item fputs: C 4.9.7.4, P 8.2.3.6@item fread: C 4.9.8.1, P 8.2.3.5@item freopen: C 4.9.5.4, P 8.2.3.3@item fscanf: C 4.9.6.2, P 8.2.3.7@item fseek: C 4.9.9.2, P 8.2.3.7@item fsetpos: C 4.9.9.3@item ftell: C 4.9.9.4, P 8.2.3.10@item fwrite: C 4.9.8.2, P 8.2.3.6@item getc: C 4.9.7.5, P 8.2.3.5@item getchar: C 4.9.7.6, P 8.2.3.5@item gets: C 4.9.7.7, P 8.2.3.5@item perror: C 4.9.10.4, P 8.2.3.8@item printf: C 4.9.6.3, P 8.2.3.6@item putc: C 4.9.7.8, P 8.2.3.6@item putchar: C 4.9.7.9, P 8.2.3.6@item puts: C 4.9.7.10, P 8.2.3.6@item remove: C 4.9.4.1, P 8.2.4@item rename: C 4.9.4.2, P 5.5.3.1@item rewind: C 4.9.9.5, P 8.2.3.7@item scanf: C 4.9.6.4, P 8.2.3.5@item setbuf: C 4.9.5.5@item setvbuf: C 4.9.5.6@item sprintf: C 4.9.6.5@item sscanf: C 4.9.6.6@item tmpfile: C 4.9.4.3, P 8.2.3.9@item tmpnam: C 4.9.4.4, P 8.2.5@item vfprintf: C 4.9.6.7@item ungetc: C 4.9.7.11@item vprintf: C 4.9.6.8@item vsprintf: C 4.9.6.9@end itemize@item libc string (newlib/libc/string)@itemize @code@item memchr: C 4.11.5.1@item memcmp: C 4.11.4.1@item memcpy: C 4.11.2.1@item memmove: C 4.11.2.2@item memset: C 4.11.6.1@item strcat: C 4.11.3.1@item strchr: C 4.11.5.2@item strcmp: C 4.11.4.2@item strcoll: C 4.11.4.3@item strcpy: C 4.11.2.3@item strcspn: C 4.11.5.3@item strerror: C 4.11.6.2@item strlen: C 4.11.6.3@item strncat: C 4.11.3.2@item strncmp: C 4.11.3.2@item strncpy: C 4.11.2.4@item strpbrk: C 4.11.5.4@item strrchr: C 4.11.5.5@item strspn: C 4.11.5.6@item strstr: C 4.11.5.7@item strtok: C 4.11.5.8@item strxfrm: C 4.11.4.5@end itemize@item libc stdlib (newlib/libc/stdlib, environ.cc, newlib/libc/include/machine/setjmp.h newlib/libc/include/assert.h)@itemize @code@item abort: C 4.10.4.1, P 8.2.3.12@item abs: C 4.10.6.1@item assert: C 4.2.1.1@item atexit: C 4.10.4.2@item atof: C 4.10.1.1@item atoi: C 4.10.1.2@item atol: C 4.10.1.3@item bsearch: C 4.10.5.1@item calloc: C 4.10.3.1@item div: C 4.10.6.2@item exit: C 4.10.4.3, P 8.2.3.12@item free: C 4.10.3.2@item getenv: C 4.10.4.4, P 4.6.1.1@item labs: C 4.10.6.3@item ldiv: C 4.10.6.2@item longjmp: C 4.6.2.1@item malloc: C 4.10.3.3@item mblen: C 4.10.7.1@item mbstowcs: C 4.10.8.1@item mbtowc: C 4.10.7.2@item qsort: 4.10.5.2@item rand: C 4.10.2.1@item realloc: C 4.10.3.4@item setjmp: C 4.6.1.1@item srand: C 4.10.2.2@item strtod: C 4.10.1.4@item strtol: C 4.10.1.5@item strtoul: C 4.10.1.6@item system: C 4.10.4.5@item wcstombs: C 4.10.8.2@item wctomb: C 4.10.7.3@end itemize@item libc time (times.cc, newlib/libc/time)@itemize @code@item asctime: C 4.12.3.1@item gmtime: C 4.12.3.3@item localtime: C 4.12.3.4, P 8.1.1@item time: C 4.12.2.4, P 4.5.1.1@item clock: C 4.12.2.1@item ctime: C 4.12.3.2@item difftime: C 4.12.2.2@item mktime: C 4.12.2.3, P 8.1.1@item strftime: C 4.11.6.2@end itemize@item libc signals (signal.cc, newlib/libc/signal)@itemize @code@item raise: C 4.7.2.1@item signal: C 4.7.1.1@end itemize@item libc ctype (newlib/libc/ctype)@itemize @code@item isalnum: C 4.3.1.1@item isalpha: C 4.3.1.2@item iscntrl: C 4.3.1.3@item isdigit: C 4.3.1.4@item isgraph: C 4.3.1.5@item islower: C 4.3.1.6@item isprint: C 4.3.1.7@item ispunct: C 4.3.1.8@item isspace: C 4.3.1.9@item isupper: C 4.3.1.10@item isxdigit: C 4.3.1.11@item tolower: C 4.3.2.1@item toupper: C 4.3.2.2@end itemize@item libm math (newlib/libm/math)@itemize @code@item acos: C 4.5.2.1@item asin: C 4.5.2.2@item atan: C 4.5.2.3@item atan2: C 4.5.2.4@item ceil: C 4.5.6.1@item cos: C 4.5.2.5@item cosh: C 4.5.3.2@item exp: C 4.5.4.1@item fabs: C 4.5.6.2@item floor: C 4.5.6.3@item fmod: C 4.5.6.4@item frexp: C 4.5.4.2@item ldexp: C 4.5.4.3@item log: C 4.5.4.4@item log10: C 4.5.4.5@item modf: C 4.5.4.6@item pow: C 4.5.5.1@item sin: C 4.5.2.6@item sinh: C 4.5.3.2@item sqrt: C 4.5.5.2@item tan: C 4.5.2.7@item tanh: C 4.5.3.3@end itemize@item libc misc (newlib/libc/locale, gcc/ginclude/stdarg.h)@itemize @code@item localeconv: C 4.4.2.1@item setlocale: C 4.4.1.1, P 8.1.2.1@item va_arg: C 4.8.1.2@item va_end: C 4.8.1.3@item va_start: C 4.8.1.1@end itemize@section POSIX.1/96 Functions@strong{(Please note: This section has not yet been updated for the latestnet release.)}@item Process Primitives (Section 3)@itemize @code@item fork: P 3.1.1.1@item execl: P 3.1.2.1@item execle: P 3.1.2.1@item execlp: P 3.1.2.1@item execv: P 3.1.2.1@item execve: P 3.1.2.1@item execvp: P 3.1.2.1@item pthread_atfork: P96 3.1.3.1 -- unimplemented@item wait: P 3.2.1.1@item waitpid: P 3.2.1.1@item _exit: P 3.2.2.1@item kill: P 3.3.2.1@item sigemptyset: P 3.3.3.1@item sigfillset: P 3.3.3.1@item sigaddset: P 3.3.3.1@item sigdelset: P 3.3.3.1@item sigismember: P 3.3.3.1@item sigaction: P 3.3.4.1 @item pthread_sigmask: P96 3.3.5.1@item sigprocmask: P 3.3.5.1@item sigpending: P 3.3.6.1@item sigsuspend: P 3.3.7.1@item sigwait: P96 3.3.8.1 -- unimplemented@item sigwaitinfo: P96 3.3.8.1 -- unimplemented@item sigtimedwait: P96 3.3.8.1 -- unimplemented@item sigqueue: P96 3.3.9.1 -- unimplemented@item pthread_kill: P96 3.3.10.1@item alarm: P 3.4.1.1@item pause: P 3.4.2.1@item sleep: P 3.4.3.1@end itemize@item Process Environment (Section 4)@itemize @code@item getpid: P 4.1.1.1@item getppid: P 4.1.1.1@item getuid: P 4.2.1.1@item geteuid: P 4.2.1.1@item getgid: P 4.2.1.1@item getegid: P 4.2.1.1@item setuid: P 4.2.2.1 (stub on 9X, sets ENOSYS, returns zero)@item setgid: P 4.2.2.1 (stub on 9X, sets ENOSYS, returns zero)@item getgroups: P 4.2.3.1@item getlogin: P 4.2.4.1@item getlogin_r: P 4.2.4.1 -- unimplemented@item getpgrp: P 4.3.1.1@item setsid: P 4.3.2.1@item setpgid: P 4.3.3.1@item uname: P 4.4.1.1@item time: C 4.12.2.4, P 4.5.1.1@item times: P 4.5.2.1@item getenv: C 4.10.4.4, P 4.6.1.1@item ctermid: P 4.7.1.1@item ttyname: P 4.7.2.1@item ttyname_r: P 4.7.2.1 -- unimplemented@item isatty: P 4.7.2.1@item sysconf: P 4.8.1.1@end itemize@item Files and Directories (Section 5)@itemize @code@item opendir: P 5.1.2.1@item readdir: P 5.1.2.1@item readdir_r: P96 5.1.2.1 -- unimplemented@item rewinddir: P 5.1.2.1@item closedir: P 5.1.2.1@item chdir: P 5.2.1.1@item getcwd: P 5.2.2.1@item open: P 5.3.1.1@item creat: P 5.3.2.1@item umask: P 5.3.3.1@item link: P 5.3.4.1 (copy file in Win 95, and when link fails in NT)@item mkdir: P 5.4.1.1@item mkfifo: P 5.4.2.1 -- unimplemented!!!@item unlink: P 5.5.1.1@item rmdir: P 5.5.2.1@item rename: C 4.9.4.2, P 5.5.3.1@item stat: P 5.6.2.1@item fstat: P 5.6.2.1@item access: P 5.6.3.1@item chmod: P 5.6.4.1@item fchmod: P96 5.6.4.1@item chown: P 5.6.5.1 (stub in Win 95; always returns zero)@item utime: P 5.6.6.1@item ftruncate: P96 5.6.7.1@item pathconf: P 5.7.1.1@item fpathconf: P 5.7.1.1@end itemize@item Input and Output Primitives (Section 6)@itemize @code@item pipe: P 6.1.1.1@item dup: P 6.2.1.1@item dup2: P 6.2.1.1@item close: P 6.3.1.1@item read: P 6.4.1.1@item write: P 6.4.2.1@item fcntl: P 6.5.2.1 (note: fcntl(fd, F_GETLK,...) is not implemented (returns -1 with errno set to ENOSYS)).@item lseek: P 6.5.3.1 (note: only works correctly on binary files)@item fsync: P96 6.6.1.1@item fdatasync: P96 6.6.2.1 -- unimplemented@item aio_read: P96 6.7.2.1 -- unimplemented@item aio_write: P96 6.7.3.1 -- unimplemented@item lio_listio: P96 6.7.4.1 -- unimplemented@item aio_error: P96 6.7.5.1 -- unimplemented@item aio_return: P96 6.7.6.1 -- unimplemented@item aio_cancel: P96 6.7.7.1 -- unimplemented@item aio_suspend: P96 6.7.8.1 -- unimplemented@item aio_fsync: P96 6.7.9.1 -- unimplemented@end itemize@item Device- and Class-Specific Functions (Section 7)@itemize @code@item cfgetispeed: P96 7.1.3.1@item cfgetospeed: P96 7.1.3.1@item cfsetispeed: P96 7.1.3.1@item cfsetospeed: P96 7.1.3.1@item tcdrain: P 7.2.2.1@item tcflow: P 7.2.2.1@item tcflush: P 7.2.2.1@item tcgetattr: P96 7.2.1.1@item tcgetpgrp: P 7.2.3.1@item tcsendbreak: P 7.2.2.1@item tcsetattr: P96 7.2.1.1@item tcsetpgrp: P 7.2.4.1@end itemize@item Language-Specific Services for the C Programming Language(Section 8)@itemize @code@item abort: C 4.10.4.1, P 8.2.3.12@item asctime_r: P96 8.3.4.1 -- unimplemented@item ctime_r: P96 8.3.5.1 -- unimplemented@item exit: C 4.10.4.3, P 8.2.3.12@item fclose: C 4.9.5.1, P 8.2.3.2@item fdopen: P 8.2.2.1@item fflush: C 4.9.5.2, P 8.2.3.4@item fgetc: C 4.9.7.1, P 8.2.3.5@item fgets: C 4.9.7.2, P 8.2.3.5@item fileno: P 8.2.1.1@item flockfile: P96 8.2.6.1 -- unimplemented@item fopen: C 4.9.5.3, P 8.2.3.1

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?