| /netbsd-src/external/bsd/kyua-cli/dist/utils/sqlite/ |
| H A D | database.cpp | 172 sqlite::database::open(const fs::path& file, int open_flags) in open() argument 178 if (open_flags & open_readonly) { in open() 180 open_flags &= ~open_readonly; in open() 182 if (open_flags & open_readwrite) { in open() 184 open_flags &= ~open_readwrite; in open() 186 if (open_flags & open_create) { in open() 188 open_flags &= ~open_create; in open() 190 PRE(open_flags == 0); in open()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | dict_inline.c | 56 DICT *dict_inline_open(const char *name, int open_flags, int dict_flags) in dict_inline_open() argument 81 if (open_flags != O_RDONLY) in dict_inline_open() 83 open_flags, dict_flags, in dict_inline_open() 94 open_flags, dict_flags, in dict_inline_open() 106 open_flags, dict_flags, in dict_inline_open() 115 dict = dict_open3(DICT_TYPE_HT, name, open_flags, dict_flags); in dict_inline_open() 139 open_flags, dict_flags, in dict_inline_open()
|
| H A D | dict_thash.c | 67 DICT *dict_thash_open(const char *path, int open_flags, int dict_flags) in dict_thash_open() argument 95 if (open_flags != O_RDONLY) in dict_thash_open() 97 open_flags, dict_flags, in dict_thash_open() 106 if ((fp = vstream_fopen(path, open_flags, 0644)) == 0) { in dict_thash_open() 108 open_flags, dict_flags, in dict_thash_open() 115 dict = dict_open3(DICT_TYPE_HT, path, open_flags, dict_flags); in dict_thash_open() 223 open_flags, dict_flags, in dict_thash_open()
|
| H A D | dict_db.c | 618 static DICT *dict_db_open(const char *class, const char *path, int open_flags, in dict_db_open() argument 649 return (dict_surrogate(class, path, open_flags, dict_flags, in dict_db_open() 698 if ((lock_fd = open(db_path, LOCK_OPEN_FLAGS(open_flags), 0644)) < 0) { in dict_db_open() 700 FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, in dict_db_open() 715 if ((db = dbopen(db_path, open_flags, 0644, type, tweak)) == 0) in dict_db_open() 716 FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, in dict_db_open() 726 if (open_flags == O_RDONLY) in dict_db_open() 728 if (open_flags & O_CREAT) in dict_db_open() 730 if (open_flags & O_TRUNC) in dict_db_open() 733 FREE_RETURN(dict_surrogate(class, path, open_flags, dict_flags, in dict_db_open() [all …]
|
| H A D | dict_pipe.c | 108 DICT *dict_pipe_open(const char *name, int open_flags, int dict_flags) in dict_pipe_open() argument 135 if (open_flags != O_RDONLY) in dict_pipe_open() 137 open_flags, dict_flags, in dict_pipe_open() 149 open_flags, dict_flags, in dict_pipe_open() 165 open_flags, dict_flags, in dict_pipe_open() 171 dict = dict_open(dict_type_name, open_flags, dict_flags); in dict_pipe_open()
|
| H A D | dict_union.c | 121 DICT *dict_union_open(const char *name, int open_flags, int dict_flags) in dict_union_open() argument 148 if (open_flags != O_RDONLY) in dict_union_open() 150 open_flags, dict_flags, in dict_union_open() 162 open_flags, dict_flags, in dict_union_open() 178 open_flags, dict_flags, in dict_union_open() 184 dict = dict_open(dict_type_name, open_flags, dict_flags); in dict_union_open()
|
| H A D | dict_random.c | 118 DICT *dict_random_open(const char *name, int open_flags, int dict_flags) in dict_random_open() argument 140 if (open_flags != O_RDONLY) in dict_random_open() 142 open_flags, dict_flags, in dict_random_open() 170 open_flags, dict_flags, in dict_random_open() 176 open_flags, dict_flags, in dict_random_open()
|
| H A D | dict_open.c | 462 DICT *dict_open(const char *dict_spec, int open_flags, int dict_flags) in dict_open() argument 472 dict = dict_open3(saved_dict_spec, dict_name, open_flags, dict_flags); in dict_open() 480 int open_flags, int dict_flags) in dict_open3() argument 492 return (dict_surrogate(dict_type, dict_name, open_flags, dict_flags, in dict_open3() 494 if ((dict = dp->dict_fn(dict_name, open_flags, dict_flags)) == 0) in dict_open3() 495 return (dict_surrogate(dict_type, dict_name, open_flags, dict_flags, in dict_open3()
|
| H A D | dict_test.c | 44 int open_flags; in dict_test() local 72 open_flags = O_CREAT | O_RDWR | O_TRUNC; in dict_test() 74 open_flags = O_RDWR; in dict_test() 76 open_flags = O_RDONLY; in dict_test() 90 dict = dict_open(dict_name, open_flags, dict_flags); in dict_test()
|
| H A D | dict_sockmap.c | 311 DICT *dict_sockmap_open(const char *mapname, int open_flags, int dict_flags) in dict_sockmap_open() argument 332 if (open_flags != O_RDONLY) in dict_sockmap_open() 334 open_flags, dict_flags, in dict_sockmap_open() 339 open_flags, dict_flags, in dict_sockmap_open() 349 open_flags, dict_flags, in dict_sockmap_open()
|
| H A D | dict_unix.c | 164 DICT *dict_unix_open(const char *map, int open_flags, int dict_flags) in dict_unix_open() argument 181 if (open_flags != O_RDONLY) in dict_unix_open() 182 return (dict_surrogate(DICT_TYPE_UNIX, map, open_flags, dict_flags, in dict_unix_open() 191 return (dict_surrogate(DICT_TYPE_UNIX, map, open_flags, dict_flags, in dict_unix_open()
|
| H A D | dict_tcp.c | 287 DICT *dict_tcp_open(const char *map, int open_flags, int dict_flags) in dict_tcp_open() argument 295 return (dict_surrogate(DICT_TYPE_TCP, map, open_flags, dict_flags, in dict_tcp_open() 298 if (open_flags != O_RDONLY) in dict_tcp_open() 299 return (dict_surrogate(DICT_TYPE_TCP, map, open_flags, dict_flags, in dict_tcp_open()
|
| H A D | dict_static.c | 85 DICT *dict_static_open(const char *name, int open_flags, int dict_flags) in dict_static_open() argument 112 open_flags, dict_flags, in dict_static_open() 140 open_flags, dict_flags, in dict_static_open()
|
| H A D | dict_nis.c | 226 DICT *dict_nis_open(const char *map, int open_flags, int dict_flags) in dict_nis_open() argument 230 if (open_flags != O_RDONLY) in dict_nis_open() 231 return (dict_surrogate(DICT_TYPE_NIS, map, open_flags, dict_flags, in dict_nis_open()
|
| H A D | dict_cidr.c | 253 DICT *dict_cidr_open(const char *mapname, int open_flags, int dict_flags) in dict_cidr_open() argument 286 if (open_flags != O_RDONLY) in dict_cidr_open() 288 open_flags, dict_flags, in dict_cidr_open() 298 open_flags, dict_flags, in dict_cidr_open()
|
| H A D | dict_dbm.c | 414 DICT *dict_dbm_open(const char *path, int open_flags, int dict_flags) in dict_dbm_open() argument 441 if ((lock_fd = open(dbm_path, open_flags, 0644)) < 0) in dict_dbm_open() 443 open_flags, dict_flags, in dict_dbm_open() 453 if ((dbm = dbm_open((char *) path, open_flags, 0644)) == 0) in dict_dbm_open() 455 open_flags, dict_flags, in dict_dbm_open()
|
| H A D | dict_nisplus.c | 252 DICT *dict_nisplus_open(const char *map, int open_flags, int dict_flags) in dict_nisplus_open() argument 261 if (open_flags != O_RDONLY) in dict_nisplus_open() 262 return (dict_surrogate(DICT_TYPE_NISPLUS, map, open_flags, dict_flags, in dict_nisplus_open()
|
| H A D | mkmap_open.c | 120 int open_flags, int dict_flags) in mkmap_open() argument 157 mkmap->dict = mkmap->open(path, open_flags, dict_flags); in mkmap_open()
|
| H A D | dict_fail.c | 101 DICT *dict_fail_open(const char *name, int open_flags, int dict_flags) in dict_fail_open() argument 107 if (open_flags & O_RDWR) { in dict_fail_open()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/postalias/ |
| H A D | postalias.c | 295 int open_flags, int dict_flags) in postalias() argument 317 if ((open_flags & O_TRUNC) == 0) { in postalias() 369 mkmap = mkmap_open(map_type, path_name, open_flags, dict_flags); in postalias() 474 if ((open_flags & O_TRUNC) == 0) in postalias() 617 int open_flags; in postalias_deletes() local 632 open_flags = O_RDWR | O_CREAT; /* XXX */ in postalias_deletes() 634 open_flags = O_RDWR; in postalias_deletes() 636 dict_open3(maps[n], map_name, open_flags, dict_flags) : in postalias_deletes() 637 dict_open3(var_db_type, maps[n], open_flags, dict_flags)); in postalias_deletes() 671 int open_flags; in postalias_delete() local [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/postmap/ |
| H A D | postmap.c | 394 int open_flags, int dict_flags) in postmap() argument 410 if ((open_flags & O_TRUNC) == 0) { in postmap() 463 mkmap = mkmap_open(map_type, path_name, open_flags, dict_flags); in postmap() 826 int open_flags; in postmap_deletes() local 841 open_flags = O_RDWR | O_CREAT; /* XXX */ in postmap_deletes() 843 open_flags = O_RDWR; in postmap_deletes() 845 dict_open3(maps[n], map_name, open_flags, dict_flags) : in postmap_deletes() 846 dict_open3(var_db_type, maps[n], open_flags, dict_flags)); in postmap_deletes() 880 int open_flags; in postmap_delete() local 883 open_flags = O_RDWR | O_CREAT; /* XXX */ in postmap_delete() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/global/ |
| H A D | dict_memcache.c | 501 DICT *dict_memcache_open(const char *name, int open_flags, int dict_flags) in dict_memcache_open() argument 511 return (dict_surrogate(DICT_TYPE_MEMCACHE, name, open_flags, dict_flags, in dict_memcache_open() 514 open_flags &= (O_RDONLY | O_RDWR | O_WRONLY | O_APPEND); in dict_memcache_open() 515 if (open_flags != O_RDONLY && open_flags != O_RDWR) in dict_memcache_open() 516 return (dict_surrogate(DICT_TYPE_MEMCACHE, name, open_flags, dict_flags, in dict_memcache_open() 524 return (dict_surrogate(DICT_TYPE_MEMCACHE, name, open_flags, dict_flags, in dict_memcache_open() 533 if (open_flags == O_RDWR) { in dict_memcache_open() 578 dict_mc->backup = dict_open(backup, open_flags, dict_flags); in dict_memcache_open()
|
| H A D | dict_sqlite.c | 296 DICT *dict_sqlite_open(const char *name, int open_flags, int dict_flags) in dict_sqlite_open() argument 304 if (open_flags != O_RDONLY) in dict_sqlite_open() 305 return (dict_surrogate(DICT_TYPE_SQLITE, name, open_flags, dict_flags, in dict_sqlite_open() 313 return (dict_surrogate(DICT_TYPE_SQLITE, name, open_flags, dict_flags, in dict_sqlite_open()
|
| /netbsd-src/external/gpl3/gdb/dist/gnulib/import/ |
| H A D | chown.c | 90 int open_flags = O_NONBLOCK | O_NOCTTY | O_CLOEXEC; in rpl_chown() local 91 int fd = open (file, O_RDONLY | open_flags); in rpl_chown() 94 && 0 <= (fd = open (file, O_WRONLY | open_flags)))) in rpl_chown()
|
| /netbsd-src/sbin/fsck_lfs/ |
| H A D | setup.c | 168 int open_flags; in setup() local 188 open_flags = O_RDONLY; in setup() 190 open_flags = O_RDWR; in setup() 192 if ((fsreadfd = open(dev, open_flags)) < 0) { in setup()
|