posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
XSI_FILE_SYSTEM

XSI File System option group (placeholder). More...

Macros

#define F_LOCK   1
 Lock a region of a file (lockf command).
 
#define F_TEST   3
 Test whether a file region is locked (lockf command).
 
#define F_TLOCK   2
 Lock a region, failing immediately if blocked (lockf command).
 
#define F_ULOCK   0
 Unlock a region (lockf command).
 

Functions

int mknod (const char *path, mode_t mode, dev_t dev)
 Create a special or regular file (XSI extension).
 
int mknodat (int fd, const char *path, mode_t mode, dev_t dev)
 Create a special or regular file relative to a directory descriptor (XSI).
 
int lockf (int fildes, int function, off_t size)
 Apply, test, or remove an advisory file lock (XSI extension).
 
void sync (void)
 Schedule outstanding writes to all file systems (XSI extension).
 

Detailed Description

XSI File System option group (placeholder).

See also
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html

Macro Definition Documentation

◆ F_LOCK

#define F_LOCK   1

Lock a region of a file (lockf command).

Definition at line 91 of file unistd.h.

◆ F_TEST

#define F_TEST   3

Test whether a file region is locked (lockf command).

Definition at line 93 of file unistd.h.

◆ F_TLOCK

#define F_TLOCK   2

Lock a region, failing immediately if blocked (lockf command).

Definition at line 95 of file unistd.h.

◆ F_ULOCK

#define F_ULOCK   0

Unlock a region (lockf command).

Definition at line 97 of file unistd.h.

Function Documentation

◆ lockf()

int lockf ( int  fildes,
int  function,
off_t  size 
)

Apply, test, or remove an advisory file lock (XSI extension).

See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/lockf.html

◆ mknod()

int mknod ( const char *  path,
mode_t  mode,
dev_t  dev 
)

Create a special or regular file (XSI extension).

◆ mknodat()

int mknodat ( int  fd,
const char *  path,
mode_t  mode,
dev_t  dev 
)

Create a special or regular file relative to a directory descriptor (XSI).

◆ sync()

void sync ( void  )

Schedule outstanding writes to all file systems (XSI extension).

See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sync.html