source: rtems/cpukit/libcsupport/src/lchown.c @ 51441425

4.115
Last change on this file since 51441425 was df4669f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/05/11 at 14:20:38

2011-12-05 Ralf Corsépius <ralf.corsepius@…>

  • libcsupport/src/chown.c, libcsupport/src/lchown.c: Include <unistd.h>. Cleanup included headers.
  • Property mode set to 100644
File size: 655 bytes
Line 
1/*
2 *  lchown() - POSIX 1003.1b 5.6.5 - Change Owner and Group of a File
3 *             But Do Not Follow a Symlink
4 *
5 *  Written by: Vinu Rajashekhar <vinutheraj@gmail.com>
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <unistd.h>
19
20#include <rtems.h>
21
22int _chown_helper( const char *path, uid_t owner, gid_t group, int follow_link);
23
24int lchown(
25  const char *path,
26  uid_t       owner,
27  gid_t       group
28)
29{
30  return _chown_helper( path, owner, group, false );
31}
Note: See TracBrowser for help on using the repository browser.