Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Pagecss.POSIX API.csscss.POSIX API.css Include Pagecss.webworks.csscss.webworks.css Anchor10465161046516 Supported Functions Anchor10465171046517The supported POSIX functions are listed in the table below. These are divided into four groups. First, the functions which operate on file objects (FS_FILEsFILEs) 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. Anchor

10465181046518A 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. Anchor10465191046519

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

...

10495081049508The 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" on page 62. Anchor10536681053668  

...

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