This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: getopt with gcc -ansi
- From: Susukita Ryutaro <susukita at postman dot riken dot go dot jp>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: susukita at postman dot riken dot go dot jp, libc-alpha at sources dot redhat dot com
- Date: Wed, 11 Aug 2004 14:49:22 +0900
- Subject: Re: getopt with gcc -ansi
> Read the FAQ:
> 3.11. I get some errors with `gcc -ansi'. Isn't glibc ANSI compatible?
I have read this FAQ. The answer says glib is ANSI compatible if you
use only the header files and the library functions defined in ANSI.
But the FAQ is a little different from my question. <unistd.h> is not
defined in ANSI. For example, the declaration of sleep in <unistd.h>
seems effective even with -ansi. What is the difference between getopt
and sleep?
susukita