From owner-freebsd-threads@FreeBSD.ORG Tue Feb 1 17:40:30 2005 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25F9016A4D0 for ; Tue, 1 Feb 2005 17:40:30 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1105D43D3F for ; Tue, 1 Feb 2005 17:40:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j11HeTt2099607 for ; Tue, 1 Feb 2005 17:40:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j11HeTcr099606; Tue, 1 Feb 2005 17:40:29 GMT (envelope-from gnats) Date: Tue, 1 Feb 2005 17:40:29 GMT Message-Id: <200502011740.j11HeTcr099606@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Craig Rodrigues Subject: Re: threads/76938: include/unistd.h: ttyname_r prototype missing X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Craig Rodrigues List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 17:40:30 -0000 The following reply was made to PR threads/76938; it has been noted by GNATS. From: Craig Rodrigues To: Tom McLaughlin Cc: FreeBSD gnats submit 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