Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153280755
D6650.id17156.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D6650.id17156.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6650: Fix prototype of dbm_open().
Attached
Detach File
Event Timeline
Log In to Comment