一、POSIX PSE53接口列表
根据IEEE 1003.13-2003,整理了POSIX PSE53接口API(一共126个),每个API支持链接查看。
IEEE POSIX接口online搜索链接:
The Open Group Base Specifications Issue 7, 2018 edition
详细内容参考下面表格:
| SN | Module/_POSIX_宏 | Function | File |
| 1 | POSIX_EVENT_MGMT(6) | FD_CLR() | <sys/select.h> |
| 2 | FD_ISSET() | ||
| 3 | FD_SET() | ||
| 4 | FD_ZERO() | ||
| 5 | pselect() | ||
| 6 | select() | ||
| 7 | POSIX_MULTI_PROCESS (21=3+13+1+1+1+2) | _Exit() | <stdlib.h> |
| 8 | atexit() | ||
| 9 | exit() | ||
| 10 | _exit() | <unistd.h> | |
| 11 | execl() | ||
| 12 | execle() | ||
| 13 | execlp() | ||
| 14 | execv() | ||
| 15 | execve() | ||
| 16 | execvp() | ||
| 17 | fork() | ||
| 18 | getpgrp() | ||
| 19 | getpid() | ||
| 20 | getppid() | ||
| 21 | setsid() | ||
| 22 | sleep() | ||
| 23 | assert() | <assert.h> | |
| 24 | clock() | <time.h> | |
| 25 | times() | <sys/time.h> | |
| 26 | wait() | <sys/wait.h> | |
| 27 | waitpid() | ||
| 28 | POSIX_NETWORKING (56=18+25+1+8+4) | accept() | <sys/socket.h> |
| 29 | bind() | ||
| 30 | connect() | ||
| 31 | getpeername() | ||
| 32 | getsockname() | ||
| 33 | getsockopt() | ||
| 34 | listen() | ||
| 35 | recv() | ||
| 36 | recvfrom() | ||
| 37 | recvmsg() | ||
| 38 | send() | ||
| 39 | sendmsg() | ||
| 40 | sendto() | ||
| 41 | setsockopt() | ||
| 42 | shutdown() | ||
| 43 | socket() | ||
| 44 | sockatmark() | ||
| 45 | socketpair() | ||
| 46 | endhostent() | <netdb.h> | |
| 47 | endnetent() | ||
| 48 | endprotoent() | ||
| 49 | endservent() | ||
| 50 | freeaddrinfo() | ||
| 51 | gai_strerror() | ||
| 52 | getaddrinfo() | ||
| 53 | gethostbyaddr()【removed】 | ||
| 54 | gethostbyname()【removed】 | ||
| 55 | gethostent() | ||
| 56 | getnameinfo() | ||
| 57 | getnetbyaddr() | ||
| 58 | getnetbyname() | ||
| 59 | getnetent() | ||
| 60 | getprotobyname() | ||
| 61 | getprotobynumber() | ||
| 62 | getprotoent() | ||
| 63 | getservbyname() | ||
| 64 | getservbyport() | ||
| 65 | getservent() | ||
| 66 | h_errno【removed】 | ||
| 67 | sethostent() | ||
| 68 | setnetent() | ||
| 69 | setprotoent() | ||
| 70 | setservent() | ||
| 71 | gethostname() | <unistd.h> | |
| 72 | htonl() | <arpa/inet.h> | |
| 73 | htons() | ||
| 74 | inet_addr() | ||
| 75 | inet_ntoa() | ||
| 76 | inet_ntop() | ||
| 77 | inet_pton() | ||
| 78 | ntohl() | ||
| 79 | ntohs() | ||
| 80 | if_freenameindex() | <net/if.h> | |
| 81 | if_indextoname() | ||
| 82 | if_nameindex() | ||
| 83 | if_nametoindex() | ||
| 84 | POSIX_PIPE(1) | pipe() | <unistd.h> |
| 85 | POSIX_SIGNAL_JUMP(2) | siglongjmp() | <setjmp.h> |
| 86 | sigsetjmp() | ||
| 87 | _POSIX_ASYNCHRONOUS_IO (8) | aio_cancel() | <aio.h> |
| 88 | aio_error() | ||
| 89 | aio_fsync() | ||
| 90 | aio_read() | ||
| 91 | aio_return() | ||
| 92 | aio_suspend() | ||
| 93 | aio_write() | ||
| 94 | lio_listio() | ||
| 95 | _POSIX_CPUTIME(1) | clock_getcpuclockid() | <time.h> |
| 96 | _POSIX_MEMORY_PROTECTION(1) | mprotect() | <sys/mman.h> |
| 97 | _POSIX_PRIORITY_SCHEDULING (5) | sched_getparam() | <sched.h> |
| 98 | sched_getscheduler() | ||
| 99 | sched_setparam() | ||
| 100 | sched_setscheduler() | ||
| 101 | sched_yield() | ||
| 102 | _POSIX_SPAWN (17) | posix_spawn() | <spawn.h> |
| 103 | posix_spawn_file_actions_addclose() | ||
| 104 | posix_spawn_file_actions_adddup2() | ||
| 105 | posix_spawn_file_actions_addopen() | ||
| 106 | posix_spawn_file_actions_destroy() | ||
| 107 | posix_spawn_file_actions_init() | ||
| 108 | posix_spawnattr_destroy() | ||
| 109 | posix_spawnattr_getflags() | ||
| 110 | posix_spawnattr_getpgroup() | ||
| 111 | posix_spawnattr_getsigdefault() | ||
| 112 | posix_spawnattr_getsigmask() | ||
| 113 | posix_spawnattr_init() | ||
| 114 | posix_spawnattr_setflags() | ||
| 115 | posix_spawnattr_setpgroup() | ||
| 116 | posix_spawnattr_setsigdefault() | ||
| 117 | posix_spawnattr_setsigmask() | ||
| 118 | posix_spawnp() | ||
| 119 | _POSIX_SPAWN and _POSIX_PRIORITY_SCHEDULING (4) | posix_spawnattr_getschedparam() | <spawn.h> |
| 120 | posix_spawnattr_getschedpolicy() | ||
| 121 | posix_spawnattr_setschedparam() | ||
| 122 | posix_spawnattr_setschedpolicy() | ||
| 123 | _POSIX_THREAD_PROCESS_SHARED and _POSIX_THREADS (4) | pthread_condattr_getpshared() | <pthread.h> |
| 124 | pthread_condattr_setpshared() | ||
| 125 | pthread_mutexattr_getpshared() | ||
| 126 | pthread_mutexattr_setpshared() |
二、参考
1.学习笔记:IEEE 1003.13-2003(POSIX实时与嵌入式规范)
2.POSIX标准及RT-Thread实现情况