Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The supported POSIX functions are listed in the table below. These are divided into four groups. First, the functions which operate on file objects (FS_FILEs) are grouped under file access (or simply file) functions. An application stores information in a file system by creating a file or appending new information to an existing file. At a later time, this information may be retrieved by reading the file. Other functions support these capabilities; for example, the application can move to a specified location in the file or query the file system to get information about the file.

A separate set of file operations (or entry) functions manage the files and directories available on the system. Using these functions, the application can create, delete and rename files and directories.

The entries within a directory can be traversed using the directory access (or simply directory) functions, which operate on directory objects (FS_DIRs). The name and properties of the entries are returned within a struct fs_dirent structure.

The final group of functions is the working directory functions. For information about using file and path names, see section 4-3 “ μ C/FS File and Directory Names and Paths”.

Function

POSIX Equivalent

 

Function

POSIX Equivalent

fs_asctime_r()

asctime_r()

 

fs_ftruncate()

ftruncate()

fs_chdir()

chdir()

 

fs_ftrylockfile()

ftrylockfile()

fs_clearerr()

clearerr()

 

fs_funlockfile()

funlockfile()

fs_closedir()

closedir()

 

fs_fwrite()

fwrite()

fs_ctime_r()

ctime_r()

 

fs_getcwd()

getcwd()

fs_fclose()

fclose()

 

fs_localtime_r()

localtime_r()

fs_feof()

feof()

 

fs_mkdir()

mkdir()

fs_ferror()

ferror()

 

fs_mktime()

mktime()

fs_fflush()

fflush()

 

fs_rewind()

rewind()

fs_fgetpos()

fgetpos()

 

fs_opendir()

opendir()

fs_flockfile()

flockfile()

 

fs_readdir_r()

readdir_r()

fs_fopen()

fopen()

 

fs_remove()

remove()

fs_fread()

fread()

 

fs_rename()

rename()

fs_fseek()

fseek()

 

fs_rmdir()

rmdir()

fs_fsetpos()

fsetpos()

 

fs_setbuf()

setbuf()

fs_fstat()

fstat()

 

fs_setvbuf()

setvbuf()

fs_ftell()

ftell()

 

fs_stat()

stat()

 

Table 10-1 POSIX API functions

  • No labels