diff options
author | Jeremy Allison <jra@samba.org> | 2001-07-30 22:21:31 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-07-30 22:21:31 +0000 |
commit | 996719cce26700c68ff0e456e6a25d20085d091f (patch) | |
tree | 38e4e80d4fb2cd14d7d311b7ba1bc69be643b2c5 /source3/utils | |
parent | d17d9bee6f3d23f31f6b408e7b80630d4602c9c2 (diff) | |
download | samba-996719cce26700c68ff0e456e6a25d20085d091f.tar.gz samba-996719cce26700c68ff0e456e6a25d20085d091f.tar.bz2 samba-996719cce26700c68ff0e456e6a25d20085d091f.zip |
Added "use mmap" for HPUX.
Jeremy.
(This used to be commit 840802f10677cb0009cb4df4c37c7d01aa5edacd)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbcontrol.c | 2 | ||||
-rw-r--r-- | source3/utils/status.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index fef4ded218..088ce0c08e 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -131,7 +131,7 @@ static BOOL send_message(char *dest, int msg_type, void *buf, int len, BOOL dupl TDB_CONTEXT *tdb; BOOL ret; - tdb = tdb_open_log(lock_path("connections.tdb"), 0, 0, O_RDONLY, 0); + tdb = tdb_open_log(lock_path("connections.tdb"), 0, USE_TDB_MMAP_FLAG, O_RDONLY, 0); if (!tdb) { fprintf(stderr,"Failed to open connections database in send_message.\n"); return False; diff --git a/source3/utils/status.c b/source3/utils/status.c index ea683ad19c..e5beb6403c 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -316,7 +316,7 @@ static int traverse_fn1(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *st return profile_dump(); } - tdb = tdb_open_log(lock_path("connections.tdb"), 0, 0, O_RDONLY, 0); + tdb = tdb_open_log(lock_path("connections.tdb"), 0, USE_TDB_MMAP_FLAG, O_RDONLY, 0); if (!tdb) { printf("connections.tdb not initialised\n"); if (!lp_status(-1)) |