Page MenuHomeFreeBSD

D6650.id17156.diff
No OneTemporary

D6650.id17156.diff

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

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 21, 5:34 AM (17 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31891966
Default Alt Text
D6650.id17156.diff (1 KB)

Event Timeline