From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 13 17:15:17 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 BB29A1065693 for ; Sun, 13 Feb 2011 17:15:17 +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 117CF8FC14 for ; Sun, 13 Feb 2011 17:15:16 +0000 (UTC) Received: from park.js.berklix.net (p5B22D4D1.dip.t-dialin.net [91.34.212.209]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id p1DHFDHn058970; Sun, 13 Feb 2011 17:15:14 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 p1DHF7UO022586; Sun, 13 Feb 2011 18:15:07 +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 p1DHFbM7052163; Sun, 13 Feb 2011 18:15:42 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201102131715.p1DHFbM7052163@fire.js.berklix.net> To: "Matthias Andree" 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 13:59:38 +0100." Date: Sun, 13 Feb 2011 18:15:37 +0100 Sender: jhs@berklix.com Cc: hackers@freebsd.org 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: Sun, 13 Feb 2011 17:15:17 -0000 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. ( I used X Open's Search but wan't easy, (I recall fat green cardboard boxes from XOpen 20+ years back) : impression remains: opaque unattractive. Part of the attraction of C was a slim light affordable volume, 1cm thick, well written, 2 indexes, easy reading, carrying & reference :-) Oh for a free modern cross reference style C definition in Asc & HTML like http://apache.org has on line for httpd.conf ... Not old PDF (harder to search), or money wanting ISO, or login wanting Xopen. Or a same style K&R#3 ? Prentice hall ... http://www.pearsonhighered.com/ Yawn ... http://www.google.de/search?hl=en&source=hp&q=The+C+Programming+Language+Third+Edition&btnG=Google+Search http://www.google.de/search?hl=en&q=The+C+Programming+Language+Fourth+Edition&aq=f&aqi=&aql=&oq= http://wikipedia.org ... http://www.open-std.org/JTC1/SC22/WG14/www/standards no need to create a login, Click on "The lastest publically available version of the standard is the combined C99 + TC1 + TC2 + TC3, WG14 N1256, dated 2007-09-07. This is a WG14 working paper, but it reflects the consolidated standard at the time of issue." & get n1256.pdf ... 550 pages. P 535 (XPDF number, not visual number on page) in the alphabetic index (alpha. like the back of the C book, nice) Ref. to const type qualifier, 6.7.3 P.120 (XPDF numbering) Footnote 114) The implementation may place a const object that is not volatile in a read-only region of storage. 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.