Index: include/ndbm.h =================================================================== --- include/ndbm.h +++ 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: lib/libc/db/hash/ndbm.c =================================================================== --- lib/libc/db/hash/ndbm.c +++ 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: lib/libc/db/man/dbm.3 =================================================================== --- lib/libc/db/man/dbm.3 +++ 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