summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/ndbm.h2
-rw-r--r--lib/libc/db/hash/ndbm.c2
-rw-r--r--lib/libc/db/man/dbm.32
3 files changed, 3 insertions, 3 deletions
diff --git a/include/ndbm.h b/include/ndbm.h
index 1257c92..db83803 100644
--- a/include/ndbm.h
+++ b/include/ndbm.h
@@ -70,7 +70,7 @@ datum dbm_firstkey(DBM *);
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 *);
diff --git a/lib/libc/db/hash/ndbm.c b/lib/libc/db/hash/ndbm.c
index 37adaf6..1a02d00 100644
--- a/lib/libc/db/hash/ndbm.c
+++ b/lib/libc/db/hash/ndbm.c
@@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$");
* 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];
diff --git a/lib/libc/db/man/dbm.3 b/lib/libc/db/man/dbm.3
index c16f517..4fe5d82 100644
--- a/lib/libc/db/man/dbm.3
+++ b/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
OpenPOWER on IntegriCloud