🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #512

Re: Mach equivalent of cuserid() ??

#512
From: Patrick Robinson
Date: Thu, 09 Apr 1992 17:49
9 lines
639 bytes
Douglas Scott writes
> Does the NeXT have an equivalent of the subroutine cuserid()?

Check out getpwent(3).  You can use
   struct passwd *pw_ent = getpwuid(getuid());
and then check pw_ent->pw_name

-Patrick Robinson
 pgr@ramandu.ext.vt.edu
Technical Details
Message-ID: <3723@vtserf.cc.vt.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!vtserf!ramandu.ext.vt.edu
References: <4084@ucsbcsl.ucsb.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!vtserf!ramandu.ext.vt.edu
From: pgr@ramandu.ext.vt.edu (Patrick Robinson)
Newsgroups: comp.sys.next.sysadmin,comp.sys.next.programmer
Subject: Re: Mach equivalent of cuserid() ??
Message-ID: <3723@vtserf.cc.vt.edu>
Date: 9 Apr 92 17:49:45 GMT
References: <4084@ucsbcsl.ucsb.edu>
Sender: usenet@vtserf.cc.vt.edu
Followup-To: comp.sys.next.sysadmin
Lines: 9