Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Feb 2005 17:40:29 GMT
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/76938: include/unistd.h: ttyname_r prototype missing
Message-ID:  <200502011740.j11HeTcr099606@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/76938; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@crodrigues.org>
To: Tom McLaughlin <tmclaugh@sdf.lonestar.org>
Cc: FreeBSD gnats submit <FreeBSD-gnats-submit@freebsd.org>
Subject: Re: threads/76938: include/unistd.h: ttyname_r prototype missing
Date: Tue, 1 Feb 2005 12:37:24 -0500

 Hi,
 
 One slight problem with adding the prototype for ttyname_r() to
 unistd.h...the implementation of ttyname_r() in FreeBSD is
 not POSIX-compliant.
 
 According to:
 http://www.opengroup.org/onlinepubs/009695399/functions/ttyname.html
 
 the prototype should be:
 int ttyname_r(int fildes, char *name, size_t namesize);
 
 In src/lib/libc/gen/ttyname.c, we have:
 char *ttyname_r(int fd, char *buf, size_t len);
 
 I don't think it would be a big deal to fix this.
 
 It might be useful to reassign this PR to standards@.
 
 -- 
 Craig Rodrigues        
 rodrigc@crodrigues.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502011740.j11HeTcr099606>