lchown for Linux [PATCH]
Jeff Johnston
jjohnstn@redhat.com
Thu Apr 7 23:41:00 GMT 2005
Also checked in. Thanks.
-- Jeff J.
Shaun Jackman wrote:
> This patch adds lchown, which is in SUSv3 and is already in
> libc/sys/linux/sys/unistd.h.
>
> Cheers,
> Shaun
>
> 2005-04-06 Shaun Jackman <sjackman@gmail.com>
>
> * libc/sys/linux/inode.c (lchown): New function.
>
> Index: libc/sys/linux/inode.c
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/sys/linux/inode.c,v
> retrieving revision 1.9
> diff -u -r1.9 inode.c
> --- libc/sys/linux/inode.c 26 Aug 2002 18:56:08 -0000 1.9
> +++ libc/sys/linux/inode.c 6 Apr 2005 23:08:27 -0000
> @@ -35,6 +35,7 @@
> _syscall2(int,chmod,const char *,path,mode_t,mode)
> _syscall3(int,chown,const char *,path,uid_t,owner,gid_t,group)
> _syscall2(int,fchmod,int,filedes,mode_t,mode)
> +_syscall3(int,lchown,const char *,path,uid_t,owner,gid_t,group)
> _syscall2(int,lstat,const char *,file_name,struct stat *,buf)
> _syscall3(int,readlink,const char *,path,char *,buf,size_t,bufsiz)
> _syscall2(int,symlink,const char *,oldpath,const char *,newpath)
More information about the Newlib
mailing list