mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
* lib/c-stack.c: Include unistd.h unconditionally, since we now assume
the unistd module. * lib/getlogin_r.c: Likewise. * lib/getlogin_r.h: Likewise. * lib/glob.c: Likewise. * lib/pagealign_alloc.c: Likewise. * lib/unistd_.h: Remove; no longer needed. * modules/c-stack (Depends-on): Add unistd. * modules/getlogin_r: Likewise. * modules/glob: Likewise. * modules/pagealign_alloc: Likewise. * modules/unistd (Files): Remove lib/unistd_.h. (EXTRA_DIST): Remove. (unistd.h): Create using 'echo' rather than 'cp', so that we don't need unistd_.h. (MOSTLYCLEANFILES): Remove unistd.h-t.
This commit is contained in:
12
ChangeLog
12
ChangeLog
@@ -1,3 +1,15 @@
|
|||||||
|
2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* modules/c-stack (Depends-on): Add unistd.
|
||||||
|
* modules/getlogin_r: Likewise.
|
||||||
|
* modules/glob: Likewise.
|
||||||
|
* modules/pagealign_alloc: Likewise.
|
||||||
|
* modules/unistd (Files): Remove lib/unistd_.h.
|
||||||
|
(EXTRA_DIST): Remove.
|
||||||
|
(unistd.h): Create using 'echo' rather than 'cp', so that we don't
|
||||||
|
need unistd_.h.
|
||||||
|
(MOSTLYCLEANFILES): Remove unistd.h-t.
|
||||||
|
|
||||||
2006-03-07 Simon Josefsson <jas@extundo.com>
|
2006-03-07 Simon Josefsson <jas@extundo.com>
|
||||||
|
|
||||||
* modules/getopt (Depends-on): Add unistd.
|
* modules/getopt (Depends-on): Add unistd.
|
||||||
|
@@ -1,3 +1,13 @@
|
|||||||
|
2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
* c-stack.c: Include unistd.h unconditionally, since we now assume
|
||||||
|
the unistd module.
|
||||||
|
* getlogin_r.c: Likewise.
|
||||||
|
* getlogin_r.h: Likewise.
|
||||||
|
* glob.c: Likewise.
|
||||||
|
* pagealign_alloc.c: Likewise.
|
||||||
|
* unistd_.h: Remove; no longer needed.
|
||||||
|
|
||||||
2006-03-07 Simon Josefsson <jas@extundo.com>
|
2006-03-07 Simon Josefsson <jas@extundo.com>
|
||||||
|
|
||||||
* unistd_.h: New file.
|
* unistd_.h: New file.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
/* Stack overflow handling.
|
/* Stack overflow handling.
|
||||||
|
|
||||||
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
|
Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -77,9 +77,7 @@ typedef struct sigaltstack stack_t;
|
|||||||
# include <ucontext.h>
|
# include <ucontext.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_UNISTD_H
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
|
||||||
#ifndef STDERR_FILENO
|
#ifndef STDERR_FILENO
|
||||||
# define STDERR_FILENO 2
|
# define STDERR_FILENO 2
|
||||||
#endif
|
#endif
|
||||||
|
@@ -26,10 +26,7 @@
|
|||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if HAVE_UNISTD_H
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !HAVE_DECL_GETLOGIN
|
#if !HAVE_DECL_GETLOGIN
|
||||||
char *getlogin (void);
|
char *getlogin (void);
|
||||||
|
@@ -19,10 +19,7 @@
|
|||||||
/* Written by Paul Eggert and Derek Price. */
|
/* Written by Paul Eggert and Derek Price. */
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#if HAVE_UNISTD_H
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Copies the user's login name to NAME.
|
/* Copies the user's login name to NAME.
|
||||||
The array pointed to by NAME has room for SIZE bytes.
|
The array pointed to by NAME has room for SIZE bytes.
|
||||||
|
@@ -34,14 +34,11 @@
|
|||||||
#include <stdio.h> /* Needed on stupid SunOS for assert. */
|
#include <stdio.h> /* Needed on stupid SunOS for assert. */
|
||||||
|
|
||||||
#if !defined _LIBC || !defined GLOB_ONLY_P
|
#if !defined _LIBC || !defined GLOB_ONLY_P
|
||||||
#if defined HAVE_UNISTD_H || defined _LIBC
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
# ifndef POSIX
|
#if !defined POSIX && defined _POSIX_VERSION
|
||||||
# ifdef _POSIX_VERSION
|
|
||||||
# define POSIX
|
# define POSIX
|
||||||
#endif
|
#endif
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
|
||||||
|
@@ -29,10 +29,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#if HAVE_UNISTD_H
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#if HAVE_MMAP
|
#if HAVE_MMAP
|
||||||
# include <sys/mman.h>
|
# include <sys/mman.h>
|
||||||
|
@@ -1,24 +0,0 @@
|
|||||||
/* A unistd.h replacement for systems lacking it.
|
|
||||||
Copyright (C) 2006 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2, or (at your option)
|
|
||||||
any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
||||||
USA. */
|
|
||||||
|
|
||||||
/* Put any statements that are necessary to get a working unistd.h in
|
|
||||||
this file. */
|
|
||||||
|
|
||||||
/* MS Visual Studio doesn't have unistd.h, but it doesn't seem to need
|
|
||||||
any particular statements in this file. So this file is here to
|
|
||||||
avoid breaking '#include <unistd.h>' in other files. */
|
|
@@ -9,6 +9,7 @@ m4/c-stack.m4
|
|||||||
Depends-on:
|
Depends-on:
|
||||||
gettext-h
|
gettext-h
|
||||||
exitfail
|
exitfail
|
||||||
|
unistd
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_C_STACK
|
gl_C_STACK
|
||||||
|
@@ -7,6 +7,7 @@ lib/getlogin_r.c
|
|||||||
m4/getlogin_r.m4
|
m4/getlogin_r.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
|
unistd
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_GETLOGIN_R
|
gl_GETLOGIN_R
|
||||||
|
@@ -19,6 +19,7 @@ restrict
|
|||||||
stat-macros
|
stat-macros
|
||||||
stdbool
|
stdbool
|
||||||
strdup
|
strdup
|
||||||
|
unistd
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_GLOB
|
gl_GLOB
|
||||||
|
@@ -13,6 +13,7 @@ exit
|
|||||||
getpagesize
|
getpagesize
|
||||||
gettext-h
|
gettext-h
|
||||||
xalloc
|
xalloc
|
||||||
|
unistd
|
||||||
|
|
||||||
configure.ac:
|
configure.ac:
|
||||||
gl_PAGEALIGN_ALLOC
|
gl_PAGEALIGN_ALLOC
|
||||||
|
@@ -2,7 +2,6 @@ Description:
|
|||||||
A <unistd.h> for systems lacking it.
|
A <unistd.h> for systems lacking it.
|
||||||
|
|
||||||
Files:
|
Files:
|
||||||
lib/unistd_.h
|
|
||||||
m4/unistd_h.m4
|
m4/unistd_h.m4
|
||||||
|
|
||||||
Depends-on:
|
Depends-on:
|
||||||
@@ -12,14 +11,12 @@ gl_HEADER_UNISTD
|
|||||||
|
|
||||||
Makefile.am:
|
Makefile.am:
|
||||||
BUILT_SOURCES += $(UNISTD_H)
|
BUILT_SOURCES += $(UNISTD_H)
|
||||||
EXTRA_DIST += unistd_.h
|
|
||||||
|
|
||||||
# We need the following in order to create <unistd.h> when the system
|
# We need the following in order to create an empty placeholder for
|
||||||
# doesn't have one.
|
# <unistd.h> when the system doesn't have one.
|
||||||
unistd.h: unistd_.h
|
unistd.h:
|
||||||
cp $(srcdir)/unistd_.h $@-t
|
echo '/* Empty placeholder for $@. */' >$@
|
||||||
mv $@-t $@
|
MOSTLYCLEANFILES += unistd.h
|
||||||
MOSTLYCLEANFILES += unistd.h unistd.h-t
|
|
||||||
|
|
||||||
Include:
|
Include:
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
Reference in New Issue
Block a user