Lines Matching refs:omode

55 static int procinform(const char *path, int omode);
56 static int procput(const char *path, int64_t id, const char *text, int omode);
57 static int procout(const char *path, int64_t id, int omode);
58 static int procget(const char *path, int64_t id, int omode);
59 static int procsearch(const char *path, const char **words, int wnum, int omode,
61 static int proclist(const char *path, int omode, int max, bool pv);
62 static int procoptimize(const char *path, int omode);
63 static int procimporttsv(const char *path, const char *file, int64_t icsiz, int omode);
234 int omode = 0; in runinform() local
238 omode |= JDBONOLCK; in runinform()
240 omode |= JDBOLCKNB; in runinform()
251 int rv = procinform(path, omode); in runinform()
261 int omode = 0; in runput() local
265 omode |= JDBONOLCK; in runput()
267 omode |= JDBOLCKNB; in runput()
284 int rv = procput(path, id, text, omode); in runput()
293 int omode = 0; in runout() local
297 omode |= JDBONOLCK; in runout()
299 omode |= JDBOLCKNB; in runout()
314 int rv = procout(path, id, omode); in runout()
323 int omode = 0; in runget() local
327 omode |= JDBONOLCK; in runget()
329 omode |= JDBOLCKNB; in runget()
344 int rv = procget(path, id, omode); in runget()
354 int omode = 0; in runsearch() local
363 omode |= JDBONOLCK; in runsearch()
365 omode |= JDBOLCKNB; in runsearch()
397 int rv = procsearch(path, (const char **)words, wnum, omode, emode, smode, max, ph, pv); in runsearch()
405 int omode = 0; in runoptimize() local
409 omode |= JDBONOLCK; in runoptimize()
411 omode |= JDBOLCKNB; in runoptimize()
422 int rv = procoptimize(path, omode); in runoptimize()
430 int omode = 0; in runlist() local
436 omode |= JDBONOLCK; in runlist()
438 omode |= JDBOLCKNB; in runlist()
455 int rv = proclist(path, omode, max, pv); in runlist()
465 int omode = 0; in runimporttsv() local
472 omode |= HDBONOLCK; in runimporttsv()
474 omode |= HDBOLCKNB; in runimporttsv()
487 int rv = procimporttsv(path, file, icsiz, omode); in runimporttsv()
524 static int procinform(const char *path, int omode){ in procinform() argument
527 if(!tcjdbopen(jdb, path, JDBOREADER | omode)){ in procinform()
559 static int procput(const char *path, int64_t id, const char *text, int omode){ in procput() argument
563 if(!tcjdbopen(jdb, path, JDBOWRITER | omode)){ in procput()
583 static int procout(const char *path, int64_t id, int omode){ in procout() argument
587 if(!tcjdbopen(jdb, path, JDBOWRITER | omode)){ in procout()
607 static int procget(const char *path, int64_t id, int omode){ in procget() argument
611 if(!tcjdbopen(jdb, path, JDBOREADER | omode)){ in procget()
635 static int procsearch(const char *path, const char **words, int wnum, int omode, in procsearch() argument
639 if(!tcjdbopen(jdb, path, JDBOREADER | omode)){ in procsearch()
708 static int proclist(const char *path, int omode, int max, bool pv){ in proclist() argument
711 if(!tcjdbopen(jdb, path, JDBOREADER | omode)){ in proclist()
745 static int procoptimize(const char *path, int omode){ in procoptimize() argument
748 if(!tcjdbopen(jdb, path, JDBOWRITER | omode)){ in procoptimize()
768 static int procimporttsv(const char *path, const char *file, int64_t icsiz, int omode){ in procimporttsv() argument
779 if(!tcjdbopen(jdb, path, JDBOWRITER | JDBOCREAT | omode)){ in procimporttsv()