Date: Tue, 8 Jul 2003 10:54:14 +0800 From: "David Xu" <davidxu@freebsd.org> To: <freebsd-threads@freebsd.org> Subject: Re: ttyname_r Message-ID: <008201c344fc$392c0760$f001a8c0@davidw2k>
next in thread | raw e-mail | index | archive | help
I found our ttyname_r has different return type than POSIX: http://www.opengroup.org/onlinepubs/007904975/functions/ttyname.html and POSIX says: If successful, the ttyname_r() function shall return zero. Otherwise, an error number shall be returned to indicate the error. libc implements it as following format: char * ttyname_r(int fd, char *buf, size_t len); and when success, it returns non-NULL pointer, it almost has opposite meaning with POSIX. This causes some pthread tests failed here. David Xu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008201c344fc$392c0760$f001a8c0>