Crate arceos_posix_api

source ·
Expand description

POSIX-compatible APIs for ArceOS modules

Modules§

  • Platform-specific constants and parameters.
  • POSIX C types.

Functions§

  • Accept for connections on a socket
  • Bind a address to a socket.
  • Get clock time since booting
  • Close a file by fd.
  • Connects the socket to the address specified.
  • Duplicate a file descriptor.
  • Duplicate a file descriptor, but it uses the file descriptor number specified in new_fd.
  • sys_epoll_createepoll and (select or epoll)
    Creates a new epoll instance.
  • sys_epoll_ctlepoll and (select or epoll)
    Control interface for an epoll file descriptor
  • sys_epoll_waitepoll and (select or epoll)
    Waits for events on the epoll instance referred to by the file descriptor epfd.
  • Exit current task
  • Manipulate file descriptor.
  • Free queried addrinfo struct
  • Get file metadata by fd and write into buf.
  • Query addresses for a domain name.
  • Get the path of the current directory.
  • Get peer address to which the socket sockfd is connected.
  • Get current thread ID.
  • Get resource limitations
  • Get current address to which the socket sockfd is bound.
  • Listen for connections on a socket
  • Set the position of the file indicated by fd.
  • Get the metadata of the symbolic link and write into buf.
  • Sleep some nanoseconds
  • Open a file by filename and insert it into the file descriptor table.
  • Create a pipe
  • sys_pthread_createmultitask
    Create a new thread with the given entry point and argument.
  • Exits the current thread. The value retval will be returned to the joiner.
  • sys_pthread_joinmultitask
    Waits for the given thread to exit, and stores the return value in retval.
  • Initialize a mutex.
  • Lock the given mutex.
  • Unlock the given mutex.
  • Returns the pthread struct of current thread.
  • Read data from the file indicated by fd.
  • Receive a message on a socket.
  • Receive a message on a socket and get its source address.
  • Rename old to new If new exists, it is first removed.
  • Relinquish the CPU, and switches to another task.
  • sys_selectselect and (select or epoll)
    Monitor multiple file descriptors, waiting until one or more of the file descriptors become “ready” for some class of I/O operation
  • Send a message on a socket to the address connected.
  • Send a message on a socket to the address specified.
  • Set resource limitations
  • Shut down a full-duplex connection.
  • Create an socket for communication.
  • Get the file metadata by path and write into buf.
  • Return system configuration infomation
  • Write data to the file indicated by fd.
  • Write a vector.