This is the mail archive of the
glibc-cvs@sourceware.cygnus.com
mailing list for the glibc project.
libc/nss/nss_db db-open.c
- To: glibc-cvs at sourceware dot cygnus dot com
- Subject: libc/nss/nss_db db-open.c
- From: drepper at sourceware dot cygnus dot com
- Date: 8 May 2000 04:49:20 -0000
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sourceware.cygnus.com 00/05/07 21:49:20
Modified files:
nss/nss_db : db-open.c
Log message:
Cleanup and add comments. Pretty print.
Remove duplicate <errno.h> include. Remove inclusion of
<libintl.h> and "nsswitch.h".
(set_cloexec_flag): New function, broken out of dbopen.
(dbopen): Changed return type to `enum
nss_status'. Mostly rewritten to make sure that we do not report
NSS_STATUS_SUCCESS if something went wrong. Remove unnecessary casts.
(internal_setent): Change return type to nss_status.
Document, and make sure that the function
behaves accordingly. Make dynamically loading the database
library really thread-safe and return NSS_STATUS_UNAVAIL if it
failed.
(db_cursor): Return ENOMEM is memory allocation failed. Remove
unecessary casts.