/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_unreachable.c | 37 struct symbol *fn = get_base_type(cur_func_sym); in is_last_stmt() local 40 if (!fn) in is_last_stmt() 42 stmt = fn->stmt; in is_last_stmt() 44 stmt = fn->inline_stmt; in is_last_stmt() 203 if (expr->fn->type != EXPR_SYMBOL || !expr->fn->symbol_name) in get_function_name() 205 return expr->fn->symbol_name->name; in get_function_name()
|
H A D | check_return_enomem.c | 54 if (expr->type != EXPR_CALL || expr->fn->type != EXPR_SYMBOL) in match_return() 56 if (!expr->fn->symbol_name) in match_return() 63 if (strcmp(expr->fn->symbol_name->name, "kmalloc") != 0 && in match_return() 64 strcmp(expr->fn->symbol_name->name, "kzalloc") != 0) in match_return()
|
H A D | smatch_type_val.c | 314 if (sym_name_is("kmalloc", expr->fn)) in is_ignored_function() 316 if (sym_name_is("vmalloc", expr->fn)) in is_ignored_function() 318 if (sym_name_is("kvmalloc", expr->fn)) in is_ignored_function() 320 if (sym_name_is("kmalloc_array", expr->fn)) in is_ignored_function() 322 if (sym_name_is("vmalloc_array", expr->fn)) in is_ignored_function() 324 if (sym_name_is("kvmalloc_array", expr->fn)) in is_ignored_function() 329 if (sym_name_is("kmem_alloc", expr->fn)) in is_ignored_function() 331 if (sym_name_is("alloc_pages", expr->fn)) in is_ignored_function() 334 if (sym_name_is("netdev_priv", expr->fn)) in is_ignored_function() 336 if (sym_name_is("dev_get_drvdata", expr->fn)) in is_ignored_function() [all …]
|
H A D | check_atomic_inc_dec.c | 181 if (expr->fn->type != EXPR_SYMBOL) in is_inc_dec_primitive() 185 if (sym_name_is(primitive_funcs[i], expr->fn)) in is_inc_dec_primitive() 206 static void match_atomic_inc(const char *fn, struct expression *expr, void *_unused) in match_atomic_inc() argument 211 static void match_atomic_dec(const char *fn, struct expression *expr, void *_unused) in match_atomic_dec() argument 216 static void match_atomic_add(const char *fn, struct expression *expr, void *_unused) in match_atomic_add() argument 230 static void match_atomic_sub(const char *fn, struct expression *expr, void *_unused) in match_atomic_sub() argument 235 static void refcount_inc(const char *fn, struct expression *expr, void *param) in refcount_inc() argument 240 static void refcount_dec(const char *fn, struct expression *expr, void *param) in refcount_dec() argument 245 static void pm_runtime_get_sync(const char *fn, struct expression *expr, void *param) in pm_runtime_get_sync() argument 250 static void match_implies_inc(const char *fn, struct expression *call_expr, in match_implies_inc() argument [all …]
|
H A D | smatch_struct_assignment.c | 312 char *fn; in returns_zeroed_mem() local 314 if (expr->type != EXPR_CALL || expr->fn->type != EXPR_SYMBOL) in returns_zeroed_mem() 316 fn = expr_to_var(expr->fn); in returns_zeroed_mem() 317 if (!fn) in returns_zeroed_mem() 319 if (strcmp(fn, "kcalloc") == 0) in returns_zeroed_mem() 321 if (option_project == PROJ_KERNEL && strstr(fn, "zalloc")) in returns_zeroed_mem() 431 static void match_memset(const char *fn, struct expression *expr, void *_size_arg) in match_memset() argument 443 static void match_memcpy(const char *fn, struct expression *expr, void *_arg) in match_memcpy() argument 454 static void match_memdup(const char *fn, struct expression *call_expr, in match_memdup() argument 471 static void match_memcpy_unknown(const char *fn, struct expression *expr, void *_arg) in match_memcpy_unknown() argument [all …]
|
H A D | smatch_db.c | 219 if (!fn) in is_common_function() 242 char *fn; in sql_insert_caller_info() local 250 fn = get_fnptr_name(call->fn); in sql_insert_caller_info() 251 if (!fn) in sql_insert_caller_info() 272 get_base_file(), get_function(), fn, is_static(call->fn), in sql_insert_caller_info() 276 free_string(fn); in sql_insert_caller_info() 385 if (fn->type != EXPR_SYMBOL || !fn->symbol->ident) in sql_insert_fn_data_link() 549 fn = strip_expr(call->fn); in sql_select_return_states() 550 if (fn->type != EXPR_SYMBOL || !fn->symbol || is_local_symbol(fn)) { in sql_select_return_states() 555 if (inlinable(fn)) { in sql_select_return_states() [all …]
|
H A D | check_held_dev.c | 36 static void match_dev_hold(const char *fn, struct expression *expr, void *data) in match_dev_hold() argument 44 static void match_dev_put(const char *fn, struct expression *expr, void *data) in match_dev_put() argument 52 static void match_returns_held(const char *fn, struct expression *call_expr, in match_returns_held() argument 59 static void match_returns_null(const char *fn, struct expression *call_expr, in match_returns_null() argument
|
H A D | check_type.c | 22 static int in_function(const char *fn) in in_function() argument 28 if (!strcmp(cur_func, fn)) in in_function() 33 static void match_free(const char *fn, struct expression *expr, void *data) in match_free() argument
|
H A D | check_strcpy_overflow.c | 20 static void match_strcpy(const char *fn, struct expression *expr, void *unused) in match_strcpy() argument 50 fn, data_name, dest_name, data_size, dest_size); in match_strcpy() 53 fn, data_name, dest_name); in match_strcpy()
|
H A D | smatch_flow.c | 533 __split_expr(expr->fn); in __split_expr() 537 if (inlinable(expr->fn)) in __split_expr() 543 if (inlinable(expr->fn)) { in __split_expr() 891 struct symbol *fn; in is_last_stmt() local 897 if (!fn) in is_last_stmt() 899 stmt = fn->stmt; in is_last_stmt() 901 stmt = fn->inline_stmt; in is_last_stmt() 1027 if (!fn) in need_delayed_scope_hooks() 1029 stmt = fn->stmt; in need_delayed_scope_hooks() 1031 stmt = fn->inline_stmt; in need_delayed_scope_hooks() [all …]
|
/illumos-gate/usr/src/uts/sun4v/promif/ |
H A D | promif_io.c | 56 #define PROMIF_PIO_CALL1(fn, arg) \ argument 57 (kmdb_dpi_call((uintptr_t)fn, 1, (uintptr_t *)&arg)) 59 #define PROMIF_PIO_CALL2(fn, arg1, arg2) \ argument 64 (void) (kmdb_dpi_call((uintptr_t)fn, 2, (uintptr_t *)args)); \ 73 #define PROMIF_PIO_CALL1(fn, arg) (fn(arg)) argument 74 #define PROMIF_PIO_CALL2(fn, arg1, arg2) (fn(arg1, arg2)) argument
|
/illumos-gate/usr/src/tools/smatch/src/smatch_data/db/ |
H A D | fill_db_caller_info.pl | 67 my ($fn, $dummy, $sql); 76 ($dummy, $dummy, $dummy, $dummy, $dummy, $fn, $dummy) = split(/'/); 78 if ($fn =~ /__builtin_/) { 81 if ($fn =~ /^(printk|memset|memcpy|kfree|printf|dev_err|writel)$/) {
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_vstafs.c | 120 char *fn, ch; in vstafs_dir() local 139 fn = dirname; in vstafs_dir() 140 while ((ch = *fn) && ch != '/' && ! isspace (ch)) fn++; in vstafs_dir() 141 *fn = 0; in vstafs_dir() 168 *(dirname = fn) = ch; in vstafs_dir()
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | krb5ssp.c | 171 const char *fn = NULL; in krb5ssp_get_tkt() local 176 fn = "null kctx or kcc"; in krb5ssp_get_tkt() 183 fn = "krb5_set_default_tgs_enctypes"; in krb5ssp_get_tkt() 190 fn = "krb5_auth_con_init"; in krb5ssp_get_tkt() 203 fn = "malloc checksum"; in krb5ssp_get_tkt() 213 fn = "krb5_mk_req"; in krb5ssp_get_tkt() 218 fn = "malloc signing key"; in krb5ssp_get_tkt() 228 if (fn == NULL) in krb5ssp_get_tkt() 229 fn = "?"; in krb5ssp_get_tkt() 230 DPRINT("%s err 0x%x: %s", fn, kerr, error_message(kerr)); in krb5ssp_get_tkt()
|
H A D | rcfile.c | 697 char *fn; in smb_open_rcfile() local 704 fn = SMB_CFG_FILE; in smb_open_rcfile() 705 error = rc_open(fn, &smb_rc); in smb_open_rcfile() 707 fn = "(sharectl get smbfs)"; in smb_open_rcfile() 713 "Can't open %s: %s\n"), fn, strerror(errno)); in smb_open_rcfile() 717 dump_props(fn); in smb_open_rcfile() 722 fn = malloc(len); in smb_open_rcfile() 723 snprintf(fn, len, "%s/.nsmbrc", home); in smb_open_rcfile() 725 error = rc_merge(fn, &smb_rc); in smb_open_rcfile() 733 dump_props(fn); in smb_open_rcfile() [all …]
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | keytab.c | 233 keyfn = (KtKeyFn *) sym->fn; in _kt_set_keybinding() 369 action->fn = 0; in _kt_set_keyfn() 661 int _kt_set_action(KeyTab *kt, const char *action, KtKeyFn *fn, void *data) in _kt_set_action() argument 676 if(!fn) { in _kt_set_action() 685 sym->fn = (void (*)(void))fn; in _kt_set_action() 692 if(!_new_HashSymbol(kt->actions, action, 0, (void (*)(void))fn, data, 0)) { in _kt_set_action() 764 action->fn = keyfn; in _kt_assign_action() 772 for(i=0; i<KTB_NBIND && !sym->actions[i].fn; i++) in _kt_assign_action() 980 KtKeyFn **fn, void **data) in _kt_lookup_action() argument 1001 if(fn) in _kt_lookup_action() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_misc/ |
H A D | zvol_misc_002_pos.ksh | 76 typeset -i fn=0 80 file_write -o create -f $TESTDIR/testfile$$.$fn \ 86 (( fn = fn + 1 ))
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | timers.c | 176 Handler_t fn = *(Handler_t*)handle; in oldalrm() local 178 (*fn)(SIGALRM); in oldalrm() 185 Handler_t fn; in sh_timeradd() local 203 fn = (Handler_t)signal(SIGALRM,sigalrm); in sh_timeradd() 204 if((t= setalarm(t))>0 && fn && fn!=(Handler_t)sigalrm) in sh_timeradd() 209 *hp = fn; in sh_timeradd()
|
H A D | io.c | 1065 endf.fd = fn; in file_offset() 1498 return(fn); in sh_redirect() 1505 if(fd==fn) in sh_redirect() 1521 if(sh_inuse(shp,fn) || (fn && fn==shp->infd)) in sh_redirect() 1523 if(fn>9 || !(shp->inuse_bits&(1<<fn))) in sh_redirect() 1524 io_preserve(shp,shp->sftable[fn],fn); in sh_redirect() 1526 sh_close(fn); in sh_redirect() 1535 fn = fd; in sh_redirect() 1546 fd = fn; in sh_redirect() 1550 v = fn; in sh_redirect() [all …]
|
/illumos-gate/usr/src/head/ |
H A D | ftw.h | 153 #define ftw(path, fn, depth) _xftw(_XFTWVER, (path), (fn), (depth)) argument 157 #define ftw64(path, fn, depth) _xftw64(_XFTWVER, (path), (fn), (depth)) argument
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | chk_trans.c | 48 process_intermediates (krb5_error_code (*fn)(krb5_data *, void *), void *data, in process_intermediates() 105 r = (*fn) (&d, data); in process_intermediates() 129 r = (*fn) (&d, data); in process_intermediates() 172 foreach_realm (krb5_error_code (*fn)(krb5_data *comp,void *data), void *data, in foreach_realm() 223 r = (*fn) (&this_component, data); in foreach_realm() 228 r = process_intermediates (fn, data, in foreach_realm() 231 r = process_intermediates (fn, data, &this_component, in foreach_realm() 270 r = process_intermediates (fn, data, &last_component, srealm); in foreach_realm() 277 r = (*fn) (&this_component, data); in foreach_realm() 281 r = process_intermediates (fn, data, &this_component, in foreach_realm()
|
/illumos-gate/usr/src/uts/common/pcmcia/cis/ |
H A D | cis.c | 993 int fn, ret; in cis_list_create() local 1074 for (fn = 0; fn < sp->nfuncs; fn++) { in cis_list_create() 1075 cis_info = &sp->cis[fn]; in cis_list_create() 1086 if (mfc->function[fn].tas == CISTPL_LONGLINK_MFC_TAS_AM) { in cis_list_create() 1088 cisptr.offset = mfc->function[fn].addr * 2; in cis_list_create() 1091 cisptr.offset = mfc->function[fn].addr; in cis_list_create() 1119 if (cis_get_ltuple(sp->cis[fn].cis, cil->type, in cis_list_create() 1325 int fn; in cis_list_destroy() local 1333 for (fn = 0; fn < CS_MAX_CIS; fn++) in cis_list_destroy() 1334 (void) cis_list_ldestroy(&sp->cis[fn].cis); in cis_list_destroy()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | systeminfo.c | 314 struct i_path_findnode fn; in path_to_devinfo() local 320 fn.dip = NULL; in path_to_devinfo() 321 fn.nodeid = prom_finddevice(path); in path_to_devinfo() 322 if (fn.nodeid != OBP_BADNODE) { in path_to_devinfo() 327 ddi_walk_devs(top_devinfo, i_path_find_node, (void *)(&fn)); in path_to_devinfo() 330 return (fn.dip); in path_to_devinfo()
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | kw.c | 70 kw_init(struct fn *fnp, struct fn *nfnp) in kw_init() 194 kw_expand(struct fn *src, struct fn *dst, int n, boolean_t gz) in kw_expand() 199 struct fn *kw = fn_new(NULL); in kw_expand() 398 struct fn *src = fn_new(NULL); in main() 399 struct fn *dst = fn_new(NULL); in main()
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | sched.c | 84 el_notice_t *fn, *n; in il_shift() local 92 fn = k->notice; in il_shift() 96 fn->pred->sucd = fn->sucd; in il_shift() 97 fn->sucd->pred = fn->pred; in il_shift() 129 fn->time = nt; in il_shift() 130 fn->pred = n->pred; in il_shift() 131 fn->sucd = n; in il_shift() 132 n->pred->sucd = fn; in il_shift() 133 n->pred = fn; in il_shift()
|