aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-05-13 16:27:30 +0000
committerXin LI <delphij@FreeBSD.org>2005-05-13 16:27:30 +0000
commit8dcb56dc7885d7310299a09a04fb5334f8d75d7a (patch)
tree4f6f760d66637df39c7d6d860807b7c5aeb6bf2e /libexec
parente1f74f27c151842d0a8c922002d6299aa213697a (diff)
downloadsrc-8dcb56dc7885d7310299a09a04fb5334f8d75d7a.tar.gz
src-8dcb56dc7885d7310299a09a04fb5334f8d75d7a.zip
Provide more POSIX-complaint ttyname_r(3) interface[1], which is slightly
different from what has been offered in libc_r (the one spotted in the original PR which is found in libthr has already been removed by David's commit, which is rev. 1.44 of lib/libthr/thread/thr_private.h): - Use POSIX standard prototype for ttyname_r, which is, int ttyname_r(int, char *, size_t); Instead of: char *ttyname_r(int, char *, size_t); This is to conform IEEE Std 1003.1, 2004 Edition [1]. - Since we need to use standard errno for return code, include errno.h in ttyname.c - Update ttyname(3) implementation according to reflect the API change. - Document new ttyname_r(3) behavior - Since we already make use of a thread local storage for ttyname(3), remove the BUGS section. - Remove conflicting ttyname_r related declarations found in libc_r. Hopefully this change should not have changed the API/ABI, as the ttyname_r symbol was never introduced before the last unistd.h change which happens a couple of days before. [1] http://www.opengroup.org/onlinepubs/009695399/functions/ttyname.html Requested by: Tom McLaughlin <tmclaugh sdf lonestar org> Through PR: threads/76938 Patched by: Craig Rodrigues <rodrigc crodrigues org> (with minor changes) Prompted by: mezz@
Notes
Notes: svn path=/head/; revision=146186
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions