Home
last modified time | relevance | path

Searched refs:db_file (Results 1 – 25 of 25) sorted by relevance

/illumos-gate/usr/src/tools/smatch/src/smatch_data/db/
H A Dcreate_db.sh16 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 Dreload_partial.sh16 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 Dfixup_kernel.sh3 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 Ddelete_too_common_fn_ptr.sh3 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 Dapply_return_fixes.sh9 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 Dfill_db_sql.pl8 my $db_file = shift;
10 if (!defined($db_file)) {
15 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
H A Dcopy_function_pointers.pl6 my $db_file = shift;
7 if (!$db_file) {
12 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
H A Dinit_constraints.pl14 my $db_file = shift;
22 my $db = DBI->connect("dbi:SQLite:$db_file", "", "",);
79 connect_to_db($db_file);
H A Dfill_db_caller_info.pl47 my $db_file = shift;
49 if (!defined($db_file)) {
55 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
H A Dinsert_manual_states.pl10 my $db_file = shift;
11 if (!defined($db_file)) {
17 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
H A Dfixup_all.sh3 db_file=$1
4 cat << EOF | sqlite3 $db_file
H A Dbuild_late_index.sh3 db_file=$1
6 cat << EOF | sqlite3 $db_file
H A Dcopy_required_constraints.pl14 my $db_file = shift;
42 connect_to_db($db_file);
H A Dmark_function_ptrs_searchable.pl9 my $db_file = shift;
10 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
H A Dinit_constraints_required.pl13 my $db_file = shift;
54 connect_to_db($db_file);
H A Dremove_mixed_up_pointer_params.pl9 my $db_file = shift;
10 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
H A Dbuild_early_index.sh3 db_file=$1
6 cat << EOF | sqlite3 $db_file
H A Dfill_db_type_size.pl11 my $db_file = shift;
12 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
H A Dfill_db_type_value.pl12 my $db_file = shift;
13 my $db = DBI->connect("dbi:SQLite:$db_file", "", "", {AutoCommit => 0});
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlflow.c329 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 Dlibdladm.c744 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 Dbackend.c1830 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 Dipadm_persist.c861 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 Dsmatch_db.c2394 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 Dsmatch.h1029 void open_smatch_db(char *db_file);