+Fri Aug 9 17:38:58 1996 Ulrich Drepper <drepper@cygnus.com>
+
+ * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
+ get `struct timeval'.
+ * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
+ * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
+ * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
+ * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
+ * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
+ * sysdeps/unix/sysv/linux/direntry.h: Complete types in
+ <linux/dirent.h>.
+ * io/fts.h: Include <sys/types.h> to get dev_t.
+ Reported by Matthias Urlichs.
+
+ * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
+ _IO_file_flags. It's the same as _flags.
+ Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
+
+Wed Aug 7 19:38:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
+
Thu Aug 8 16:17:38 1996 Ulrich Drepper <drepper@cygnus.com>
* pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
GNU C compiler. We recommend GCC version 2.7.2 or later; earlier
versions may have problems.
- * `binutils' 2.6
+ * `binutils' 2.7
Using the GNU `binutils' (assembler, linker, and related tools) is
preferable when possible, and they are required to build an ELF
- shared C library. We recommend `binutils' version 2.6 or later;
- earlier versions are known to have problems.
+ shared C library. We recommend `binutils' version 2.7 or later;
+ earlier versions are known to have problems or to not support all
+ architectures.
Supported Configurations
------------------------
# Default flags to pass the C compiler.
ifndef default_cflags
-default_cflags := -g
+default_cflags := -g -O
endif
# Flags to pass the C compiler when assembling preprocessed assembly code
object-suffixes += .go
CFLAGS-.go = -g
CFLAGS-.o = -g0 -O99 -fomit-frame-pointer
-CFLAGS-.so += $(CFLAGS.o)
+CFLAGS-.so += $(CFLAGS-.o)
libtype.go = lib%_g.a
endif
subdirs = csu assert ctype db locale intl catgets math setjmp signal stdlib \
stdio-common $(stdio) malloc string wcsmbs time dirent grp pwd\
posix io termios resource misc login socket sysvipc gmon gnulib \
- wctype manual $(sysdep-subdirs) nss elf po $(add-ons)
+ wctype manual shadow $(sysdep-subdirs) nss elf po $(add-ons)
export subdirs := $(subdirs) # Benign, useless in GNU make before 3.63.
# The mach and hurd subdirectories have many generated header files which
a29k | am29000) base_machine=a29k machine=a29k ;;
alpha*) base_machine=alpha machine=alpha/$machine ;;
hppa*) base_machine=hppa machine=hppa/$machine ;;
-i[345]86) base_machine=i386 machine=i386/$machine ;;
+i[3456]86) base_machine=i386 machine=i386/$machine ;;
m680?0) base_machine=m68k machine=m68k/$machine ;;
m68k) base_machine=m68k machine=m68k/m68020 ;;
m88???) base_machine=m88k machine=m88k/$machine ;;
routines := fgetgrent initgroups setgroups \
getgrent getgrgid getgrnam \
- getgrent_r getgrgid_r getgrnam_r
+ getgrent_r getgrgid_r getgrnam_r fgetgrent_r
tests := testgrp
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
-#include <stdio.h>
#include <grp.h>
-
-/* Define a line parsing function using the common code
- used in the nss_files module. */
-
-#define STRUCTURE group
-#define ENTNAME grent
-struct grent_data {};
-
-#define TRAILING_LIST_MEMBER gr_mem
-#define TRAILING_LIST_SEPARATOR_P(c) ((c) == ',')
-#include "../nss/nss_files/files-parse.c"
-LINE_PARSER
-(,
- STRING_FIELD (result->gr_name, ISCOLON, 0);
- STRING_FIELD (result->gr_passwd, ISCOLON, 0);
- INT_FIELD (result->gr_gid, ISCOLON, 0, 10,);
- )
+#include <stdio.h>
/* Read one entry from the given stream. */
{
static char buffer[BUFSIZ];
static struct group result;
- char *p;
-
- do
- {
- p = fgets (buffer, sizeof buffer, stream);
- if (p == NULL)
- return NULL;
-
- /* Skip leading blanks. */
- while (isspace (*p))
- ++p;
- } while (*p == '\0' || *p == '#' || /* Ignore empty and comment lines. */
- /* Parse the line. If it is invalid, loop to
- get the next line of the file to parse. */
- ! parse_line (p, &result, (void *) buffer, sizeof buffer));
- return &result;
+ return __fgetgrent_r (stream, &result, buffer, sizeof buffer);
}
#define GETFUNC_NAME getgrent
#define ENDFUNC_NAME endgrent
#define DATABASE_NAME group
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_GROUP
#include "../nss/getXXent.c"
#define GETFUNC_NAME getgrent
#define ENDFUNC_NAME endgrent
#define DATABASE_NAME group
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_GROUP
#include "../nss/getXXent_r.c"
#define DATABASE_NAME group
#define ADD_PARAMS gid_t gid
#define ADD_VARIABLES gid
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_GROUP
#include "../nss/getXXbyYY.c"
#define DATABASE_NAME group
#define ADD_PARAMS gid_t gid
#define ADD_VARIABLES gid
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_GROUP
#include "../nss/getXXbyYY_r.c"
#define DATABASE_NAME group
#define ADD_PARAMS const char *name
#define ADD_VARIABLES name
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_GROUP
#include "../nss/getXXbyYY.c"
struct group *__resultbuf,
char *buffer, int __buflen));
+#ifdef __USE_SVID
+/* Read a group entry from STREAM. */
+extern struct group *__fgetgrent_r __P ((FILE * __stream,
+ struct group *__resultbuf,
+ char *buffer, int __buflen));
+extern struct group *fgetgrent_r __P ((FILE * __stream,
+ struct group *__resultbuf,
+ char *buffer, int __buflen));
+#endif
+
#endif /* reentrant */
have problems.
@item
-@code{binutils} 2.6
+@code{binutils} 2.7
Using the GNU @code{binutils} (assembler, linker, and related tools) is
preferable when possible, and they are required to build an ELF shared C
-library. We recommend @code{binutils} version 2.6 or later; earlier
-versions are known to have problems.
+library. We recommend @code{binutils} version 2.7 or later; earlier
+versions are known to have problems or to not support all architectures.
@end itemize
@node Supported Configurations
routines = nsswitch $(addsuffix -lookup,$(databases))
# These are the databases that go through nss dispatch.
-databases = proto service hosts network grp pwd rpc ethers
+databases = proto service hosts network grp pwd rpc ethers \
+ spwd
# Specify rules for the nss_* modules. We have some services.
services := files dns db
#define DATABASE "passwd"
struct pwent_data {};
-/* Our parser function is already defined in fgetpwent.c, so use that
+/* Our parser function is already defined in fgetpwent_r.c, so use that
to parse lines from the database file. */
#define EXTERN_PARSER
#include "files-parse.c"
routines := fgetpwent getpw putpwent \
getpwent getpwnam getpwuid \
- getpwent_r getpwnam_r getpwuid_r
+ getpwent_r getpwnam_r getpwuid_r fgetpwent_r
include ../Rules
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
-#include <stdio.h>
#include <pwd.h>
-
-/* Define a line parsing function using the common code
- used in the nss_files module. */
-
-#define STRUCTURE passwd
-#define ENTNAME pwent
-struct pwent_data {};
-
-#include "../nss/nss_files/files-parse.c"
-LINE_PARSER
-(,
- STRING_FIELD (result->pw_name, ISCOLON, 0);
- STRING_FIELD (result->pw_passwd, ISCOLON, 0);
- INT_FIELD (result->pw_uid, ISCOLON, 0, 10,);
- INT_FIELD (result->pw_gid, ISCOLON, 0, 10,);
- STRING_FIELD (result->pw_gecos, ISCOLON, 0);
- STRING_FIELD (result->pw_dir, ISCOLON, 0);
- result->pw_shell = line;
- )
+#include <stdio.h>
/* Read one entry from the given stream. */
{
static char buffer[BUFSIZ];
static struct passwd result;
- char *p;
-
- do
- {
- p = fgets (buffer, sizeof buffer, stream);
- if (p == NULL)
- return NULL;
-
- /* Skip leading blanks. */
- while (isspace (*p))
- ++p;
- } while (*p == '\0' || *p == '#' || /* Ignore empty and comment lines. */
- /* Parse the line. If it is invalid, loop to
- get the next line of the file to parse. */
- ! parse_line (p, &result, (void *) buffer, sizeof buffer));
- return &result;
+ return __fgetpwent_r (stream, &result, buffer, sizeof buffer);
}
#define GETFUNC_NAME getpwent
#define ENDFUNC_NAME endpwent
#define DATABASE_NAME passwd
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_PASSWD
#include "../nss/getXXent.c"
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
+but WITHOUT ANY WARRANTY; without even the implied warranty of/tes
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
#define GETFUNC_NAME getpwent
#define ENDFUNC_NAME endpwent
#define DATABASE_NAME passwd
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_PASSWD
#include "../nss/getXXent_r.c"
#define DATABASE_NAME passwd
#define ADD_PARAMS const char *name
#define ADD_VARIABLES name
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_PASSWD
#include "../nss/getXXbyYY.c"
#define DATABASE_NAME passwd
#define ADD_PARAMS const char *name
#define ADD_VARIABLES name
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_PASSWD
#include "../nss/getXXbyYY_r.c"
#define DATABASE_NAME passwd
#define ADD_PARAMS uid_t uid
#define ADD_VARIABLES uid
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_PASSWD
#include "../nss/getXXbyYY.c"
#define DATABASE_NAME passwd
#define ADD_PARAMS uid_t uid
#define ADD_VARIABLES uid
-#define BUFLEN 1024
+#define BUFLEN NSS_BUFLEN_PASSWD
#include "../nss/getXXbyYY_r.c"
struct passwd *__resultbuf,
char *__buffer, int __buflen));
+
+#ifdef __USE_SVID
+/* Read an entry from STREAM. */
+extern struct passwd *__fgetpwent_r __P ((FILE * __stream,
+ struct passwd *__resultbuf,
+ char *__buffer, int __buflen));
+extern struct passwd *fgetpwent_r __P ((FILE * __stream,
+ struct passwd *__resultbuf,
+ char *__buffer, int __buflen));
+#endif
+
#endif /* reentrant */
char **argv = (char **)data + 1;
char **envp = &argv[argc + 1];
+ /* XXX Another gcc bug. We marked the function as `unused' but it
+ is still optimized away. */
+ volatile void *foo __attribute__ ((unused)) = &init;
+
#ifdef PIC
if (&__libc_is_static != NULL)
#endif