Cleanup and add comments. Pretty print.
authordrepper <drepper>
Mon, 8 May 2000 04:49:20 +0000 (04:49 +0000)
committerdrepper <drepper>
Mon, 8 May 2000 04:49:20 +0000 (04:49 +0000)
commit15f62534c44b444e2c168b4dfddd3eebf459a675
treeeab1d4657d586152e8542cbea7188f6a5f3251c9
parent96f007900e3e9ae509603069b335df52eb181f16
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.
nss/nss_db/db-open.c