RTEMS Logo

RTEMS 4.7.99.2 On-Line Library


Files and Directories Manager fchmod - Changes permissions of a file

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

4.4.26: fchmod - Changes permissions of a file

CALLING SEQUENCE:

#include <sys/types.h>
#include <sys/stat.h>

int fchmod(
  int    fildes,
  mode_t mode
);

STATUS CODES:

EACCES
Search permission is denied for a directory in a file's path prefix.
EBADF
The descriptor is not valid.
EFAULT
path points outside your accessible address space.
EIO
A low-level I/o error occurred while modifying the inode.
ELOOP
path contains a circular reference
ENAMETOOLONG
Length of a filename string exceeds PATH_MAX and _POSIX_NO_TRUNC is in effect.
ENOENT
A file or directory does no exist.
ENOMEM
Insufficient kernel memory was avaliable.
ENOTDIR
A component of the specified pathname was not a directory when a directory was expected.
EPERM
The effective UID does not match the owner of the file, and is not zero
EROFS
Read-only file system

DESCRIPTION:

The mode of the file given by path or referenced by filedes is changed.

NOTES:

NONE


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2004 OAR Corporation