[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sat, 06 Apr 2002 07:52:18 -0700
> > IMHO, this code needs to take non-Posix platforms into consideration,
> > unless the intent is to run it only on Unix and GNU/Linux systems.
> > If non-Posix systems are relevant, you should be aware that <pwd.h>
> > and the getpwuid function are not universally available.
> Can getpwuid etc be emulated on MSDOS and Mac as they are on Windows?
Getpwuid is certainly available on Mac OS X. Mac OS 9 implements a
limited form of multiple user support, so getpwuid can probably be
emulated on it. Mac OS 8 does not have multiple user support. I
suppose one can still emulate getpwuid with a little more effort.