From owner-freebsd-current Sun Mar 2 06:09:23 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA12728 for current-outgoing; Sun, 2 Mar 1997 06:09:23 -0800 (PST) Received: from sequent.kiae.su (sequent.kiae.su [193.125.152.6]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id GAA12723 for ; Sun, 2 Mar 1997 06:09:18 -0800 (PST) Received: by sequent.kiae.su id AA00936 (5.65.kiae-2 for current@freebsd.org); Sun, 2 Mar 1997 16:46:08 +0300 Received: by sequent.KIAE.su (UUMAIL/2.0); Sun, 2 Mar 97 16:46:07 +0300 Received: (from ache@localhost) by nagual.ru (8.8.5/8.8.5) id RAA01241 for current@freebsd.org; Sun, 2 Mar 1997 17:05:12 +0300 (MSK) Date: Sun, 2 Mar 1997 17:05:07 +0300 (MSK) From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= To: FreeBSD-current Subject: cuserid(3): compat->c resurrection Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 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 http://www.nagual.ru/~ache/