Article View: comp.sys.next.sysadmin
Article #570Re: Mach equivalent of cuserid() ??
From: Nik Gervae
Date: Fri, 10 Apr 1992 23:36
Date: Fri, 10 Apr 1992 23:36
38 lines
1601 bytes
1601 bytes
In article <4084@ucsbcsl.ucsb.edu> doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott)
writes:
> Does the NeXT have an equivalent of the subroutine cuserid()? The Sun man
page
> describes it as follows:
>
> cuserid() returns a pointer to a string representing the
> login name under which the owner of the current process is
> logged in.
From NeXTstep reference, volume 2 (release 2 page 3-65):
NXHomeDirectory(), NXUserName()
SUMMARY
Get user's home directory and name
LIBRARY
libNeXT_s.a
SYNOPSIS
#import <appkit/Application.h>
const char *NXHomeDirectory(void)
const char *NXUserName(void)
DESCRIPTION
These functions return the user's home directory and name,
both of which are cached at launch time. If the user's id
has changed since launch time or since the last time either
of these functions was called, the values are recomputed
using the standard C library function getpwuid(). (getpwuid()
is described in its UNIX manual page.)
RETURN
NXHomeDirectory() returns a pointer to the full pathname of
the user's home directory. NXUserName() returns a pointer to
the user's name.
--
Nik Gervae
Software Publications
ngervae@next.com
Technical Details
Message-ID:
<3538@rosie.NeXT.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!ditka!ntg!rosie!next.comReferences:
<4084@ucsbcsl.ucsb.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!ditka!ntg!rosie!next.com From: ngervae@next.com (Nik Gervae) Newsgroups: comp.sys.next.sysadmin Subject: Re: Mach equivalent of cuserid() ?? Message-ID: <3538@rosie.NeXT.COM> Date: 10 Apr 92 23:36:31 GMT References: <4084@ucsbcsl.ucsb.edu> Sender: news@NeXT.COM Distribution: usa Lines: 38