Go to the source code of this file.
|
|
#define | S_IFIFO 0 /* FIFO */ |
| |
|
#define | S_IFCHR 1 /* Character device */ |
| |
|
#define | S_IFBLK 2 /* Block device */ |
| |
|
#define | S_IFREG 3 /* Regular file */ |
| |
|
#define | S_IFDIR 4 /* Directory */ |
| |
|
| int | fstat (int fd, struct stat *statbuf) |
| | Return information about a file, in the buffer pointed to by statbuf. More...
|
| |
| int | mknod (const char *pathname, mode_t mode, dev_t dev) |
| | Create a filesystem node (file, device special file, or named pipe) named pathname, with attributes specified by mode and dev. More...
|
| |
| int | mkfifo (const char *pathname, mode_t mode) |
| | Makes a FIFO special file with name pathname. More...
|
| |
◆ fstat()
| int fstat |
( |
int |
fd, |
|
|
struct stat * |
statbuf |
|
) |
| |
Return information about a file, in the buffer pointed to by statbuf.
- Parameters
-
| fd | The file descriptor to provide. |
- Return values
-
| int | 0 on success and nonzero error number on error. |
◆ mkfifo()
| int mkfifo |
( |
const char * |
pathname, |
|
|
mode_t |
mode |
|
) |
| |
Makes a FIFO special file with name pathname.
- Parameters
-
| pathname | The path name to create the new fifo file. |
| mode | Not used. |
- Return values
-
| int | 0 on success and nonzero error number on error. |
◆ mknod()
| int mknod |
( |
const char * |
pathname, |
|
|
mode_t |
mode, |
|
|
dev_t |
dev |
|
) |
| |
Create a filesystem node (file, device special file, or named pipe) named pathname, with attributes specified by mode and dev.
- Parameters
-
| pathname | The pathname to create the new file. |
| mode | Not used. |
| dev | The file type to provide (S_IFIFO, S_IFCHR, ...). |
- Return values
-
| int | 0 on success and nonzero error number on error. |