Changeset 1940 for trunk/src/emx/include


Ignore:
Timestamp:
May 1, 2005, 5:42:35 AM (20 years ago)
Author:
bird
Message:

Added fchmod and reimplemented chmod and lchmod.

Location:
trunk/src/emx/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/backend.h

    • Property cvs2svn:cvs-rev changed from 1.19 to 1.20
    r1939 r1940  
    288288
    289289/**
     290 * Sets the file access mode of a file.
     291 *
     292 * @returns 0 on success.
     293 * @returns Negative error code (errno.h) on failure.
     294 * @param   pszPath The path to the file to set the mode of.
     295 * @param   Mode    The filemode.
     296 */
     297int __libc_Back_fsSymlinkModeSet(const char *pszPath, mode_t Mode);
     298
     299/**
    290300 * Stats a file.
    291301 *
     
    307317 */
    308318int __libc_Back_fsFileStatFH(int fh, struct stat *pStat);
     319
     320/**
     321 * Sets the file access mode of a file.
     322 *
     323 * @returns 0 on success.
     324 * @returns Negative error code (errno.h) on failure.
     325 * @param   pszPath The path to the file to set the mode of.
     326 * @param   Mode    The filemode.
     327 */
     328int __libc_Back_fsFileModeSet(const char *pszPath, mode_t Mode);
     329
     330/**
     331 * Sets the file access mode of a file by filehandle.
     332 *
     333 * @returns 0 on success.
     334 * @returns Negative error code (errno.h) on failure.
     335 * @param   fh      Handle to file.
     336 * @param   Mode    The filemode.
     337 */
     338int __libc_Back_fsFileModeSetFH(int fh, mode_t Mode);
    309339
    310340/**
  • trunk/src/emx/include/sys/stat.h

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r1939 r1940  
    337337#if __BSD_VISIBLE
    338338/** @todo int   fchflags(int, unsigned long); */
    339 /** @todo int   fchmod(int, mode_t); */
     339int     fchmod(int, mode_t);
    340340#endif
    341341int     fstat(int, struct stat *);
Note: See TracChangeset for help on using the changeset viewer.