4.115
Last change
on this file since 98b785e was
98b785e,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/01/10 at 17:22:03
|
2010-07-01 Vinu Rajashekhar <vinutheraj@…>
PR 1597/cpukit
- libcsupport/Makefile.am, libcsupport/src/chown.c: Add lchown() and
utimes().
- libcsupport/src/lchown.c, libcsupport/src/utimes.c: New files.
|
-
Property mode set to
100644
|
File size:
657 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 <sys/stat.h> |
---|
19 | |
---|
20 | #include <rtems.h> |
---|
21 | |
---|
22 | int _chown_helper( const char *path, uid_t owner, gid_t group, int follow_link); |
---|
23 | |
---|
24 | int 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.