From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 14 02:41:25 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D91B4106564A; Mon, 14 Feb 2011 02:41:25 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id 481738FC1A; Mon, 14 Feb 2011 02:41:24 +0000 (UTC) Received: from park.js.berklix.net (p5B22C904.dip.t-dialin.net [91.34.201.4]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id p1E2fM0Y063797; Mon, 14 Feb 2011 02:41:23 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.13.8/8.13.8) with ESMTP id p1E2fBpo027048; Mon, 14 Feb 2011 03:41:12 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id p1E2fmMh004864; Mon, 14 Feb 2011 03:41:53 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201102140241.p1E2fmMh004864@fire.js.berklix.net> To: hackers@freebsd.org From: "Julian H. Stacey" Organization: http://www.berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Sun, 13 Feb 2011 19:42:27 +0100." <4D582613.60007@FreeBSD.org> Date: Mon, 14 Feb 2011 03:41:48 +0100 Sender: jhs@berklix.com Cc: Matthias Andree Subject: Re: man 3 getopt char * const argv[] - is const wrong ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2011 02:41:25 -0000 Matthias Andree wrote: > Am 13.02.2011 18:15, schrieb Julian H. Stacey: > > Hi, > > Thanks to all respondents, I'll re-read comments in a bit, > > I went searching for reference: > > > > Matthias wrote: > >> the prototype is in line with the Single Unix Specification v4 aka IEEE > >> Std. 1003.1-2008 (sorry no URL, I have checked my local copy, check > >> you can access it free of charge after > >> registering name and email address). > > Thanks, but I didn't find it. > > Julian, > > Deep link sent off-list. Thanks, so open.org quotes for getopt.html int getopt(int argc, char * const argv[], const char *optstring); but it would stll be nicer if we could read definition of C & const. > Well, instead of ranting, An inadvisable epithet ! Maybe you never had the luxury of working when one could buy a slim K&R, & it was all one needed. Now ISO sell standards, Not all free download. For C I've only found enormous PDFs. Some downloads may not be newest &/or might need logins or license or payment. Apache.org set a better example of free unobstructed hypertexted access to all versions of eg http.conf etc. > you might just appreciate the difference > between the core language and ANSI-C (1989/1990) standard library > features, and the enhanced environment that Unix provides nearly two > decades later... Try gcc -std=c89 -pedantic-errors on your average Unix > software for a change... :) Using Unix & C since '77, & '82, I 'appreciate' C is a heavily evolved = bent language. Const as case in point: FreeBSD getopt seems to conflict with K&R#2 so ... It would be nice to download a new C standard for reference. Is the newest definition of C free public access ? Is there a URL newer/ better than what I posted ? We could put a URL in man gcc See Also, & if allowed, a copy in /usr/share/doc/ http://www.open-std.org/JTC1/SC22/WG14/www/standards Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text; Not quoted-printable, Not HTML, Not base 64. Reply below text sections not at top, to avoid breaking cumulative context.