Expand description
POSIX-compatible APIs for ArceOS modules
Modules§
Functions§
- sys_
accept ⚠net - Accept for connections on a socket
- sys_
bind net - Bind a address to a socket.
- sys_
clock_ ⚠gettime - Get clock time since booting
- sys_
close fd - 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 in
new_fd. - sys_
epoll_ create epolland (selectorepoll) - Creates a new epoll instance.
- sys_
epoll_ ⚠ctl epolland (selectorepoll) - Control interface for an epoll file descriptor
- sys_
epoll_ ⚠wait epolland (selectorepoll) - Waits for events on the epoll instance referred to by the file descriptor epfd.
- sys_
exit - Exit current task
- sys_
fcntl fd - Manipulate file descriptor.
- sys_
freeaddrinfo ⚠net - Free queried
addrinfostruct - sys_
fstat ⚠fs - Get file metadata by
fdand write intobuf. - sys_
getaddrinfo ⚠net - Query addresses for a domain name.
- sys_
getcwd fs - Get the path of the current directory.
- sys_
getpeername ⚠net - Get peer address to which the socket sockfd is connected.
- sys_
getpid - Get current thread ID.
- sys_
getrlimit ⚠ - 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
- sys_
lseek fs - Set the position of the file indicated by
fd. - sys_
lstat ⚠fs - Get the metadata of the symbolic link and write into
buf. - sys_
nanosleep ⚠ - Sleep some nanoseconds
- sys_
open fs - Open a file by
filenameand 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 value
retvalwill be returned to the joiner. - sys_
pthread_ ⚠join multitask - Waits for the given thread to exit, and stores the return value in
retval. - 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 the
pthreadstruct of current thread. - sys_
read - 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.
- sys_
rename fs - Rename
oldtonewIf new exists, it is first removed. - sys_
sched_ yield - Relinquish the CPU, and switches to another task.
- sys_
select ⚠selectand (selectorepoll) - 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.
- sys_
setrlimit ⚠ - 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 by
pathand write intobuf. - sys_
sysconf - Return system configuration infomation
- sys_
write - Write data to the file indicated by
fd. - sys_
writev ⚠ - Write a vector.