Skip to main content Module syscalls Copy item path Source mman mmanMemory management syscalls. socket net or virtio-vsockDirent64 SpinlockContainer SpinlockIrqSaveContainer sys_abort sys_access ⚠ sys_add_queue ⚠ sys_available_parallelism sys_block_current_task Set the current task state to blocked sys_block_current_task_with_timeout Set the current task state to blocked sys_chdir ⚠ sys_clock_getres ⚠ Finds the resolution (or precision) of a clock. sys_clock_gettime ⚠ Get the current time of a clock. sys_clock_nanosleep ⚠ Sleep a clock for a specified number of nanoseconds. sys_clock_settime ⚠ sys_clone ⚠ Creates a new thread based on the configuration of the current thread. sys_close sys_destroy_queue ⚠ sys_dup sys_dup2 sys_eventfd sys_exit sys_faccessat ⚠ sys_fchdir sys_fchmod ⚠ sys_fcntl Manipulate file descriptor sys_fstat ⚠ sys_ftruncate ⚠ sys_futex_wait ⚠ Like synch::futex_wait, but does extra sanity checks and takes a timespec. sys_futex_wake ⚠ Like synch::futex_wake, but does extra sanity checks. sys_get_priority Determine the priority of the current thread sys_get_processor_count Returns the number of processors currently online. sys_get_processor_frequency Returns the processor frequency in MHz. sys_getcwd ⚠ sys_getdents64 ⚠ Read the entries of a directory.
Similar as the Linux system-call, this reads up to count bytes and returns the number of
bytes written. If the size was not sufficient to list all directory entries, subsequent calls
to this fn return the next entries. sys_getpagesize Returns the base page size, in bytes, of the current system. sys_getpid sys_getprio ⚠ sys_gettimeofday ⚠ Get the system’s clock time. sys_image_start_addr sys_init_queue ⚠ sys_ioctl ⚠ sys_isatty sys_join sys_kill sys_lseek sys_lstat ⚠ sys_mkdir ⚠ sys_msleep sys_nanosleep ⚠ sys_notify ⚠ sys_open ⚠ sys_opendir ⚠ sys_poll ⚠ sys_rand The function computes a sequence of pseudo-random integers
in the range of 0 to RAND_MAX sys_read ⚠ sys_read_entropy ⚠ Fill len bytes in buf with cryptographically secure random data. sys_readv ⚠ read() attempts to read nbyte of data to the object referenced by the
descriptor fd from a buffer. read() performs the same
action, but scatters the input data from the iovcnt buffers specified by the
members of the iov array: iov[0], iov[1], ..., iov[iovcnt-1].sys_recmutex_destroy ⚠ newlibsys_recmutex_init ⚠ newlibsys_recmutex_lock ⚠ newlibsys_recmutex_unlock ⚠ newlibsys_rmdir ⚠ sys_sem_destroy ⚠ Destroy and deallocate a semaphore. sys_sem_init ⚠ Create a new, unnamed semaphore. sys_sem_post ⚠ Release a semaphore. sys_sem_timedwait ⚠ Try to acquire a lock on a semaphore. sys_sem_trywait ⚠ Try to acquire a lock on a semaphore. sys_set_current_task_priority Set priority of the current thread sys_set_priority Set priority of the thread with the identifier id sys_setitimer ⚠ sys_setprio ⚠ sys_signal sys_spawn ⚠ sys_spawn2 ⚠ sys_spinlock_destroy ⚠ sys_spinlock_init ⚠ sys_spinlock_irqsave_destroy ⚠ sys_spinlock_irqsave_init ⚠ sys_spinlock_irqsave_lock ⚠ sys_spinlock_irqsave_unlock ⚠ sys_spinlock_lock ⚠ sys_spinlock_unlock ⚠ sys_srand The function sets its argument as the seed for a new sequence
of pseudo-random numbers to be returned by rand() sys_stat ⚠ sys_thread_exit sys_truncate ⚠ sys_umask ⚠ sys_unlink ⚠ sys_usleep sys_wait ⚠ sys_wakeup_task Wake up the task with the identifier id sys_write ⚠ sys_writev ⚠ write() attempts to write nbyte of data to the object referenced by the
descriptor fd from a buffer. writev() performs the same
action, but gathers the output data from the iovcnt buffers specified by the
members of the iov array: iov[0], iov[1], ..., iov[iovcnt-1].sys_yield SignalHandler newlibTid clockid_t sem_t