/illumos-gate/usr/src/tools/smatch/src/smatch_data/db/ |
H A D | create_db.sh | 16 db_file=smatch_db.sqlite.new 18 rm -f $db_file 21 cat $i | sqlite3 $db_file 24 ${bin_dir}/init_constraints.pl "$PROJ" $info_file $db_file 25 ${bin_dir}/init_constraints_required.pl "$PROJ" $info_file $db_file 26 ${bin_dir}/fill_db_sql.pl "$PROJ" $info_file $db_file 28 ${bin_dir}/fill_db_sql.pl "$PROJ" ${info_file}.sql $db_file 30 ${bin_dir}/fill_db_caller_info.pl "$PROJ" $info_file $db_file 32 ${bin_dir}/fill_db_caller_info.pl "$PROJ" ${info_file}.caller_info $db_file 34 ${bin_dir}/build_early_index.sh $db_file [all …]
|
H A D | reload_partial.sh | 16 db_file=smatch_db.sqlite 21 echo "delete from caller_info where file = '$c_file';" | sqlite3 $db_file 22 echo "delete from return_states where file = '$c_file';" | sqlite3 $db_file 23 echo "delete from call_implies where file = '$c_file';" | sqlite3 $db_file 24 echo "delete from return_implies where file = '$c_file';" | sqlite3 $db_file 30 ${bin_dir}/fill_db_caller_info.pl "$PROJ" $tmp_file $db_file 33 ${bin_dir}/fill_db_sql.pl "$PROJ" $tmp_file $db_file 36 ${bin_dir}/fill_db_sql.pl "$PROJ" $tmp_file $db_file 39 ${bin_dir}/fill_db_sql.pl "$PROJ" $tmp_file $db_file 43 ${bin_dir}/fixup_all.sh $db_file [all …]
|
H A D | fixup_kernel.sh | 3 db_file=$1 4 cat << EOF | sqlite3 $db_file 191 …o "select distinct call_id from caller_info where function = '__kernel_write';" | sqlite3 $db_file) 193 … caller_info values ('fake', '', '__kernel_write', $id, 0, 8017, 1, '*\$', '');" | sqlite3 $db_file 196 …select distinct return from return_states where function = 'clear_user';" | sqlite3 $db_file ) ; do 197 …s set return = \"$i[<=\$1]\" where return = \"$i\" and function = 'clear_user';" | sqlite3 $db_file 201 | sqlite3 $db_file | sed -e 's/|/ /' | while read file function ; do 211 | sqlite3 $db_file 214 | sqlite3 $db_file 220 cat << EOF | sqlite3 $db_file
|
H A D | delete_too_common_fn_ptr.sh | 3 db_file=$1 7 sqlite3 $db_file | sort -n | tail -n 100 | \ 13 echo "delete from function_ptr where function = '$func';" | sqlite3 $db_file
|
H A D | apply_return_fixes.sh | 9 db_file=$1 10 if [ "$db_file" == "" ] ; then 18 …return_states set return = '$new' where function = '$func' and return = '$old';" | sqlite3 $db_file
|
H A D | fill_db_sql.pl | 8 my $db_file = shift; 10 if (!defined($db_file)) { 15 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
|
H A D | copy_function_pointers.pl | 6 my $db_file = shift; 7 if (!$db_file) { 12 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
|
H A D | init_constraints.pl | 14 my $db_file = shift; 22 my $db = DBI->connect("dbi:SQLite:$db_file", "", "",); 79 connect_to_db($db_file);
|
H A D | fill_db_caller_info.pl | 47 my $db_file = shift; 49 if (!defined($db_file)) { 55 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
|
H A D | insert_manual_states.pl | 10 my $db_file = shift; 11 if (!defined($db_file)) { 17 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
|
H A D | fixup_all.sh | 3 db_file=$1 4 cat << EOF | sqlite3 $db_file
|
H A D | build_late_index.sh | 3 db_file=$1 6 cat << EOF | sqlite3 $db_file
|
H A D | copy_required_constraints.pl | 14 my $db_file = shift; 42 connect_to_db($db_file);
|
H A D | mark_function_ptrs_searchable.pl | 9 my $db_file = shift; 10 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
|
H A D | init_constraints_required.pl | 13 my $db_file = shift; 54 connect_to_db($db_file);
|
H A D | remove_mixed_up_pointer_params.pl | 9 my $db_file = shift; 10 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
|
H A D | build_early_index.sh | 3 db_file=$1 6 cat << EOF | sqlite3 $db_file
|
H A D | fill_db_type_size.pl | 11 my $db_file = shift; 12 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
|
H A D | fill_db_type_value.pl | 12 my $db_file = shift; 13 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlflow.c | 329 char *db_file, *tmp_db_file; in i_dladm_flow_walk_rw_db() local 335 db_file = DLADM_FLOW_DB; in i_dladm_flow_walk_rw_db() 342 db_file = db_file_buf; in i_dladm_flow_walk_rw_db() 349 if ((fp = fopen(db_file, "r")) == NULL) { in i_dladm_flow_walk_rw_db() 414 if (rename(tmp_db_file, db_file) == -1) { in i_dladm_flow_walk_rw_db() 488 char *db_file; in i_dladm_flow_create_db() local 494 db_file = DLADM_FLOW_DB; in i_dladm_flow_create_db() 498 db_file = db_file_buf; in i_dladm_flow_create_db() 504 if ((fp = fopen(db_file, "r+")) == NULL && in i_dladm_flow_create_db() 505 (fp = fopen(db_file, "w")) == NULL) { in i_dladm_flow_create_db()
|
H A D | libdladm.c | 744 i_dladm_rw_db(dladm_handle_t handle, const char *db_file, mode_t db_perms, in i_dladm_rw_db() argument 762 db_basename = strrchr(db_file, '/'); in i_dladm_rw_db() 771 (void) snprintf(file, MAXPATHLEN, "%s/%s", dladm_rootdir, db_file); in i_dladm_rw_db() 784 dladm_rootdir, db_file); in i_dladm_rw_db()
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | backend.c | 1830 backend_create(backend_type_t backend_id, const char *db_file, in backend_create() argument 1851 be->be_path = strdup(db_file); in backend_create() 1861 configd_critical("%s: %s\n", db_file, errp); in backend_create() 1898 configd_critical("%s: schema version mismatch\n", db_file); in backend_create() 1911 db_file); in backend_create() 1919 if ((fd = open(db_file, O_RDONLY)) >= 0) { in backend_create() 1958 backend_fd_write(fd, db_file) < 0 || in backend_create() 1973 "%s\n", db_file, fname); in backend_create() 1977 db_file); in backend_create() 1998 db_file, in backend_create() [all …]
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_persist.c | 861 ipadm_rw_db(db_wfunc_t *db_walk_func, void *arg, const char *db_file, in ipadm_rw_db() argument 873 (void) snprintf(file, MAXPATHLEN, "%s/%s", ipadm_rootdir, db_file); in ipadm_rw_db() 881 ipadm_rootdir, db_file); in ipadm_rw_db()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_db.c | 2394 void open_smatch_db(char *db_file) in open_smatch_db() argument 2407 rc = sqlite3_open_v2(db_file, &smatch_db, SQLITE_OPEN_READONLY, NULL); in open_smatch_db()
|
H A D | smatch.h | 1029 void open_smatch_db(char *db_file);
|