Index: head/include/ndbm.h =================================================================== --- head/include/ndbm.h +++ head/include/ndbm.h @@ -70,7 +70,7 @@ long dbm_forder(DBM *, datum); #endif datum dbm_nextkey(DBM *); -DBM *dbm_open(const char *, int, int); +DBM *dbm_open(const char *, int, mode_t); int dbm_store(DBM *, datum, datum, int); #if __BSD_VISIBLE int dbm_dirfno(DBM *); Index: head/lib/libc/db/hash/ndbm.c =================================================================== --- head/lib/libc/db/hash/ndbm.c +++ head/lib/libc/db/hash/ndbm.c @@ -56,7 +56,7 @@ * NULL on failure */ extern DBM * -dbm_open(const char *file, int flags, int mode) +dbm_open(const char *file, int flags, mode_t mode) { HASHINFO info; char path[MAXPATHLEN]; Index: head/lib/libc/db/man/dbm.3 =================================================================== --- head/lib/libc/db/man/dbm.3 +++ head/lib/libc/db/man/dbm.3 @@ -34,7 +34,7 @@ .In fcntl.h .In ndbm.h .Ft DBM * -.Fn dbm_open "const char *base" "int flags" "int mode" +.Fn dbm_open "const char *base" "int flags" "mode_t mode" .Ft void .Fn dbm_close "DBM *db" .Ft int