Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/stdio

On Tue, May 04, 2010 at 04:39:16PM +0300, Jukka Ruohonen wrote:
> In my manual page:
>      The functions fgets() and gets() conform to ANSI X3.159-1989
>      (``ANSI C89'') and IEEE Std 1003.1-2001 (``POSIX.1'').  The IEEE Std
>      1003.1-2008 (``POSIX.1'') revision marked gets() as obsolescent, recom-
>      mending the use of fgets() instead.
> What was the problem again?

I'd just use "In IEEE Std 1003.1-2008 (``POSIX.1'') gets() has been
marked as obsolescent". I'd drop the next part as it is already part of
the huge CAVEAT.

> It may be very important to someone to know which functions conform to the
> "stupid standard", possibly to limit something to some dialect only. And in
> this case it means that gets() probably won't conform to it in the future.
> You could think about this as a warning.

I generally agree. gets(3) is somewhat on the edge as it should never
have been used at all, but there are more useful functions that are
useful for dealing with ancient systems, but should be avoided for
non-compat layers.


Home | Main Index | Thread Index | Old Index