diff options
| author | Marcus Boerger <helly@php.net> | 2002-11-14 14:32:39 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2002-11-14 14:32:39 +0000 |
| commit | 5ec93757603c4ae57b7d9e2f9eda3ae9248e7e13 (patch) | |
| tree | eed40bad796877ac8deaa391cc42e2a18d04a3dd /ext/dba/php_dba.h | |
| parent | 4e859353865d28a5765e1d762d4476d5617ec887 (diff) | |
| download | php-git-5ec93757603c4ae57b7d9e2f9eda3ae9248e7e13.tar.gz | |
Fix locking behaviour: On some systems read during write is permitted but
most libraries are not capable of that. GDBM is system dependant so there
we only test that we do not deadlock.
Diffstat (limited to 'ext/dba/php_dba.h')
| -rw-r--r-- | ext/dba/php_dba.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dba/php_dba.h b/ext/dba/php_dba.h index dfddfda3c4..2290c638e8 100644 --- a/ext/dba/php_dba.h +++ b/ext/dba/php_dba.h @@ -35,6 +35,7 @@ typedef struct dba_lock { php_stream *fp; int fd; char *name; + int mode; /* LOCK_EX,LOCK_SH */ } dba_lock; typedef struct dba_info { @@ -47,6 +48,7 @@ typedef struct dba_info { int argc; zval ***argv; /* private */ + int flags; /* whether and how dba did locking and other flags*/ struct dba_handler *hnd; dba_lock lock; } dba_info; |
