Expand description
POSIX-compatible APIs for ArceOS modules
Modules§
- Platform-specific constants and parameters.
- POSIX C types.
Functions§
- sys_
accept ⚠net
Accept for connections on a socket - sys_
bind net
Bind a address to a socket. - Get clock time since booting
- Close a file by
fd
. - sys_
connect net
Connects the socket to the address specified. - sys_dup
fd
Duplicate a file descriptor. - sys_
dup2 fd
Duplicate a file descriptor, but it uses the file descriptor number specified innew_fd
. - sys_
epoll_ create epoll
and (select
orepoll
)Creates a new epoll instance. - sys_
epoll_ ⚠ctl epoll
and (select
orepoll
)Control interface for an epoll file descriptor - sys_
epoll_ ⚠wait epoll
and (select
orepoll
)Waits for events on the epoll instance referred to by the file descriptor epfd. - Exit current task
- Manipulate file descriptor.
- sys_
freeaddrinfo ⚠net
Free queriedaddrinfo
struct - sys_
fstat ⚠fs
Get file metadata byfd
and write intobuf
. - sys_
getaddrinfo ⚠net
Query addresses for a domain name. - Get the path of the current directory.
- sys_
getpeername ⚠net
Get peer address to which the socket sockfd is connected. - Get current thread ID.
- Get resource limitations
- sys_
getsockname ⚠net
Get current address to which the socket sockfd is bound. - sys_
listen net
Listen for connections on a socket - Set the position of the file indicated by
fd
. - sys_
lstat ⚠fs
Get the metadata of the symbolic link and write intobuf
. - Sleep some nanoseconds
- sys_
open fs
Open a file byfilename
and insert it into the file descriptor table. - sys_
pipe pipe
Create a pipe - sys_
pthread_ ⚠create multitask
Create a new thread with the given entry point and argument. - sys_
pthread_ exit multitask
Exits the current thread. The valueretval
will be returned to the joiner. - sys_
pthread_ ⚠join multitask
Waits for the given thread to exit, and stores the return value inretval
. - sys_
pthread_ mutex_ init multitask
Initialize a mutex. - sys_
pthread_ mutex_ lock multitask
Lock the given mutex. - sys_
pthread_ mutex_ unlock multitask
Unlock the given mutex. - sys_
pthread_ self multitask
Returns thepthread
struct of current thread. - Read data from the file indicated by
fd
. - sys_
recv net
Receive a message on a socket. - sys_
recvfrom ⚠net
Receive a message on a socket and get its source address. - Rename
old
tonew
If new exists, it is first removed. - Relinquish the CPU, and switches to another task.
- sys_
select ⚠select
and (select
orepoll
)Monitor multiple file descriptors, waiting until one or more of the file descriptors become “ready” for some class of I/O operation - sys_
send net
Send a message on a socket to the address connected. - sys_
sendto net
Send a message on a socket to the address specified. - Set resource limitations
- sys_
shutdown net
Shut down a full-duplex connection. - sys_
socket net
Create an socket for communication. - sys_
stat ⚠fs
Get the file metadata bypath
and write intobuf
. - Return system configuration infomation
- Write data to the file indicated by
fd
. - Write a vector.