From owner-freebsd-standards Mon Jul 8 10:19:16 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6043937B401; Mon, 8 Jul 2002 10:19:15 -0700 (PDT) Received: from numeri.campus.luth.se (numeri.campus.luth.se [130.240.197.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A5AA43E4A; Mon, 8 Jul 2002 10:19:14 -0700 (PDT) (envelope-from k@numeri.campus.luth.se) Received: (from k@localhost) by numeri.campus.luth.se (8.11.6/8.11.6) id g68HJDR57547; Mon, 8 Jul 2002 19:19:13 +0200 (CEST) (envelope-from k) Date: Mon, 8 Jul 2002 19:19:12 +0200 From: Johan Karlsson To: freebsd-standards@freebsd.org Cc: sheldonh@freebsd.org Subject: adding -n flag to cp(1)/mv(1) Message-ID: <20020708191912.C56044@numeri.campus.luth.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I'm thinking about adding a flag to cp(1)/mv(1) to make it never overwrite an existing file. (see PR 7828 for the original suggestion) I guess a natural flag to use is -n as in the PR but I want to know if this violates any of the standards that we are trying to conform to. Or is this a realy stupid idea for some other (standards) reason? /Johan K -- Johan Karlsson mailto:johan@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Mon Jul 8 10:27:20 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0032937B400; Mon, 8 Jul 2002 10:27:18 -0700 (PDT) Received: from numeri.campus.luth.se (numeri.campus.luth.se [130.240.197.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1C4943E09; Mon, 8 Jul 2002 10:27:17 -0700 (PDT) (envelope-from k@numeri.campus.luth.se) Received: (from k@localhost) by numeri.campus.luth.se (8.11.6/8.11.6) id g68HRGr57727; Mon, 8 Jul 2002 19:27:16 +0200 (CEST) (envelope-from k) Date: Mon, 8 Jul 2002 19:27:16 +0200 From: Johan Karlsson To: freebsd-standards@freebsd.org Cc: sheldonh@freebsd.org Subject: Re: adding -n flag to cp(1)/mv(1) Message-ID: <20020708192716.D56044@numeri.campus.luth.se> References: <20020708191912.C56044@numeri.campus.luth.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020708191912.C56044@numeri.campus.luth.se>; from johan@freebsd.org on Mon, Jul 08, 2002 at 07:19:12PM +0200 Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ok my suggestion only applies to cp(1) since mv(1) already has -n which does this. /Johan K On Mon, Jul 08, 2002 at 19:19 (+0200) +0000, Johan Karlsson wrote: > Hi > > I'm thinking about adding a flag to cp(1)/mv(1) > to make it never overwrite an existing file. > (see PR 7828 for the original suggestion) > > I guess a natural flag to use is -n as in the PR > but I want to know if this violates any of the > standards that we are trying to conform to. > > Or is this a realy stupid idea for some > other (standards) reason? > > > /Johan K > > -- > Johan Karlsson mailto:johan@FreeBSD.org -- Johan Karlsson mailto:johan@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Mon Jul 8 15:24:57 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2516437B400; Mon, 8 Jul 2002 15:24:56 -0700 (PDT) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD13B43E3B; Mon, 8 Jul 2002 15:24:55 -0700 (PDT) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 5BDC19C0B; Mon, 8 Jul 2002 18:20:59 -0400 (EDT) Date: Mon, 8 Jul 2002 18:20:59 -0400 From: Mike Barcroft To: Johan Karlsson Cc: freebsd-standards@freebsd.org, sheldonh@freebsd.org Subject: Re: adding -n flag to cp(1)/mv(1) Message-ID: <20020708182059.A51389@espresso.q9media.com> References: <20020708191912.C56044@numeri.campus.luth.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020708191912.C56044@numeri.campus.luth.se>; from johan@freebsd.org on Mon, Jul 08, 2002 at 07:19:12PM +0200 Organization: The FreeBSD Project Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Johan Karlsson writes: > I'm thinking about adding a flag to cp(1)/mv(1) > to make it never overwrite an existing file. > (see PR 7828 for the original suggestion) > > I guess a natural flag to use is -n as in the PR > but I want to know if this violates any of the > standards that we are trying to conform to. > > Or is this a realy stupid idea for some > other (standards) reason? I don't see a problem with this from a standards perspective. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Tue Jul 9 23:40:18 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02C3C37B400 for ; Tue, 9 Jul 2002 23:40:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AC7B43E54 for ; Tue, 9 Jul 2002 23:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6A6e2JU081357 for ; Tue, 9 Jul 2002 23:40:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6A6e2iU081356; Tue, 9 Jul 2002 23:40:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13FC037B400 for ; Tue, 9 Jul 2002 23:38:50 -0700 (PDT) Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id E074F43E42 for ; Tue, 9 Jul 2002 23:38:48 -0700 (PDT) (envelope-from pfeifer@dbai.tuwien.ac.at) Received: from belatrix.dbai.tuwien.ac.at (belatrix [128.130.111.33]) by vexpert.dbai.tuwien.ac.at (8.11.6/8.11.6) with ESMTP id g6A6cjC07560; Wed, 10 Jul 2002 08:38:45 +0200 (MET DST) Received: (from pfeifer@localhost) by belatrix.dbai.tuwien.ac.at (8.12.5/8.12.5/Submit) id g6A6cjt9056717; Wed, 10 Jul 2002 08:38:45 +0200 (CEST) (envelope-from pfeifer) Message-Id: <200207100638.g6A6cjt9056717@belatrix.dbai.tuwien.ac.at> Date: Wed, 10 Jul 2002 08:38:45 +0200 (CEST) From: Gerald Pfeifer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: standards/40402: /usr/include/stddef.h and /usr/include/stdlib.h cause compiler warnings Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Number: 40402 >Category: standards >Synopsis: /usr/include/stddef.h and /usr/include/stdlib.h cause compiler warnings >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 09 23:40:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Gerald Pfeifer >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD belatrix.dbai.tuwien.ac.at 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Jul 4 19:14:52 CEST 2002 pisjak@procyon.dbai.tuwien.ac.at:/usr/obj/files/pisjak/pisjak/tmp/FreeBSD/src/sys/DBAI i386 >Description: /usr/include/stddef.h and /usr/include/stdlib.h cause compiler warnings with g++ and -pedantic. This is a regression from 4.5-RELEASE and also reproducible on ref4; -CURRENT and ref5 do not seem to have this problem. >How-To-Repeat: % cat x.cc #include #include int main() { } % g++ -pedantic x.cc In file included from /usr/include/g++/_G_config.h:101, from /usr/include/g++/libio.h:30, from /usr/include/g++/streambuf.h:36, from /usr/include/g++/iostream.h:31, from /usr/include/g++/iostream:6, from x.cc:1: /usr/include/stddef.h:58: warning: redeclaration of wchar_t as `int' In file included from /usr/include/g++/stl_alloc.h:54, from /usr/include/g++/alloc.h:21, from /usr/include/g++/std/bastring.h:39, from /usr/include/g++/string:6, from x.cc:2: /usr/include/stdlib.h:108: warning: ANSI C++ does not support `long long' /usr/include/stdlib.h:112: warning: ANSI C++ does not support `long long' >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed Jul 10 2: 0:13 2002 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F25F37B400 for ; Wed, 10 Jul 2002 02:00:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5AC143E4A for ; Wed, 10 Jul 2002 02:00:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6A908JU003436 for ; Wed, 10 Jul 2002 02:00:08 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6A908MG003435; Wed, 10 Jul 2002 02:00:08 -0700 (PDT) Date: Wed, 10 Jul 2002 02:00:08 -0700 (PDT) Message-Id: <200207100900.g6A908MG003435@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Stefan Farfeleder Subject: Re: standards/40402: /usr/include/stddef.h and /usr/include/stdlib.h cause compiler warnings Reply-To: Stefan Farfeleder Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The following reply was made to PR standards/40402; it has been noted by GNATS. From: Stefan Farfeleder To: Gerald Pfeifer Cc: bug-followup@FreeBSD.ORG Subject: Re: standards/40402: /usr/include/stddef.h and /usr/include/stdlib.h cause compiler warnings Date: Wed, 10 Jul 2002 10:53:28 +0200 On Wed, Jul 10, 2002 at 08:38:45AM +0200, Gerald Pfeifer wrote: > > >Number: 40402 > >Category: standards > >Synopsis: /usr/include/stddef.h and /usr/include/stdlib.h cause compiler warnings Please see also http://www.freebsd.org/cgi/query-pr.cgi?pr=40084 . Regards, Stefan Farfeleder To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Fri Jul 12 0:23: 3 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C25737B401; Fri, 12 Jul 2002 00:22:46 -0700 (PDT) Received: from enterprise.muriel.penguinpowered.com (unknown [206.19.194.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id D29BD43E67; Fri, 12 Jul 2002 00:22:45 -0700 (PDT) (envelope-from mikeh@freebsd.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.5.2.FreeBSD:20020712032333:273=_" In-Reply-To: Date: Fri, 12 Jul 2002 03:23:33 -0400 (EDT) From: Mike Heffner To: Mike Heffner Subject: Re: Update of glob(3) Cc: standards@FreeBSD.ORG Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This message is in MIME format --_=XFMail.1.5.2.FreeBSD:20020712032333:273=_ Content-Type: text/plain; charset=us-ascii Alright, with some comments from Garrett Wollman, this is the second version of this patch that hopefully uses the right conditional to exclude non-POSIX conforming options in the header file. The only change is that we test against __BSD_VISIBLE instead of !_POSIX_SOURCE. On 06-Jul-2002 Mike Heffner wrote: | Hi all, | | Below is a patch to update glob(3) to add the newer options in | 1003.1-2001 | and correct some mis-conforming behaviors. Specifically: | | - add GLOB_NOMATCH return value and use it when we don't get a match | - rename GLOB_ABEND to GLOB_ABORTED and use it instead of returning 1 in | some places | - add GLOB_NOESCAPE flag | | | Reviews are welcome, I'll probably commit it in a week or so. | Mike -- Mike Heffner --_=XFMail.1.5.2.FreeBSD:20020712032333:273=_ Content-Disposition: attachment; filename="glob.diff" Content-Transfer-Encoding: 7bit Content-Description: glob.diff Content-Type: text/plain; charset=us-ascii; name=glob.diff; SizeOnDisk=6853 Index: include/glob.h =================================================================== RCS file: /home/ncvs/src/include/glob.h,v retrieving revision 1.6 diff -u -r1.6 glob.h --- include/glob.h 23 Mar 2002 17:24:53 -0000 1.6 +++ include/glob.h 12 Jul 2002 07:13:56 -0000 @@ -70,7 +70,15 @@ #define GLOB_MARK 0x0008 /* Append / to matching directories. */ #define GLOB_NOCHECK 0x0010 /* Return pattern itself if nothing matches. */ #define GLOB_NOSORT 0x0020 /* Don't sort. */ +#define GLOB_NOESCAPE 0x2000 /* Disable backslash escaping. */ +/* Error values returned by glob(3) */ +#define GLOB_NOSPACE (-1) /* Malloc call failed. */ +#define GLOB_ABORTED (-2) /* Unignored error. */ +#define GLOB_NOMATCH (-3) /* No match and GLOB_NOCHECK was not set. */ +#define GLOB_NOSYS (-4) /* Obsolete: for source comptability only. */ + +#if __BSD_VISIBLE #define GLOB_ALTDIRFUNC 0x0040 /* Use alternately specified directory funcs. */ #define GLOB_BRACE 0x0080 /* Expand braces ala csh. */ #define GLOB_MAGCHAR 0x0100 /* Pattern had globbing characters. */ @@ -79,11 +87,10 @@ #define GLOB_TILDE 0x0800 /* Expand tilde names from the passwd file. */ #define GLOB_LIMIT 0x1000 /* limit number of returned paths */ -/* backwards compatibility, this is the old name for this option */ +/* source compatibility, these are the old names */ #define GLOB_MAXPATH GLOB_LIMIT - -#define GLOB_NOSPACE (-1) /* Malloc call failed. */ -#define GLOB_ABEND (-2) /* Unignored error. */ +#define GLOB_ABEND GLOB_ABORTED +#endif __BEGIN_DECLS int glob(const char *, int, int (*)(const char *, int), glob_t *); Index: lib/libc/gen/glob.c =================================================================== RCS file: /home/ncvs/src/lib/libc/gen/glob.c,v retrieving revision 1.19 diff -u -r1.19 glob.c --- lib/libc/gen/glob.c 1 Feb 2002 01:32:19 -0000 1.19 +++ lib/libc/gen/glob.c 12 Jul 2002 07:13:56 -0000 @@ -182,7 +182,10 @@ bufnext = patbuf; bufend = bufnext + MAXPATHLEN - 1; - if (flags & GLOB_QUOTE) { + if (flags & GLOB_NOESCAPE) + while (bufnext < bufend && (c = *patnext++) != EOS) + *bufnext++ = c; + else { /* Protect the quoted characters. */ while (bufnext < bufend && (c = *patnext++) != EOS) if (c == QUOTE) { @@ -195,9 +198,6 @@ else *bufnext++ = c; } - else - while (bufnext < bufend && (c = *patnext++) != EOS) - *bufnext++ = c; *bufnext = EOS; if (flags & GLOB_BRACE) @@ -415,8 +415,7 @@ * The main glob() routine: compiles the pattern (optionally processing * quotes), calls glob1() to do the real pattern matching, and finally * sorts the list (unless unsorted operation is requested). Returns 0 - * if things went well, nonzero if errors occurred. It is not an error - * to find no matches. + * if things went well, nonzero if errors occurred. */ static int glob0(pattern, pglob, limit) @@ -493,12 +492,15 @@ * and the pattern did not contain any magic characters * GLOB_NOMAGIC is there just for compatibility with csh. */ - if (pglob->gl_pathc == oldpathc && - ((pglob->gl_flags & GLOB_NOCHECK) || - ((pglob->gl_flags & GLOB_NOMAGIC) && - !(pglob->gl_flags & GLOB_MAGCHAR)))) - return(globextend(pattern, pglob, limit)); - else if (!(pglob->gl_flags & GLOB_NOSORT)) + if (pglob->gl_pathc == oldpathc) { + if (((pglob->gl_flags & GLOB_NOCHECK) || + ((pglob->gl_flags & GLOB_NOMAGIC) && + !(pglob->gl_flags & GLOB_MAGCHAR)))) + return(globextend(pattern, pglob, limit)); + else + return(GLOB_NOMATCH); + } + if (!(pglob->gl_flags & GLOB_NOSORT)) qsort(pglob->gl_pathv + pglob->gl_offs + oldpathc, pglob->gl_pathc - oldpathc, sizeof(char *), compare); return(0); @@ -557,7 +559,7 @@ (g_stat(pathbuf, &sb, pglob) == 0) && S_ISDIR(sb.st_mode)))) { if (pathend + 1 > pathend_last) - return (1); + return (GLOB_ABORTED); *pathend++ = SEP; *pathend = EOS; } @@ -572,7 +574,7 @@ if (ismeta(*p)) anymeta = 1; if (q + 1 > pathend_last) - return (1); + return (GLOB_ABORTED); *q++ = *p++; } @@ -581,7 +583,7 @@ pattern = p; while (*pattern == SEP) { if (pathend + 1 > pathend_last) - return (1); + return (GLOB_ABORTED); *pathend++ = *pattern++; } } else /* Need expansion, recurse. */ @@ -611,7 +613,7 @@ struct dirent *(*readdirfunc)(); if (pathend > pathend_last) - return (1); + return (GLOB_ABORTED); *pathend = EOS; errno = 0; @@ -619,10 +621,10 @@ /* TODO: don't call for ENOENT or ENOTDIR? */ if (pglob->gl_errfunc) { if (g_Ctoc(pathbuf, buf, sizeof(buf))) - return (GLOB_ABEND); + return (GLOB_ABORTED); if (pglob->gl_errfunc(buf, errno) || pglob->gl_flags & GLOB_ERR) - return (GLOB_ABEND); + return (GLOB_ABORTED); } return(0); } Index: lib/libc/gen/glob.3 =================================================================== RCS file: /home/ncvs/src/lib/libc/gen/glob.3,v retrieving revision 1.20 diff -u -r1.20 glob.3 --- lib/libc/gen/glob.3 1 Oct 2001 16:08:51 -0000 1.20 +++ lib/libc/gen/glob.3 12 Jul 2002 07:13:56 -0000 @@ -187,9 +187,15 @@ .Fa pattern , with the number of total pathnames is set to 1, and the number of matched pathnames set to 0. +The effect of backslash escaping is present in the pattern returned. +.It Dv GLOB_NOESCAPE +By default, a backslash +.Pq Ql \e +character is used to escape the following character in the pattern, +avoiding any special interpretation of the character. If -.Dv GLOB_QUOTE -is set, its effect is present in the pattern returned. +.Dv GLOB_NOESCAPE +is set, backslash escaping is disabled. .It Dv GLOB_NOSORT By default, the pathnames are sorted in ascending .Tn ASCII @@ -250,12 +256,6 @@ is provided to simplify implementing the historic .Xr csh 1 globbing behavior and should probably not be used anywhere else. -.It Dv GLOB_QUOTE -Use the backslash -.Pq Ql \e -character for quoting: every occurrence of -a backslash followed by a character in the pattern is replaced by that -character, avoiding any special interpretation of the character. .It Dv GLOB_TILDE Expand patterns that start with .Ql ~ @@ -304,7 +304,7 @@ returns non-zero, .Fn glob stops the scan and returns -.Dv GLOB_ABEND +.Dv GLOB_ABORTED after setting .Fa gl_pathc and @@ -386,12 +386,16 @@ was specified in the flags and .Fa pglob\->gl_matchc or more patterns were matched. -.It Dv GLOB_ABEND +.It Dv GLOB_ABORTED The scan was stopped because an error was encountered and either .Dv GLOB_ERR was set or .Fa \*(lp*errfunc\*(rp\*(lp\*(rp returned non-zero. +.It Dv GLOB_NOMATCH +The pattern did not match a pathname and +.Dv GLOB_NOCHECK +was not set. .El .Pp The arguments @@ -430,7 +434,6 @@ .Dv GLOB_LIMIT , .Dv GLOB_MAGCHAR , .Dv GLOB_NOMAGIC , -.Dv GLOB_QUOTE , and .Dv GLOB_TILDE , and the fields --_=XFMail.1.5.2.FreeBSD:20020712032333:273=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Fri Jul 12 9:17: 1 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6498337B400; Fri, 12 Jul 2002 09:17:00 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id D71E543E31; Fri, 12 Jul 2002 09:16:59 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.3) with ESMTP id g6CGGwRC059267; Fri, 12 Jul 2002 12:16:59 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.3/Submit) id g6CGGwo7059264; Fri, 12 Jul 2002 12:16:58 -0400 (EDT) (envelope-from wollman) Date: Fri, 12 Jul 2002 12:16:58 -0400 (EDT) From: Garrett Wollman Message-Id: <200207121616.g6CGGwo7059264@khavrinen.lcs.mit.edu> To: Mike Heffner Cc: standards@FreeBSD.ORG Subject: Re: Update of glob(3) In-Reply-To: References: Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG < said: > Alright, with some comments from Garrett Wollman, this is the second > version of this patch that hopefully uses the right conditional to exclude > non-POSIX conforming options in the header file. The only change is that > we test against __BSD_VISIBLE instead of !_POSIX_SOURCE. Although we don't really support old versions of POSIX, and in any case the namespace for these symbols is reserved, I think it would be helpful to those browsing the header file if the new symbols were appropriately marked to indicate that they were added in 1003.1-2001 (or whichever edition of POSIX did add them). See, for example, how hides certain symbols unless the application asked for 1003.1b-1993 namespace. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message