|
IDZEBRA 2.2.8
|
tests scope of fcntl locks.. Either "process" or "thread" More...
#include <assert.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <yaz/log.h>#include <yaz/test.h>#include <fcntl.h>Go to the source code of this file.
Functions | |
| static int | file_lock (int fd, int type, int cmd) |
| void * | run_func (void *arg) |
| void | tst (void) |
| int | main (int argc, char **argv) |
Variables | |
| int | fd |
| const char * | scope = "unknown" |
tests scope of fcntl locks.. Either "process" or "thread"
Definition in file tstlockscope.c.
|
static |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 89 of file tstlockscope.c.
References tst().
| void * run_func | ( | void * | arg | ) |
Definition at line 52 of file tstlockscope.c.
References fd, file_lock(), and scope.
Referenced by tst().
| void tst | ( | void | ) |
Definition at line 61 of file tstlockscope.c.
References fd, file_lock(), run_func(), and scope.
Referenced by main().
| int fd |
Definition at line 38 of file tstlockscope.c.
Referenced by agrep(), bend_start(), file_lock(), go(), inf_flush(), key_file_chunk_read(), main(), mf_init(), run_func(), tst(), unixLock(), zebra_create_record_stream(), zebra_create_stream_fd(), and zebra_extract_file().
| const char* scope = "unknown" |
Definition at line 40 of file tstlockscope.c.
Referenced by isamb_pp_open(), isamb_pp_open_x(), rsbool_create_base(), rset_create_and(), rset_create_base(), rset_create_between(), rset_create_not(), rset_create_or(), rset_create_prox(), rset_create_temp(), rset_trunc(), rset_trunc_r(), rsisamb_create(), rsisamc_create(), rsisams_create(), rsmulti_andor_create(), run_func(), tst(), zebra_create_rset_isam(), and zebra_record_check().