From 5f1e98e59b781e74c6e6f0f2f3368172577144f5 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 1 Mar 1996 17:07:10 +0000 Subject: Updated from libc --- glob/ChangeLog | 15 +++++++++++++++ glob/fnmatch.c | 7 ++++++- glob/glob.c | 11 ++++++++--- 3 files changed, 29 insertions(+), 4 deletions(-) (limited to 'glob') diff --git a/glob/ChangeLog b/glob/ChangeLog index 1dd02ef..911a487 100644 --- a/glob/ChangeLog +++ b/glob/ChangeLog @@ -1,3 +1,18 @@ +Fri Jan 19 13:28:59 1996 Roland McGrath + + * posix/glob.c (glob): Use prototype in getlogin decl. + +Thu Jan 18 00:32:43 1996 Roland McGrath + + * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h + defines GNU extensions. + * posix/fnmatch.c: Likewise. + +Fri Jan 12 13:40:01 1996 Roland McGrath + + * posix/glob.c (glob): Add parens in glob call flags arg for + GLOB_BRACE case. + Thu Dec 14 02:28:22 1995 Roland McGrath * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t, diff --git a/glob/fnmatch.c b/glob/fnmatch.c index 1ef5599..1ddea80 100644 --- a/glob/fnmatch.c +++ b/glob/fnmatch.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1993, 1996 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as @@ -19,6 +19,11 @@ Cambridge, MA 02139, USA. */ #include #endif +/* Enable GNU extensions in fnmatch.h. */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 +#endif + #include #include #include diff --git a/glob/glob.c b/glob/glob.c index 954960c..c8f2eab 100644 --- a/glob/glob.c +++ b/glob/glob.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as @@ -24,6 +24,11 @@ Cambridge, MA 02139, USA. */ #include #endif +/* Enable GNU extensions in glob.h. */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 +#endif + #include #include #include @@ -290,7 +295,7 @@ glob (pattern, flags, errfunc, pglob) memcpy (buf, pattern, begin - pattern); memcpy (buf + (begin - pattern), p, comma - p); memcpy (buf + (begin - pattern) + (comma - p), end, restlen); - result = glob (buf, (flags & ~(GLOB_NOCHECK|GLOB_NOMAGIC) | + result = glob (buf, ((flags & ~(GLOB_NOCHECK|GLOB_NOMAGIC)) | GLOB_APPEND), errfunc, pglob); if (result && result != GLOB_NOMATCH) return result; @@ -353,7 +358,7 @@ glob (pattern, flags, errfunc, pglob) dirname = getenv ("HOME"); if (dirname == NULL || dirname[0] == '\0') { - extern char *getlogin (); + extern char *getlogin __P ((void)); char *name = getlogin (); if (name != NULL) { -- cgit v1.2.3