IMPORT_C int | access | ( | const char * | _path, |
int | _amode | |||
) |
IMPORT_C int | waccess | ( | const wchar_t * | _path, |
int | _amode | |||
) |
IMPORT_C int | chdir | ( | const char * | _path | ) |
Changes the current working directory to be pathname. The current directory is the beginning point for file searches when path names are not absolute. If the chdir() function fails, the current working directory remains unchanged.
Parameters | |
---|---|
_path | Is the path name of a directory. |
IMPORT_C int | chmod | ( | const char * | _path, |
mode_t | _mode | |||
) |
Sets the access permissions for the file whose name is given by pathname to the bit pattern contained in mode. For this call to succeed, the effective user ID of the process must match the owner of the file, or the process must have appropriate privileges. The owner of the file pathname always has privileges to change permission modes and file attributes.
Parameters | |
---|---|
_path | Points to the name of the file. |
_mode | Is a bitwise-or field that specifies the new permission modes for path name. |
IMPORT_C int | close | ( | int | _fildes | ) |
Close a file.
IMPORT_C int | dup | ( | int | _fildes | ) |
Duplicates an open file descriptor.
Parameters | |
---|---|
_fildes | Is the file descriptor to duplicate. |
IMPORT_C int | dup2 | ( | int | _fildes, |
int | _fildes2 | |||
) |
Function duplicates an open file descriptor.
Parameters | |
---|---|
_fildes | Is the file descriptor to duplicate. |
_fildes2 | Is the file descriptor that filedes is duplicated onto. |
IMPORT_C int | fsync | ( | int | _fildes | ) |
Synchronizes a file's in-memory state with that on the physical medium.
Parameters | |
---|---|
_fildes | Is the file descriptor for the file to be synchronized. |
IMPORT_C char * | getcwd | ( | char * | _buf, |
size_t | _size | |||
) |
Gets the path name of the current working directory. If a buffer is specified, the path name is placed in that buffer, and the address of the buffer is returned.
Parameters | |
---|---|
_buf | Points to the buffer to copy the current working directory to, or NULL if getcwd() should allocate the buffer. |
_size | Is the size, in bytes, of the array of characters that buf points to. |
IMPORT_C int | gethostname | ( | char * | _buf, |
size_t | _size | |||
) |
Get the internet name of this host. Actually this will always return a null string with TCPIP 030 and onwards because the "name" of a mobile host isn't really very meaningful - in practice the IP address is chosen dynamically once you start doing real networking, at which time the ISP can resolve the IP address into a name of some sort if you really want.
IMPORT_C int | isatty | ( | int | _fildes | ) |
Repositions the read/write file offset.
Parameters | |
---|---|
_fildes | Is the file descriptor of an open file. |
_offset | Specifies the number of bytes to offset the file pointer from a specified file origin. |
_whence | Specifies the location from which to start seeking. |
IMPORT_C int | open | ( | const char * | , |
int | , | |||
... | ||||
) |
Opens the file which name is stored in the file string.
IMPORT_C int | read | ( | int | _fildes, |
char * | _buf, | |||
size_t | _nbyte | |||
) |
Reads a block of data of the length specified by cnt.
IMPORT_C int | rename | ( | const char * | , |
const char * | ||||
) |
Renames a file.
Parameters | |
---|---|
Points to the path name of the file to be renamed. The path name can be absolute or relative. If a relative path name is given, the file is searched from the current working directory. | |
Points to the path name of the file. The path name can be absolute or relative. If a relative path name is given, the file is searched from the current working directory. |
IMPORT_C int | rmdir | ( | const char * | _path | ) |
Removes an empty directory whose name is given by pathname. The directory must not have any entries other than dot (.) and dot-dot (..).
Parameters | |
---|---|
_path | Points to the directory that the rmdir() function removes. |
IMPORT_C int | unlink | ( | const char * | _path | ) |
Removes a link to a file, and decrements the link count of the referenced file by one. When the file's link count becomes 0 and no process has the file open, the space occupied by the file is freed, and the file is no longer accessible. If one or more processes have the file open when the last link is removed, the link is removed before unlink() returns, but the removal of the file contents is postponed until all references to the file are closed.
Parameters | |
---|---|
_path | Points to the path name that names the file to be unlinked. |
IMPORT_C int | write | ( | int | _fildes, |
const char * | _buf, | |||
size_t | _nbyte | |||
) |
Writes a block of data of the length specified by cnt.
IMPORT_C void | _exit | ( | int | _status | ) |
IMPORT_C unsigned | sleep | ( | unsigned int | _seconds | ) |
unsigned | alarm | ( | unsigned | _secs | ) |
char * | ctermid | ( | char * | _s | ) |
char * | cuserid | ( | char * | _s | ) |
int | execl | ( | const char * | _path, |
const char * | , | |||
... | ||||
) |
int | execle | ( | const char * | _path, |
const char * | , | |||
... | ||||
) |
int | execlp | ( | const char * | _file, |
const char * | , | |||
... | ||||
) |
int | execv | ( | const char * | _path, |
char *const | _argv | |||
) |
int | execve | ( | const char * | _path, |
char *const | _argv, | |||
char *const | _envp | |||
) |
int | execvp | ( | const char * | _file, |
char *const | _argv | |||
) |
pid_t | fork | ( | void | ) |
long | fpathconf | ( | int | _fd, |
int | _name | |||
) |
gid_t | getegid | ( | void | ) |
uid_t | geteuid | ( | void | ) |
gid_t | getgid | ( | void | ) |
int | getgroups | ( | int | _gidsetsize, |
gid_t | _grouplist | |||
) |
char * | getlogin | ( | void | ) |
size_t | getpagesize | ( | void | ) |
pid_t | getpgrp | ( | void | ) |
pid_t | getppid | ( | void | ) |
uid_t | getuid | ( | void | ) |
int | link | ( | const char * | _path1, |
const char * | _path2 | |||
) |
long | pathconf | ( | char * | _path, |
int | _name | |||
) |
int | pause | ( | void | ) |
int | pipe | ( | int | _fildes | ) |
void * | sbrk | ( | size_t | incr | ) |
int | setgid | ( | gid_t | _gid | ) |
pid_t | setsid | ( | void | ) |