Ignore:
Timestamp:
Feb 19, 2014, 2:40:34 AM (11 years ago)
Author:
bird
Message:

0.6: Untested backport of the *chown and *chmod changes that hit trunk in r3816.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/include/InnoTekLIBC/backend.h

    r3811 r3817  
    11/* $Id$ */
    22/** @file
    3  *
    43 * LIBC - Backend header.
    5  *
    6  * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net>
    7  *
     4 */
     5
     6/*
     7 * Copyright (c) 2004-2014 knut st. osmundsen <bird-srcspam@anduin.net>
    88 *
    99 * This file is part of InnoTek LIBC.
     
    337337
    338338/**
     339 * Changes the ownership and/or group, without following any final symlink.
     340 *
     341 * @returns 0 on success.
     342 * @returns Negative error code (errno.h) on failure.
     343 * @param   pszPath     Path to the file to modify ownership of.  If this is a
     344 *                      symbolic link, the link it self will modified.
     345 * @param   uid         The user id of the new owner, pass -1 to not change it.
     346 * @param   gid         The group id of the new group, pass -1 to not change it.
     347 */
     348int __libc_Back_fsSymlinkOwnerSet(const char *pszPath, uid_t uid, gid_t gid);
     349
     350/**
    339351 * Stats a file.
    340352 *
     
    396408 */
    397409int __libc_Back_fsFileTimesSetFH(int fh, const struct timeval *paTimes);
     410
     411/**
     412 * Changes the ownership and/or group, following all symbolic links.
     413 *
     414 * @returns 0 on success.
     415 * @returns Negative error code (errno.h) on failure.
     416 * @param   pszPath     Path to the file to modify ownership of.
     417 * @param   uid         The user id of the new owner, pass -1 to not change it.
     418 * @param   gid         The group id of the new group, pass -1 to not change it.
     419 */
     420int __libc_Back_fsFileOwnerSet(const char *pszPath, uid_t uid, gid_t gid);
     421
     422/**
     423 * Changes the ownership and/or group.
     424 *
     425 * @returns 0 on success.
     426 * @returns Negative error code (errno.h) on failure.
     427 * @param   fh          Handle to file.
     428 * @param   uid         The user id of the new owner, pass -1 to not change it.
     429 * @param   gid         The group id of the new group, pass -1 to not change it.
     430 */
     431int __libc_Back_fsFileOwnerSetFH(int fh, uid_t uid, gid_t gid);
    398432
    399433/**
Note: See TracChangeset for help on using the changeset viewer.