From owner-freebsd-standards Sun Nov 10 10: 7:31 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 F263937B4EB for ; Sun, 10 Nov 2002 10:07:27 -0800 (PST) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A8A343E4A for ; Sun, 10 Nov 2002 10:07:27 -0800 (PST) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 82C309BC3; Sun, 10 Nov 2002 12:58:38 -0500 (EST) Date: Sun, 10 Nov 2002 12:58:38 -0500 From: Mike Barcroft To: Garrett Wollman Cc: standards@FreeBSD.org Subject: Re: Why I am opposed to a Standards Ghetto Message-ID: <20021110125838.A52940@espresso.q9media.com> References: <200210262316.g9QNGAWB026174@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200210262316.g9QNGAWB026174@khavrinen.lcs.mit.edu>; from wollman@lcs.mit.edu on Sat, Oct 26, 2002 at 07:16:10PM -0400 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 [Sorry for the late reply.] Garrett Wollman writes: > What it boils down to is that we end up with two completely separate > versions of every utility for which a standard exists -- one which > implements the standard behavior, and one which does not -- for all > time. Broken scripts will never get updated, because script-writers > will hard-code them to ignore the standard utilities and use the > non-standard ones instead. (We see that already in Solaris, where > many users are totally unaware of the way in which their default > environment differs from what the standard says, blithely trusting in > Sun's conformance claim on the ticklist without investigating all the > myriad actions one must take to get a compliant programming > environment.) > > That way lies madness. Every question about a standard utility will > then become unanswerable without a piece of information users would be > surprised and in some cases hard-pressed to answer. Ultimately, I > think it's less of a POLA violation to tell our users, ``this used to > work this way, but now there's a standard that says it works that way > instead, and we wanted to comply with the standard'', than it is to > encourage the creation of scripts which only work when one of multiple > official FreeBSD versions of a utility is found in the search path > first. I agree that our aim should be for full compliance to the base standard, but I don't think there's enough support from the rest of the developer community to opt for the standard behaviour in the case of some conflicts. Taking this into consideration, I feel the next best thing would be to provide alternative versions of utilities and make a POSIX version of FreeBSD that could be built with a knob at `make release'-time. (This should shed some light on why I prefer /usr/posix/bin with seperate manuals.) > Note that I am specifically speaking of the base POSIX standard. I am > not including in this discussion the X/Open System Interfaces option > of POSIX.1-2001, which is in essence the old System V Interface > Definition. To the extent we can support XSI behavior without > conflicts, I think we should do so. I do not think that we should > supply a separate XSI version of utilities which do have significant > conflicts (like `ps'), since our aim is not to emulate System V, and > most of the differences as remain are old System V mistakes. Yes, I think this is outside the scope of the current project, but perhaps we might want to investigate this in the future. I think it would be of benefit to provide an alternative XSI (SYSV) version of ps(1) for transitioning SYSV users to BSD. 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 Mon Nov 11 18:10: 4 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 39DF737B401 for ; Mon, 11 Nov 2002 18:10:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA17C43E75 for ; Mon, 11 Nov 2002 18:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAC2A2x3063985 for ; Mon, 11 Nov 2002 18:10:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAC2A2t2063984; Mon, 11 Nov 2002 18:10:02 -0800 (PST) Date: Mon, 11 Nov 2002 18:10:02 -0800 (PST) Message-Id: <200211120210.gAC2A2t2063984@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Archie Cobbs Subject: Re: standards/43335: libc_r: execve() and close-on-exec flag, interrupted write() Reply-To: Archie Cobbs 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/43335; it has been noted by GNATS. From: Archie Cobbs To: Andriy Gapon Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: standards/43335: libc_r: execve() and close-on-exec flag, interrupted write() Date: Mon, 11 Nov 2002 18:04:21 -0800 Andriy Gapon wrote: > On Mon, 4 Nov 2002, Archie Cobbs wrote: > > >>I've committed fixes for the two write(2) bugs: >> http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc_r/uthread/uthread_write.c.diff?r1=1.20&r2=1.21 > > > Archie, > > should this fix go into stable too ? Yes, it will soon. See 'MFC after:' ... http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc_r/uthread/uthread_write.c -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed Nov 13 4:40:41 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 9239237B401 for ; Wed, 13 Nov 2002 04:40:39 -0800 (PST) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9BB743E42 for ; Wed, 13 Nov 2002 04:40:38 -0800 (PST) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id BEF739BC3; Wed, 13 Nov 2002 07:31:43 -0500 (EST) Date: Wed, 13 Nov 2002 07:31:43 -0500 From: Mike Barcroft To: standards@FreeBSD.org Cc: Archie Cobbs Subject: select.diff for review Message-ID: <20021113073143.A98651@espresso.q9media.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline 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 --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I plan on committing the attached patch to soon. Comments appreciated. Best regards, Mike Barcroft --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="select.diff" 1. Hide the internals of struct fd_set in standard namespaces. 2. Avoid referencing bcopy() and bzero(), since they may not be in scope. Request by: bde (1) Submitted by: wollman (2) Index: select.h =================================================================== RCS file: /work/repo/src/sys/sys/select.h,v retrieving revision 1.15 diff -u -r1.15 select.h --- select.h 5 Oct 2002 05:40:48 -0000 1.15 +++ select.h 13 Nov 2002 12:30:23 -0000 @@ -79,18 +79,29 @@ #endif typedef struct fd_set { - __fd_mask fds_bits[_howmany(FD_SETSIZE, _NFDBITS)]; + __fd_mask __fds_bits[_howmany(FD_SETSIZE, _NFDBITS)]; } fd_set; +#if __BSD_VISIBLE +#define fds_bits __fds_bits +#endif -#define __fdset_mask(n) ((fd_mask)1 << ((n) % _NFDBITS)) +#define __fdset_mask(n) ((__fd_mask)1 << ((n) % _NFDBITS)) #define FD_CLR(n, p) ((p)->fds_bits[(n)/_NFDBITS] &= ~__fdset_mask(n)) #if __BSD_VISIBLE -/* XXX bcopy() not in scope, so is required; see also FD_ZERO(). */ -#define FD_COPY(f, t) bcopy(f, t, sizeof(*(f))) +#define FD_COPY(f, t) (void)(*(t) = *(f)) #endif #define FD_ISSET(n, p) ((p)->fds_bits[(n)/_NFDBITS] & __fdset_mask(n)) #define FD_SET(n, p) ((p)->fds_bits[(n)/_NFDBITS] |= __fdset_mask(n)) -#define FD_ZERO(p) bzero(p, sizeof(*(p))) +#define FD_ZERO(p) __fd_zero((p), FD_SETSIZE) + +static __inline void +__fd_zero(fd_set *_p, __size_t _n) +{ + + _n = _howmany(_n, _NFDBITS); + while (_n > 0) + _p->__fds_bits[--_n] = 0; +} #ifndef _KERNEL struct timeval; --bg08WKrSYDhXBjb5-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed Nov 13 9:30:18 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 9F8F337B401; Wed, 13 Nov 2002 09:30:17 -0800 (PST) Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15FA943E6E; Wed, 13 Nov 2002 09:30:12 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id gADHU7gq284770; Wed, 13 Nov 2002 12:30:07 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20021113073143.A98651@espresso.q9media.com> References: <20021113073143.A98651@espresso.q9media.com> Date: Wed, 13 Nov 2002 12:30:06 -0500 To: Mike Barcroft , standards@FreeBSD.ORG From: Garance A Drosihn Subject: Re: select.diff for review Cc: Archie Cobbs Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) 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 At 7:31 AM -0500 11/13/02, Mike Barcroft wrote: >I plan on committing the attached patch to soon. >Comments appreciated. Are you shooting for before or after 5.0-DP2 ? -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed Nov 13 11:20:56 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 EFCBF37B401 for ; Wed, 13 Nov 2002 11:20:54 -0800 (PST) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBF1043E4A for ; Wed, 13 Nov 2002 11:20:53 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id gADJKrmF010716 for ; Wed, 13 Nov 2002 14:20:53 -0500 (EST) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id gADJKqKM010715 for freebsd-standards@freebsd.org; Wed, 13 Nov 2002 14:20:52 -0500 (EST) Date: Wed, 13 Nov 2002 14:20:52 -0500 From: Craig Rodrigues To: freebsd-standards@freebsd.org Subject: msgsnd() improperly prototyped Message-ID: <20021113142052.A10703@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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, According to: http://www.opengroup.org/onlinepubs/007904975/basedefs/sys/msg.h.html the prototype for msgsnd() should be: int msgsnd(int, const void *, size_t, int); but FreeBSD's prototype in is missing the const qualifier: int msgsnd(int, void *, size_t, int); I'd like to fix this and submit a patch. Where is the implementation of this function? I can fix the header file and man page, but don't know where to look for the implementation. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed Nov 13 12:42:30 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 210EF37B401 for ; Wed, 13 Nov 2002 12:42:29 -0800 (PST) Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92ADB43E4A for ; Wed, 13 Nov 2002 12:42:28 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id gADKgMgq161648; Wed, 13 Nov 2002 15:42:23 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20021113142052.A10703@attbi.com> References: <20021113142052.A10703@attbi.com> Date: Wed, 13 Nov 2002 15:42:21 -0500 To: Craig Rodrigues , freebsd-standards@FreeBSD.ORG From: Garance A Drosihn Subject: Re: msgsnd() improperly prototyped Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) 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 At 2:20 PM -0500 11/13/02, Craig Rodrigues wrote: >the prototype for msgsnd() should be: > >int msgsnd(int, const void *, size_t, int); > >but FreeBSD's prototype in is missing the const qualifier: > >int msgsnd(int, void *, size_t, int); > >I'd like to fix this and submit a patch. Where is the implementation >of this function? I can fix the header file and man page, but don't >know where to look for the implementation. Well, if you're like me, you could do a combination of 'find' and grep in /usr/src to find it. This is probably a dumb way to do it, but it works. Or you could change the header, do a buildworld, and see what complains... :-) The "source code tour" at http://snapshots.jp.FreeBSD.org/tour/ might also be a way to track this down. I haven't used it recently, but it was a pretty nice idea. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed Nov 13 13:14:38 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 96DDE37B401 for ; Wed, 13 Nov 2002 13:14:37 -0800 (PST) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id A482543E3B for ; Wed, 13 Nov 2002 13:14:35 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id gADLENmF014387; Wed, 13 Nov 2002 16:14:24 -0500 (EST) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id gADLELnI014386; Wed, 13 Nov 2002 16:14:21 -0500 (EST) Date: Wed, 13 Nov 2002 16:14:20 -0500 From: Craig Rodrigues To: Garance A Drosihn Cc: freebsd-standards@FreeBSD.ORG Subject: Re: msgsnd() improperly prototyped Message-ID: <20021113161420.A14335@attbi.com> References: <20021113142052.A10703@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from drosih@rpi.edu on Wed, Nov 13, 2002 at 03:42:21PM -0500 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 On Wed, Nov 13, 2002 at 03:42:21PM -0500, Garance A Drosihn wrote: > Well, if you're like me, you could do a combination of 'find' and grep > in /usr/src to find it. This is probably a dumb way to do it, but it > works. Dumb works for me, that's what I did. :) I am now working on a patch which touches: src/sys/kern/syscalls.master.orig src/sys/kern/sysv_msg.c.orig src/sys/sys/msg.h.orig src/lib/libc/gen/msgsnd.3. When submitting a patch for evaluation which touches syscalls.master, is it necessary to run makesyscalls.sh and submit as part of the patch the generated files which change (init_sysent.c, syscalls.c and syscall.h)? Or is it enough to just submit a diff which touches the above mentioned files, and mention that makesyscalls.sh needs to be re-run? Thanks. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed Nov 13 14:10: 6 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 1E56237B401 for ; Wed, 13 Nov 2002 14:10:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D59943E4A for ; Wed, 13 Nov 2002 14:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gADMA2x3098113 for ; Wed, 13 Nov 2002 14:10:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gADMA2GK098112; Wed, 13 Nov 2002 14:10:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38FC037B401 for ; Wed, 13 Nov 2002 14:02:50 -0800 (PST) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86CEF43E4A for ; Wed, 13 Nov 2002 14:02:48 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id gADM2jmF014839 for ; Wed, 13 Nov 2002 17:02:46 -0500 (EST) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id gADM2iFt014838; Wed, 13 Nov 2002 17:02:44 -0500 (EST) Message-Id: <200211132202.gADM2iFt014838@dibbler.ne.client2.attbi.com> Date: Wed, 13 Nov 2002 17:02:44 -0500 (EST) From: Craig Rodrigues Reply-To: Craig Rodrigues To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: standards/45274: msgsnd() improperly prototyped 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: 45274 >Category: standards >Synopsis: msgsnd() improperly prototyped >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 13 14:10:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Craig Rodrigues >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD dibbler.ne.client2.attbi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #5: Thu Oct 31 19:26:04 EST 2002 rodrigc@dibbler.ne.client2.attbi.com:/usr/obj/usr/src/sys/MYKERNEL1 i386 >Description: According to: http://www.opengroup.org/onlinepubs/007904975/basedefs/sys/msg.h.html the prototype for msgsnd() should be: int msgsnd(int, const void *, size_t, int); but FreeBSD's prototype in is missing the const qualifier: int msgsnd(int, void *, size_t, int); >How-To-Repeat: >Fix: Apply the following patch. Since syscalls.master is changed, src/sys/kern/makesyscalls.sh must be re-run. --- src/sys/kern/syscalls.master.orig Wed Nov 13 14:33:25 2002 +++ src/sys/kern/syscalls.master Wed Nov 13 14:33:35 2002 @@ -357,7 +357,7 @@ 224 MNOSTD BSD { int msgctl(int msqid, int cmd, \ struct msqid_ds *buf); } 225 MNOSTD BSD { int msgget(key_t key, int msgflg); } -226 MNOSTD BSD { int msgsnd(int msqid, void *msgp, size_t msgsz, \ +226 MNOSTD BSD { int msgsnd(int msqid, const void *msgp, size_t msgsz, \ int msgflg); } 227 MNOSTD BSD { int msgrcv(int msqid, void *msgp, size_t msgsz, \ long msgtyp, int msgflg); } --- src/sys/kern/sysv_msg.c.orig Tue Aug 13 04:00:36 2002 +++ src/sys/kern/sysv_msg.c Wed Nov 13 15:14:51 2002 @@ -566,7 +566,7 @@ #ifndef _SYS_SYSPROTO_H_ struct msgsnd_args { int msqid; - void *msgp; + const void *msgp; size_t msgsz; int msgflg; }; @@ -581,7 +581,7 @@ register struct msgsnd_args *uap; { int msqid = uap->msqid; - void *user_msgp = uap->msgp; + const void *user_msgp = uap->msgp; size_t msgsz = uap->msgsz; int msgflg = uap->msgflg; int segs_needed, error = 0; --- src/sys/sys/msg.h.orig Wed Nov 13 14:11:49 2002 +++ src/sys/sys/msg.h Wed Nov 13 14:12:02 2002 @@ -98,7 +98,7 @@ int msgsys(int, ...); int msgctl(int, int, struct msqid_ds *); int msgget(key_t, int); -int msgsnd(int, void *, size_t, int); +int msgsnd(int, const void *, size_t, int); int msgrcv(int, void*, size_t, long, int); __END_DECLS #endif --- src/lib/libc/gen/msgsnd.3.orig Wed Nov 13 14:22:30 2002 +++ src/lib/libc/gen/msgsnd.3 Wed Nov 13 14:23:27 2002 @@ -44,7 +44,7 @@ .In sys/ipc.h .In sys/msg.h .Ft int -.Fn msgsnd "int msqid" "void *msgp" "size_t msgsz" "int msgflg" +.Fn msgsnd "int msqid" "const void *msgp" "size_t msgsz" "int msgflg" .Sh DESCRIPTION The .Fn msgsnd >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 Thu Nov 14 16:38:49 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 5237737B401; Thu, 14 Nov 2002 16:38:48 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 009ED43E6E; Thu, 14 Nov 2002 16:38:48 -0800 (PST) (envelope-from archie@FreeBSD.org) Received: from freefall.freebsd.org (archie@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAF0clx3069253; Thu, 14 Nov 2002 16:38:47 -0800 (PST) (envelope-from archie@freefall.freebsd.org) Received: (from archie@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAF0ci1v069245; Thu, 14 Nov 2002 16:38:44 -0800 (PST) Date: Thu, 14 Nov 2002 16:38:44 -0800 (PST) From: Archie Cobbs Message-Id: <200211150038.gAF0ci1v069245@freefall.freebsd.org> To: avg@icyb.net.ua, archie@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: standards/43335: libc_r: execve() and close-on-exec flag, interrupted write() 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 Synopsis: libc_r: execve() and close-on-exec flag, interrupted write() State-Changed-From-To: open->closed State-Changed-By: archie State-Changed-When: Thu Nov 14 16:38:29 PST 2002 State-Changed-Why: Fixed in -current and -stable (soon). http://www.freebsd.org/cgi/query-pr.cgi?pr=43335 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Thu Nov 14 16:40: 4 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 EBB6837B401 for ; Thu, 14 Nov 2002 16:40:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4A6E43E4A for ; Thu, 14 Nov 2002 16:40:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAF0e2x3069328 for ; Thu, 14 Nov 2002 16:40:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAF0e2iI069327; Thu, 14 Nov 2002 16:40:02 -0800 (PST) Date: Thu, 14 Nov 2002 16:40:02 -0800 (PST) Message-Id: <200211150040.gAF0e2iI069327@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Archie Cobbs Subject: Re: standards/43335: libc_r: execve() and close-on-exec flag, interrupted write() Reply-To: Archie Cobbs 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/43335; it has been noted by GNATS. From: Archie Cobbs To: Andriy Gapon Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: standards/43335: libc_r: execve() and close-on-exec flag, interrupted write() Date: Thu, 14 Nov 2002 16:38:18 -0800 Andriy Gapon wrote: >>I'll leave the execve() bug for others to consider; it's not clear >>what the right thing is. > > Thanks a lot, Archie. > > execve() patch is to leave alone descriptors which have close-on-exec flag > set, it must :-) be correct since from point of view of such descriptors > there are no execs in the world. You're right.. I've committed the execve(2) fix too, as well as the writev(2) fix. All will be MFC'd within the week. Cheers, -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Thu Nov 14 17:40:25 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 9E32137B418 for ; Thu, 14 Nov 2002 17:40:19 -0800 (PST) Received: from pcp02947039pcs.dalect01.va.comcast.net (pcp02947039pcs.dalect01.va.comcast.net [68.86.27.244]) by mx1.FreeBSD.org (Postfix) with SMTP id A0F7843E7B for ; Thu, 14 Nov 2002 17:40:18 -0800 (PST) (envelope-from drudge@aol.com) Received: from bigfoot.com (netcom.com [22.125.74.90]) by aol.com (8.11.6/8.11.6) with ESMTP id 27432 for ; Fri, 15 Nov 2002 01:40:34 +0000 From: "bjohnson" To: "" Subject: Bullet proof bulk email friendly hosting & cheap mass email campaigns. X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 Date: Fri, 15 Nov 2002 01:40:34 +0000 Message-ID: <2851732151vwdqgdugvCiuhhevg1ruj@prodigy.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 We are the marketing specialists www.host4bulk.com that provide cheap bullet proof bulk email friendly hosting for your website ($400 for one month of bullet proof hosting) and cheap bulk email campaigns ($200 for 1 million emails sent) As you may already know, many web hosting companies have Terms of Service (TOS) or Acceptable Use Policies (AUP) against the delivery of emails advertising or promoting your web site. If your web site host receives complaints or discovers that your web site has been advertised in email broadcasts, they may disconnect your account and shut down your web site. Our mission is to solve your problem and provide you with bulk email friendly hosting. You don't have to worry about your website being closed again. Adult and gambling sites welcomed. No set up fee. You may advertise your website by using your own resources or using 3rd party's service. However we can do all the advertising for your business. You just sit, relax and see how your income grows constantly. We guarantee the lowest prices on the web for our web hosting and bulk email campaigns. We only ask $200 us dollars for 1 million emails sent with your ad. We don't use duplicate emails. Our email base is up to date and it is updated weekly. Our current email data base contains over 50.000.000 emails sorted by various parameters to meet your specific needs. No competitors may offer this price. The lowest price you can find on the net is well over $500 for 1 million Don't make the mistake of bulk emailing directly to your website without bulletproof web hosting. Your web host will close your account and shut your site down in no time! No matter how long you have been with them, how much you are paying them, or how beautiful your site is. There are companies charging thousands for bulletproof web hosting and they can't keep you up and running like we can. If you host with us, your site will NOT BE SHUT DOWN due to complaints! Bulk email campaign together with bullet proof hosting will bring your business to success. Just imagine how many people will learn about your business or product at a really low price. Bulk email is considered to be the most effective way to advertise on the net. It is hundreds times effective than banner, solo ad and other campaigns. Once people use our service they always come back for more. We can always provide websites that use bulk email campaigns with our new reliable way to accept credit cards on the net without the need to open merchant account. You can start accepting credit card payments in second. It is totally free. Visit our website at http://www.host4bulk.com for more information and to order your bulk email hosting or/and email campaign. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Thu Nov 14 21:29:46 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 C5D2737B401; Thu, 14 Nov 2002 21:29:43 -0800 (PST) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0461643E6E; Thu, 14 Nov 2002 21:29:43 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id gAF5Z6wL005639; Fri, 15 Nov 2002 00:35:06 -0500 (EST) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id gAF5Z5dw005638; Fri, 15 Nov 2002 00:35:05 -0500 (EST) Date: Fri, 15 Nov 2002 00:35:05 -0500 From: Craig Rodrigues To: freebsd-current@freebsd.org Cc: freebsd-standards@freebsd.org Subject: Question about POSIX AIO Message-ID: <20021115003505.A5578@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 am running a -CURRENT system. I had some code that was calling aio_suspend(), and was setting errno to EINVAL. From the man page for aio_suspend: [EINVAL] iocbs contains more than AIO_LISTIO_MAX asynchronous I/O requests, or at least one of the requests is not valid. I reduced my list of I/O requests to AIO_LISTIO_MAX -1, and I did not got EINVAL any more. My question is, why are the following values different? The following program: #include #include #include int main(int argc, char *argv) { printf("%d\n", AIO_LISTIO_MAX); printf("%d\n", sysconf(_SC_AIO_LISTIO_MAX)); } will print: 16 -1 sysctl -a | grep aio will return: vfs.aio.max_aio_procs: 32 vfs.aio.num_aio_procs: 4 vfs.aio.target_aio_procs: 4 vfs.aio.max_aio_queue: 1024 vfs.aio.num_queue_count: 0 vfs.aio.num_buf_aio: 0 vfs.aio.aiod_timeout: 1000 vfs.aio.aiod_lifetime: 3000 vfs.aio.unloadable: 0 vfs.aio.max_aio_per_proc: 32 vfs.aio.max_aio_queue_per_proc: 256 vfs.aio.max_buf_aio: 16 p1003_1b.aio_listio_max: 0 p1003_1b.aio_max: 0 p1003_1b.aio_prio_delta_max: 0 How can I get sysconf(_SC_AIO_LISTIO_MAX) to return something sensible, ie. where would I need to look in order to patch the system? Thanks. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message