Standard C Library/System Call Functions |
Time Functionalities
Function | Description |
gettimeofday | Gets time |
Timer Functionalities
Function | Description |
clock | Determines processor time |
nanosleep | Pauses execution for a specified time |
sleep | Delays for a specified amount of time |
Directory Handling
Function |
Description |
seekdir | Sets the position of the next readdir call in the directory stream. |
rewinddir | Resets directory stream |
telldir | Returns the current location in the directory stream |
closedir | Closes a directory |
opendir | Opens a directory |
readdir | Reads directory entry |
mkdir | Makes directories |
unlink | Calls the unlink function to remove the specified file |
rmdir | Remove empty directories |
fchdir | Changes working directory |
chdir | Changes working directory |
File Attributes
Functions | Description |
chmod | Changes file access permissions |
fchmod | Changes permissions of a file |
ftruncate | Truncates a file to a specified length |
utimes | Changes access and/or modification times of an inode |
fstat | Gets file status |
lstat | Gets file status |
utime | Changes access and/or modification times of an inode |
rename | Rename files |
link | Calls the link function to create a link to a file |
readlink | Displays value of a symbolic link |
symlink | Makes a new name for a file |
sysconf | Gets configuration information at runtime |
Operations on File Descriptors
Functions | Description |
fcntl | Manipulates file descriptor |
dup | Duplicates a file descriptor |
dup2 | Duplicates a file descriptor |
readv | Reads or writes data into multiple buffers |
writev | Reads or writes data into multiple buffers |
ioctl | Controls device |
creat | Opens and possibly creates a file or device |
lseek | Repositions a read/write file offset |
sync | Flushes filesystem buffers |
fsync | Synchronizes a fileâs complete in-core state with that on disk |
Memory-mapped I/O
Functions | Description |
mmap | Map or unmap files or devices into memory |
mprotect | Controls allowable accesses to a region of memory |
msync | Synchronizes a file with a memory map |
munmap | Map or unmap files or devices into memory |
FIFOs
Functions | Description |
mkfifo | Make FIFOs (named pipes) |
Pipes
POSIX spawn
Functions | Description |
glob | Generates pathnames matching a pattern. |
globfree | Generates pathnames matching a pattern. |
posix_spawn | Spawns a process. |
posix_spawn_file_actions_addclose | Adds a close action to the file actions object. |
posix_spawn_file_actions_addopen | Adds a open action to the file action object. |
posix_spawn_file_actions_adddup2 | Add a dup2 action to the spawn file actions object. |
posix_spawn_file_actions_destroy | Destroys the spawn file actions object. |
posix_spawn_file_actions_init | Initialize the spawn file actions object. |
posix_spawnattr_destroy | Destroys the spawn attribute object. |
posix_spawnattr_init | Initialize the spawn attribute object. |
posix_spawnattr_getflags | Get the value of the spawn-flags attribute. |
posix_spawnattr_setflags | Set the value of the spawn-flags attribute. |
posix_spawnattr_getpgroup | Get the value of the spawn-pgroup attribute from the attributes object. |
posix_spawnattr_setpgroup | Set the spawn-pgroup attribute in an initialized attributes object |
posix_spawnattr_getschedparam | Get the value of the spawn-schedparam attribute from the attributes object. |
posix_spawnattr_setschedparam | Set the spawn-schedparam attribute in an initialized attributes object. |
posix_spawnattr_getschedpolicy | Get the value of the spawn-schedpolicy attribute from the attributes object. |
posix_spawnattr_setschedpolicy | Set the spawn-schedpolicy attribute in an initialized attributes object. |
posix_spawnattr_getsigdefault | Get the value of the spawn-sigdefault attribute from the attributes object. |
posix_spawnattr_setsigdefault | Set the spawn-sigdefault attribute in an initialized attributes object. |
posix_spawnattr_getsigmask | Get the value of the spawn-sigmask attribute from the attributes object. |
posix_spawnattr_setsigmask | Set the spawn-sigmask attribute in an initialized attributes object. |
Process Completion
Functions | Description |
wait | Wait for process termination |
waitpid | Wait for process termination |
wait4 | Wait for process termination, BSD style |
Process Identification
Functions | Description |
getpid | Get process identification |
Program Scheduling Priority
Functions | Description |
nice | Run a program with modified scheduling priority |
getpriority | Gets program scheduling priority |
setpriority | Sets program scheduling priority |
Path Handling
Functions | Description |
pathconf | Gets configuration values for files |
System Names Handling
Functions | Description |
uname | Prints system information |
Querying Memory Resources
Functions | Description |
getpagesize | Gets memory page size |
©Nokia 2007 |