Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Mar 1997 17:05:07 +0300 (MSK)
From:      =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.ru>
To:        FreeBSD-current <current@freebsd.org>
Subject:   cuserid(3): compat->c resurrection
Message-ID:  <Pine.BSF.3.95q.970302164628.1217A-100000@nagual.ru>

next in thread | raw e-mail | index | archive | help
Since cuserid() is POSIX 1003.1 function, not 4.4 own function, I plan to
move it from libcompat to libc. Applications which tries to be
machine-independent and follows POSIX often use it, we already have some
ports examples.  Adding -lcompat in each such case only produces
additional troubles for porter. Manpage says that it is obsoleted by
getpwuid(), but it just call getpwuid(). Moreover, cuserid()  usage not
require <pwd.h> be included, so it is more comfortable if we just want to
know user name according to geteuid(), cuserid() hide all unneded
internals in this case, so I don't see a reason for it to be obsoleted.

-- 
Andrey A. Chernov
<ache@null.net>
http://www.nagual.ru/~ache/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970302164628.1217A-100000>