diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-11-11 10:37:37 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-11-11 10:37:37 +0000 |
commit | 99d79193981246f988f10cde380f339f1aca7a70 (patch) | |
tree | 0ea660bb3ee85550ae0427f6e33ec07094355a0d /ChangeLog | |
parent | 902a2e4bb5aa53241898ae34dcf7aafb29df7b7e (diff) | |
download | gdbm-99d79193981246f988f10cde380f339f1aca7a70.tar.gz gdbm-99d79193981246f988f10cde380f339f1aca7a70.tar.bz2 |
Support close-on-exec flag for gdbm_open call.
* src/gdbm.h.in (GDBM_CLOEXEC): New flag.
* src/systems.h [O_CLOEXEC]: Provide a placeholder definition.
* src/gdbmopen.c (gdbm_open): Honor the GDBM_CLOEXEC flag.
* compat/dbmopen.c (ndbm_open_dir_file0): Mask out open mode
before comparing with GDBM_READER.
Support GDBM_CLOEXEC.
(dbm_open): Translate O_CLOEXEC to GDBM_CLOEXEC.
* doc/gdbm.texinfo: Document GDBM_CLOEXEC.
* NEWS: Update.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1,5 +1,22 @@ 2011-11-11 Sergey Poznyakoff <gray@gnu.org.ua> + Support close-on-exec flag for gdbm_open call. + + * src/gdbm.h.in (GDBM_CLOEXEC): New flag. + * src/systems.h [O_CLOEXEC]: Provide a placeholder definition. + + * src/gdbmopen.c (gdbm_open): Honor the GDBM_CLOEXEC flag. + * compat/dbmopen.c (ndbm_open_dir_file0): Mask out open mode + before comparing with GDBM_READER. + Support GDBM_CLOEXEC. + (dbm_open): Translate O_CLOEXEC to GDBM_CLOEXEC. + + * doc/gdbm.texinfo: Document GDBM_CLOEXEC. + + * NEWS: Update. + +2011-11-11 Sergey Poznyakoff <gray@gnu.org.ua> + Fix handling of NDBM databases in read-only mode. * compat/dbmopen.c (ndbm_open_dir_file0): Open dir file in |