Date: Wed, 17 Feb 1999 00:26:13 -0700 From: Wes Peters <wes@softweyr.com> To: Dave Hayes <dave@jetcafe.org> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: getpwnam and getpwnam_r Message-ID: <36CA6F15.58EB82DF@softweyr.com> References: <199902170637.WAA13083@hokkshideh.jetcafe.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Dave Hayes wrote:
>
> Where are the thread-safe, reentrant versions of this routine in
> FreeBSD 3.1?
Not done yet. I'm working on them, all of them, but I've been up
to my neck at work for the last two months. Here's my working list,
gleaned from the solaris man pages:
asctime_r ctime (3c) - convert date and time to string
ctermid_r ctermid (3s) - generate path name for controlling terminal
ctime_r ctime (3c) - convert date and time to string
gmtime_r ctime (3c) - convert date and time to string
localtime_r ctime (3c) - convert date and time to string
gamma_r lgamma (3m) - log gamma function
lgamma_r lgamma (3m) - log gamma function
strtok_r string (3c) - string operations
These are implemented, and should be in 3.1-RELEASE. (Some of them were
already in the code, just not in the man pages yet. None of these were
tremendously difficult to do, given the original code and Solaris man
pages as a design document.) I was going to start on the network database
routines next, but if you have a pressing need for the password/group
database stuff, I can probably get them done fairly quickly. Or, if you'd
like to implement them yourself and send me diffs, I'll be glad to look
them over and commit them for you. Don't forget to include diffs for the
man pages. ;^)
Routines I haven't finished yet:
fgetgrent_r getgrnam (3c) - get group entry
fgetpwent_r getpwnam (3c) - get password entry
fgetspent_r getspnam (3c) - get password entry
getgrent_r getgrnam (3c) - get group entry
getgrgid_r getgrnam (3c) - get group entry
getgrnam_r getgrnam (3c) - get group entry
gethostbyaddr_r gethostbyname (3n) - get network host entry
gethostbyname_r gethostbyname (3n) - get network host entry
gethostent_r gethostbyname (3n) - get network host entry
getlogin_r getlogin (3c) - get login name
getnetbyaddr_r getnetbyname (3n) - get network entry
getnetbyname_r getnetbyname (3n) - get network entry
getnetent_r getnetbyname (3n) - get network entry
getnetgrent_r getnetgrent (3n) - get network group entry
getprotobyname_r getprotobyname (3n) - get protocol entry
getprotobynumber_r getprotobyname (3n) - get protocol entry
getprotoent_r getprotobyname (3n) - get protocol entry
getpwent_r getpwnam (3c) - get password entry
getpwnam_r getpwnam (3c) - get password entry
getpwuid_r getpwnam (3c) - get password entry
getrpcbyname_r getrpcbyname (3n) - get RPC entry
getrpcbynumber_r getrpcbyname (3n) - get RPC entry
getrpcent_r getrpcbyname (3n) - get RPC entry
getservbyname_r getservbyname (3n) - get service entry
getservbyport_r getservbyname (3n) - get service entry
getservent_r getservbyname (3n) - get service entry
getspent_r getspnam (3c) - get password entry
getspnam_r getspnam (3c) - get password entry
rand_r rand (3c) - simple random-number generator
readdir_r directory (3c) - directory operations
tmpnam_r tmpnam (3s) - create a name for a temporary file
ttyname_r ttyname (3c) - find name of a terminal
If anyone has additions to this list, please feel free to send them
to me.
--
"Where am I, and what am I doing in this handbasket?"
Wes Peters Softweyr LLC
http://www.softweyr.com/~softweyr wes@softweyr.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36CA6F15.58EB82DF>
