From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 13 18:42:31 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 C903B10656C7 for ; Sun, 13 Feb 2011 18:42:31 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from unimail.uni-dortmund.de (mx1.HRZ.Uni-Dortmund.DE [129.217.128.51]) by mx1.freebsd.org (Postfix) with ESMTP id 299B28FC0A for ; Sun, 13 Feb 2011 18:42:30 +0000 (UTC) Received: from [192.168.0.4] (g225199015.adsl.alicedsl.de [92.225.199.15]) (authenticated bits=0) by unimail.uni-dortmund.de (8.14.4/8.14.4) with ESMTP id p1DIgQkZ009563 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Sun, 13 Feb 2011 19:42:27 +0100 (CET) Message-ID: <4D582613.60007@FreeBSD.org> Date: Sun, 13 Feb 2011 19:42:27 +0100 From: Matthias Andree Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101207 Mnenhy/0.8.3 Thunderbird/3.1.7 MIME-Version: 1.0 To: "Julian H. Stacey" References: <201102131715.p1DHFbM7052163@fire.js.berklix.net> In-Reply-To: <201102131715.p1DHFbM7052163@fire.js.berklix.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit 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 18:42:31 -0000 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. Start page http://www.unix.org/online.html - sorry that the opengroup.org links led you onto long-winded detours. > ( 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 :-) Well, instead of ranting, 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... :) HTH Matthias