From 22d7fbdbae4032639461a7a081762a05deee0529 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 15 Nov 2005 08:22:03 +0000 Subject: Updated to fedora-glibc-20051115T0809 --- posix/execl.c | 3 --- posix/execv.c | 5 +---- posix/unistd.h | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 7 deletions(-) (limited to 'posix') diff --git a/posix/execl.c b/posix/execl.c index 12b59f9de3..7f822d0142 100644 --- a/posix/execl.c +++ b/posix/execl.c @@ -24,9 +24,6 @@ #include -#ifndef HAVE_GNU_LD -# define __environ environ -#endif /* Execute PATH with all arguments after PATH until a NULL pointer and environment from `environ'. */ diff --git a/posix/execv.c b/posix/execv.c index a3c51c7be4..cb372abe37 100644 --- a/posix/execv.c +++ b/posix/execv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1997, 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,9 +18,6 @@ #include -#ifndef HAVE_GNU_LD -# define __environ environ -#endif /* Execute PATH with arguments ARGV and environment from `environ'. */ int diff --git a/posix/unistd.h b/posix/unistd.h index b0fba33417..86e0e9e659 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -431,6 +431,14 @@ extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group) #endif /* Use BSD || X/Open Unix. */ +#ifdef __USE_GNU +/* Change the owner and group of FILE relative to the directory FD is open + on. */ +extern int fchownat (int __fd, __const char *__file, __uid_t __owner, + __gid_t __group, int __flag) + __THROW __nonnull ((2)) __wur; +#endif /* Use GNU. */ + /* Change the process's working directory to PATH. */ extern int chdir (__const char *__path) __THROW __nonnull ((1)) __wur; @@ -749,6 +757,12 @@ extern int readlink (__const char *__restrict __path, char *__restrict __buf, /* Remove the link NAME. */ extern int unlink (__const char *__name) __THROW __nonnull ((1)); +#ifdef __USE_GNU +/* Remove the link NAME relative to FD. */ +extern int unlinkat (int __fd, __const char *__name, int __flag) + __THROW __nonnull ((2)); +#endif + /* Remove the directory PATH. */ extern int rmdir (__const char *__path) __THROW __nonnull ((1)); -- cgit v1.2.3