diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-01-31 17:19:12 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-01-31 17:19:12 +0000 |
commit | 1abdc18a45ae6432a0c05ab64bc3fd1cb52a9064 (patch) | |
tree | d74283ad3af4c154371a8a2c0e23c5abaa0167bc /lib/libc/db/recno | |
parent | c37b8f279e330d8f4fac881a09a97e005b7258a3 (diff) |
Fill in missing (default) mmap(2) flag MAP_FILE.
mycroft@netbsd.org
Diffstat (limited to 'lib/libc/db/recno')
-rw-r--r-- | lib/libc/db/recno/rec_open.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/db/recno/rec_open.c b/lib/libc/db/recno/rec_open.c index af3a0d81dc7..0fcbcd404c6 100644 --- a/lib/libc/db/recno/rec_open.c +++ b/lib/libc/db/recno/rec_open.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rec_open.c,v 1.6 2001/05/11 15:30:13 art Exp $ */ +/* $OpenBSD: rec_open.c,v 1.7 2002/01/31 17:19:11 millert Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)rec_open.c 8.10 (Berkeley) 9/1/94"; #else -static char rcsid[] = "$OpenBSD: rec_open.c,v 1.6 2001/05/11 15:30:13 art Exp $"; +static char rcsid[] = "$OpenBSD: rec_open.c,v 1.7 2002/01/31 17:19:11 millert Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -174,7 +174,7 @@ slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL) */ t->bt_msize = sb.st_size; if ((t->bt_smap = mmap(NULL, t->bt_msize, - PROT_READ, MAP_PRIVATE, rfd, + PROT_READ, MAP_FILE | MAP_PRIVATE, rfd, (off_t)0)) == MAP_FAILED) goto slow; t->bt_cmap = t->bt_smap; |