public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Re: Fwd: "getopt.h" no longer part of <stdlib.h>
       [not found] <21D757CECBD2D211AD5D00105A2974A758B6ED@EXCHANGE>
@ 1999-08-25 13:59 ` Ulrich Drepper
  0 siblings, 0 replies; 3+ messages in thread
From: Ulrich Drepper @ 1999-08-25 13:59 UTC (permalink / raw)
  To: Brent Fulgham; +Cc: Joel Klecker, libc-hacker, debian-glibc

Brent Fulgham <bfulgham@xpsystems.com> writes:

> If, as you suggest, including "unistd.h" will just work, then I will
> be perfectly happy to modify the source. (Is that what you are
> saying? :-)

Yes.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Fwd: "getopt.h" no longer part of <stdlib.h>
  1999-08-25 13:25 Joel Klecker
@ 1999-08-25 13:36 ` Ulrich Drepper
  0 siblings, 0 replies; 3+ messages in thread
From: Ulrich Drepper @ 1999-08-25 13:36 UTC (permalink / raw)
  To: Joel Klecker; +Cc: libc-hacker, debian-glibc, Brent Fulgham

Joel Klecker <jk@espy.org> writes:

> >One of the packages I maintain uses the tried-and-true getopt function
> >from the C library.  The standard System V semantic is that get getopt
> >function is included when you include <stdlib.h>.

getopt.h never was included in stdlib.h.  Old SysV systems included it
in stdio.h which was deprecarted in Unix98 and will be removed in the
next revision.

The only portable way to get to the prototypes is using unistd.h.
Which is of course logical since getopt is a POSIX function.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Fwd: "getopt.h" no longer part of <stdlib.h>
@ 1999-08-25 13:25 Joel Klecker
  1999-08-25 13:36 ` Ulrich Drepper
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Klecker @ 1999-08-25 13:25 UTC (permalink / raw)
  To: libc-hacker; +Cc: debian-glibc, Brent Fulgham

>Date: Wed, 25 Aug 1999 12:16:42 -0700
>From: Brent Fulgham <bfulgham@xpsystems.com>
>X-Accept-Language: en
>To: debian-glibc@lists.debian.org
>Subject: "getopt.h" no longer part of <stdlib.h>
>
>Please CC all replies to me -- I am not subscribed to debian-glibc.
>
>One of the packages I maintain uses the tried-and-true getopt function
>from the C library.  The standard System V semantic is that get getopt
>function is included when you include <stdlib.h>.
>
>It seems (at least with 2.1.2-0pre10) that you have to explicitly
>include "getopt.h".  Is this consistent with how glibc is now doing
>things, or is this a bug?
>
>If it's the new standard, I have to add some #ifdef checks in
>the source to include "getopt.h" for 2.1.2 series libraries.
>
>Thanks,
>
>-Brent
>
>
>--
>To UNSUBSCRIBE, email to debian-glibc-request@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
-- 
Joel Klecker (aka Espy)                    Debian GNU/Linux Developer
<URL: mailto:jk@espy.org >                 <URL: mailto:espy@debian.org >
<URL: http://web.espy.org/ >               <URL: http://www.debian.org/ >

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-08-25 13:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <21D757CECBD2D211AD5D00105A2974A758B6ED@EXCHANGE>
1999-08-25 13:59 ` Fwd: "getopt.h" no longer part of <stdlib.h> Ulrich Drepper
1999-08-25 13:25 Joel Klecker
1999-08-25 13:36 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).