diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-04-03 00:42:42 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-04-03 00:42:42 +0400 |
commit | 796e3b20bc861bdd8ca4da24b807582fb783e16a (patch) | |
tree | f57a158f5dc848dc57114e3123bc3b522bec17f9 /winsup/cygwin/cygwin.din | |
parent | c90d7012d3a7236d369df55b6963f124d5050318 (diff) |
* newlib/libc/include/sys/unistd.h: Add prototypes for
fchmod, fchown, lchown.
* winsup/cygwin/syscalls.cc (chown_worker): Use previous
uid/gid if new uid/gid is -1.
New static function with chown functionality.
(chown): Call chown_worker with SYMLINK_FOLLOW.
(fchown): New function. Call chown_worker with SYMLINK_FOLLOW.
(lchown): New function. Call chown_worker with SYMLINK_IGNORE.
* cygwin.din: Add symbols for fchown, lchown.
* path.cc (symlink): Call `set_file_attribute()' and
`SetFileAttributeA()' instead of `chmod()' to set
uid/gid correct.
Diffstat (limited to 'winsup/cygwin/cygwin.din')
-rw-r--r-- | winsup/cygwin/cygwin.din | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/cygwin.din b/winsup/cygwin/cygwin.din index 4abde7c95..d809a1ca3 100644 --- a/winsup/cygwin/cygwin.din +++ b/winsup/cygwin/cygwin.din @@ -186,6 +186,8 @@ _f_atan2f __f_atan2f = _f_atan2f fchmod _fchmod = fchmod +fchown +_fchown = fchown fclose _fclose = fclose fcntl @@ -425,6 +427,8 @@ kill _kill = kill labs _labs = labs +lchown +_lchown = lchown ldexp _ldexp = ldexp ldexpf |