Expand description
POSIX-compatible APIs for ArceOS modules
Modules§
Functions§
- sys_
accept ⚠ - Accept for connections on a socket
- sys_
bind - Bind a address to a socket.
- sys_
clock_ ⚠gettime - Get clock time since booting
- sys_
close - Close a file by
fd. - sys_
connect - Connects the socket to the address specified.
- sys_dup
- Duplicate a file descriptor.
- sys_
dup2 - Duplicate a file descriptor, but it uses the file descriptor number specified in
new_fd. - sys_
epoll_ create - Creates a new epoll instance.
- sys_
epoll_ ⚠ctl - Control interface for an epoll file descriptor
- sys_
epoll_ ⚠wait - Waits for events on the epoll instance referred to by the file descriptor epfd.
- sys_
exit - Exit current task
- sys_
fcntl - Manipulate file descriptor.
- sys_
freeaddrinfo ⚠ - Free queried
addrinfostruct - sys_
fstat ⚠ - Get file metadata by
fdand write intobuf. - sys_
getaddrinfo ⚠ - Query addresses for a domain name.
- sys_
getcwd - Get the path of the current directory.
- sys_
getpeername ⚠ - Get peer address to which the socket sockfd is connected.
- sys_
getpid - Get current thread ID.
- sys_
getrlimit ⚠ - Get resource limitations
- sys_
getsockname ⚠ - Get current address to which the socket sockfd is bound.
- sys_
listen - Listen for connections on a socket
- sys_
lseek - Set the position of the file indicated by
fd. - sys_
lstat ⚠ - Get the metadata of the symbolic link and write into
buf. - sys_
nanosleep ⚠ - Sleep some nanoseconds
- sys_
open - Open a file by
filenameand insert it into the file descriptor table. - sys_
pipe - Create a pipe
- sys_
pthread_ ⚠create - Create a new thread with the given entry point and argument.
- sys_
pthread_ exit - Exits the current thread. The value
retvalwill be returned to the joiner. - sys_
pthread_ ⚠join - Waits for the given thread to exit, and stores the return value in
retval. - sys_
pthread_ mutex_ init - Initialize a mutex.
- sys_
pthread_ mutex_ lock - Lock the given mutex.
- sys_
pthread_ mutex_ unlock - Unlock the given mutex.
- sys_
pthread_ self - Returns the
pthreadstruct of current thread. - sys_
read - Read data from the file indicated by
fd. - sys_
recv - Receive a message on a socket.
- sys_
recvfrom ⚠ - Receive a message on a socket and get its source address.
- sys_
rename - Rename
oldtonewIf new exists, it is first removed. - sys_
sched_ yield - Relinquish the CPU, and switches to another task.
- sys_
select ⚠ - Monitor multiple file descriptors, waiting until one or more of the file descriptors become “ready” for some class of I/O operation
- sys_
send - Send a message on a socket to the address connected.
- sys_
sendto - Send a message on a socket to the address specified.
- sys_
setrlimit ⚠ - Set resource limitations
- sys_
shutdown - Shut down a full-duplex connection.
- sys_
socket - Create an socket for communication.
- sys_
stat ⚠ - 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.