Home
last modified time | relevance | path

Searched refs:fn (Results 26 – 50 of 394) sorted by relevance

12345678910>>...16

/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Ddnssd_clientlib.c107 char *fn = fullName; in DNSServiceConstructFullName() local
125 *fn++ = '\\'; in DNSServiceConstructFullName()
133 *fn++ = '\\'; in DNSServiceConstructFullName()
137 *fn++ = (char)c; in DNSServiceConstructFullName()
139 *fn++ = '.'; in DNSServiceConstructFullName()
142 while (*r) if (fn+1 >= lim) goto fail;else *fn++ = *r++; in DNSServiceConstructFullName()
143 if (!DomainEndsInDot(regtype)) { if (fn+1 >= lim) goto fail;else *fn++ = '.';} in DNSServiceConstructFullName()
145 while (*d) if (fn+1 >= lim) goto fail;else *fn++ = *d++; in DNSServiceConstructFullName()
146 if (!DomainEndsInDot(domain)) { if (fn+1 >= lim) goto fail;else *fn++ = '.';} in DNSServiceConstructFullName()
148 *fn = '\0'; in DNSServiceConstructFullName()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_scope.c24 struct symbol *fn = get_base_type(cur_func_sym); in end_of_function() local
27 if (!fn) in end_of_function()
29 if (stmt == fn->stmt || stmt == fn->inline_stmt) in end_of_function()
61 struct symbol *fn; in is_outer_stmt() local
65 fn = get_base_type(cur_func_sym); in is_outer_stmt()
66 if (!fn) in is_outer_stmt()
74 if (stmt->parent == fn->stmt || in is_outer_stmt()
75 stmt->parent == fn->inline_stmt) in is_outer_stmt()
H A Dcheck_kunmap.c29 char *fn; in check_assignment() local
35 fn = expr_to_var(expr->fn); in check_assignment()
36 if (!fn) in check_assignment()
38 if (!strcmp(fn, "kmap")) in check_assignment()
40 free_string(fn); in check_assignment()
43 static void match_kmap_atomic(const char *fn, struct expression *expr, void *data) in match_kmap_atomic() argument
51 static void match_kunmap_atomic(const char *fn, struct expression *expr, void *data) in match_kunmap_atomic() argument
64 static void match_kunmap(const char *fn, struct expression *expr, void *data) in match_kunmap() argument
H A Dsmatch_function_hooks.c164 *p = fn; in select_return_states_before()
171 *p = fn; in select_return_states_after()
180 (*fn)(); in call_return_states_before_hooks()
189 (*fn)(); in call_return_states_after_hooks()
317 fn = expr->fn->symbol->ident->name; in call_implies_callbacks()
892 fn = expr->fn->symbol_name->name; in call_ranged_return_hooks()
1061 fn = right->fn->symbol->ident->name; in match_assign_call()
1240 fn = strip_expr(expr->fn); in match_function_call()
1241 if (fn->type == EXPR_SYMBOL && fn->symbol) { in match_function_call()
1275 fn = expr_to_var(expr->fn); in get_implied_return()
[all …]
H A Dcheck_zero_to_err_ptr.c68 if (next->fn->type != EXPR_SYMBOL || !next->fn->symbol || in next_line_checks_IS_ERR()
69 !next->fn->symbol->ident || in next_line_checks_IS_ERR()
70 (strcmp(next->fn->symbol->ident->name, "IS_ERR") != 0 && in next_line_checks_IS_ERR()
71 strcmp(next->fn->symbol->ident->name, "IS_ERR_OR_NULL") != 0)) in next_line_checks_IS_ERR()
122 static void match_err_ptr(const char *fn, struct expression *expr, void *data) in match_err_ptr() argument
140 if (strcmp(fn, "ERR_PTR") == 0 && in match_err_ptr()
150 sm_warning("passing zero to '%s'", fn); in match_err_ptr()
153 if (strcmp(fn, "PTR_ERR") != 0) in match_err_ptr()
157 sm_warning("passing a valid pointer to '%s'", fn); in match_err_ptr()
H A Dsmatch_about_fn_ptr_arg.c33 static int assigns_parameters(struct expression *fn, struct expression *arg) in assigns_parameters() argument
38 fn_param = get_param_num(fn); in assigns_parameters()
51 static void link_function_arg(struct expression *fn, int param, struct expression *arg) in link_function_arg() argument
55 if (!fn || !arg) in link_function_arg()
57 if (assigns_parameters(fn, arg)) in link_function_arg()
67 sql_insert_fn_data_link(fn, PASSES_TYPE, param, "$", type_to_str(type)); in link_function_arg()
187 if (call->fn->type != EXPR_SYMBOL) in is_recursive_call()
189 if (call->fn->symbol == cur_func_sym) in is_recursive_call()
194 static void check_passes_fn_and_data(struct expression *call, struct expression *fn, char *key, cha… in check_passes_fn_and_data() argument
203 type = get_type(fn); in check_passes_fn_and_data()
[all …]
H A Dsmatch_untracked_param.c60 untracked_hook **fn; in call_untracked_callbacks() local
63 (*fn)(expr, param); in call_untracked_callbacks()
64 } END_FOR_EACH_PTR(fn); in call_untracked_callbacks()
76 untracked_hook **fn; in call_lost_callbacks() local
78 FOR_EACH_PTR(lost_hooks, fn) { in call_lost_callbacks()
79 (*fn)(expr, param); in call_lost_callbacks()
80 } END_FOR_EACH_PTR(fn); in call_lost_callbacks()
143 struct symbol *fn; in lost_in_va_args() local
147 fn = get_type(expr->fn); in lost_in_va_args()
148 if (!fn || !fn->variadic) in lost_in_va_args()
[all …]
H A Dcheck_wine_WtoA.c50 static int allowed_func(const char *fn) in allowed_func() argument
52 if (!strcmp("lstrcatA", fn)) in allowed_func()
54 if (!strcmp("lstrcpyA", fn)) in allowed_func()
56 if (!strcmp("lstrcpynA", fn)) in allowed_func()
58 if (!strcmp("lstrlenA", fn)) in allowed_func()
71 fn_name = expr_to_var(expr->fn); in match_call()
/illumos-gate/usr/src/lib/libpctx/common/
H A Dlibpctx.c88 pctx->errfn(fn, fmt, ap); in pctx_error()
145 pctx_error(pctx, fn, in pctx_create()
180 pctx_error(pctx, fn, in pctx_capture()
184 pctx_error(pctx, fn, in pctx_capture()
188 pctx_error(pctx, fn, in pctx_capture()
192 pctx_error(pctx, fn, in pctx_capture()
197 pctx_error(pctx, fn, in pctx_capture()
201 pctx_error(pctx, fn, in pctx_capture()
218 pctx_error(pctx, fn, in pctx_capture()
292 pctx_error(pctx, fn, in pctx_set_events()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_raidz_math.c295 (void) fn; in benchmark_gen_impl()
339 bench_fn(bench_rm, fn); in benchmark_raidz_impl()
357 fstat->gen[fn] = impl; in benchmark_raidz_impl()
358 vdev_raidz_fastest_impl.gen[fn] = in benchmark_raidz_impl()
359 curr_impl->gen[fn]; in benchmark_raidz_impl()
361 fstat->rec[fn] = impl; in benchmark_raidz_impl()
362 vdev_raidz_fastest_impl.rec[fn] = in benchmark_raidz_impl()
363 curr_impl->rec[fn]; in benchmark_raidz_impl()
405 for (int fn = 0; fn < RAIDZ_GEN_NUM; fn++) { in benchmark_raidz() local
406 bench_parity = fn + 1; in benchmark_raidz()
[all …]
/illumos-gate/usr/src/cmd/logadm/
H A Dglob.c85 glob_debrace(struct fn *fnp) in glob_debrace()
137 glob_magic(struct fn *fnp) in glob_magic()
157 glob_glob(struct fn *fnp) in glob_glob()
161 struct fn *nextfnp; in glob_glob()
162 struct fn *newfnp; in glob_glob()
202 struct fn *fnp; in glob_glob_list()
216 glob_reglob(struct fn *fnp) in glob_reglob()
220 struct fn *nextfnp; in glob_reglob()
328 struct fn *fnp; in glob_reglob_list()
339 struct fn *
[all …]
H A Dmain.c169 struct fn *fnp; in main()
401 struct fn *fnp = (struct fn *)arg; in commajoin()
418 struct fn *fnp = fn_new(NULL); in doaftercmd()
458 struct fn *nextfnp; in dologname()
744 struct fn *cmd = fn_new(NULL); in rotatelog()
784 rotateto(struct fn *fnp, struct opts *opts, int n, struct fn *recentlog, in rotateto()
789 struct fn *dirname; in rotateto()
842 struct fn *cmd = fn_new(NULL); in rotateto()
865 struct fn *template; in expirefiles()
866 struct fn *pattern; in expirefiles()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dfile.c52 char *fn; in file_ready() local
61 fn = file_fmri + sizeof ("file://") - 1; in file_ready()
64 fn = file_fmri + sizeof ("file://localhost") - 1; in file_ready()
67 fn = file_fmri + sizeof ("file://") - 1; in file_ready()
72 if ((fn = strchr(fn, '/')) == NULL) in file_ready()
80 r = stat(fn, &sbuf); in file_ready()
/illumos-gate/usr/src/cmd/backup/dump/
H A Dlftw.c113 int (*fn)(const char *, const struct stat64 *, int), in lf_lftw()
121 rc = (lf_xftw(path, fn, depth, lstat64)); in lf_lftw()
131 int (*fn)(const char *, const struct stat64 *, int), in lf_xftw()
135 lf_xftw(char *path, int (*fn)(), int depth, int (*statfn)()) in lf_xftw()
151 return (errno == EACCES? (*fn)(path, &sb, FTW_NS): -1); in lf_xftw()
176 rc = (*fn)(path, &sb, FTW_F); in lf_xftw()
179 rc = lf_xftw(".", fn, depth-1, statfn); in lf_xftw()
199 rc = (errno == EACCES? (*fn)(path, &sb, FTW_DNR): -1); in lf_xftw()
201 rc = (*fn)(path, &sb, FTW_D); in lf_xftw()
208 rc = lf_xftw(".", fn, depth-1, statfn); in lf_xftw()
[all …]
/illumos-gate/usr/src/tools/scripts/
H A Dwsdiff.py303 def fnFormat(fn) : argument
318 return fn
322 return fn
324 return fn[pos + 1:]
331 def protoroot(fn): argument
332 root = fn.rstrip('/')
347 return fn
349 return fn[:pos]
639 fn = f;
650 fn = f
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dhash.h46 #define SYM_DEL_FN(fn) void *(fn)(void *app_data, int code, void *sym_data) argument
58 #define HASH_DEL_FN(fn) void *(fn)(void *app_data) argument
87 void (*fn)(void); /* Application supplied generic function */ member
136 void (*fn)(void), void *data, SYM_DEL_FN(*del_fn));
153 #define HASH_SCAN_FN(fn) int (fn)(Symbol *sym, void *context) argument
/illumos-gate/usr/src/cmd/pcidr/
H A Dpcidr_common.c170 char *fn = "pcidr_print_attrlist"; in pcidr_print_attrlist() local
190 fn, name, rv); in pcidr_print_attrlist()
196 "type = 0x%x\n", fn, name, (int)type); in pcidr_print_attrlist()
247 char *fn = "pcidr_check_attrs"; in pcidr_check_attrs() local
255 fn, name, val); in pcidr_check_attrs()
263 fn, name, val); in pcidr_check_attrs()
271 fn, name, val); in pcidr_check_attrs()
280 fn, name, val); in pcidr_check_attrs()
288 fn, name, val); in pcidr_check_attrs()
304 char *fn = "pcidr_get_attrs"; in pcidr_get_attrs() local
[all …]
H A Dpcidr.c169 char *fn = "nvadd"; in nvadd() local
178 fn, name, value, rv); in nvadd()
209 char *fn = "parse_argv_attr"; in parse_argv_attr() local
241 fn, name, value, (int)type, rv); in parse_argv_attr()
360 char *fn = "parse_path"; in parse_path() local
434 char *fn = "find_plugin"; in find_plugin() local
450 "errno = %d\n", fn, path, errno); in find_plugin()
453 "file\n", fn, path); in find_plugin()
471 char *fn = "do_plugin"; in do_plugin() local
492 "failed: errno = %d\n", fn, errno); in do_plugin()
[all …]
/illumos-gate/usr/src/cmd/tail/
H A Dtail.c61 const char *fn; in main() local
171 file->file_name = strdup(fn); in main()
190 for (first = 1; (fn = *argv++); ) { in main()
191 if ((fp = fopen(fn, "r")) == NULL || in main()
193 ierr(fn); in main()
198 first ? "" : "\n", fn); in main()
204 reverse(fp, fn, style, off, &sb); in main()
206 forward(fp, fn, style, off, &sb); in main()
209 fn = "stdin"; in main()
212 ierr(fn); in main()
[all …]
H A Dreverse.c76 r_reg(fp, fn, style, off, sbp); in reverse()
81 (void) bytes(fp, fn, off); in reverse()
85 (void) lines(fp, fn, off); in reverse()
88 r_buf(fp, fn); in reverse()
99 r_reg(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) in r_reg() argument
122 ierr(fn); in r_reg()
139 ierr(fn); in r_reg()
155 ierr(fn); in r_reg()
159 ierr(fn); in r_reg()
180 r_buf(FILE *fp, const char *fn) in r_buf() argument
[all …]
H A Dforward.c108 ierr(fn); in forward()
114 ierr(fn); in forward()
126 ierr(fn); in forward()
139 ierr(fn); in forward()
146 ierr(fn); in forward()
166 ierr(fn); in forward()
181 ierr(fn); in forward()
210 ierr(fn); in rlines()
223 ierr(fn); in rlines()
229 ierr(fn); in rlines()
[all …]
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dvsc7326_reg.h94 #define REG_TEST(ie,fn) CRA(0x2,ie&1,0x00+fn) /* Mode & Test Register */ argument
95 #define REG_TOP_BOTTOM(ie,fn) CRA(0x2,ie&1,0x10+fn) /* FIFO Buffer Top & Bottom */ argument
96 #define REG_TAIL(ie,fn) CRA(0x2,ie&1,0x20+fn) /* FIFO Write Pointer */ argument
97 #define REG_HEAD(ie,fn) CRA(0x2,ie&1,0x30+fn) /* FIFO Read Pointer */ argument
98 #define REG_HIGH_LOW_WM(ie,fn) CRA(0x2,ie&1,0x40+fn) /* Flow Control Water Marks */ argument
99 #define REG_CT_THRHLD(ie,fn) CRA(0x2,ie&1,0x50+fn) /* Cut Through Threshold */ argument
100 #define REG_FIFO_DROP_CNT(ie,fn) CRA(0x2,ie&1,0x60+fn) /* Drop & CRC Error Counter */ argument
101 #define REG_DEBUG_BUF_CNT(ie,fn) CRA(0x2,ie&1,0x70+fn) /* Input Side Debug Counter */ argument
102 #define REG_BUCKI(fn) CRA(0x2,2,0x20+fn) /* Input Side Debug Counter */ argument
103 #define REG_BUCKE(fn) CRA(0x2,3,0x20+fn) /* Input Side Debug Counter */ argument
H A Dvsc7321_reg.h90 #define REG_TEST(ie,fn) CRA(0x2,ie&1,0x00+fn) /* Mode & Test Register */ argument
91 #define REG_TOP_BOTTOM(ie,fn) CRA(0x2,ie&1,0x10+fn) /* FIFO Buffer Top & Bottom */ argument
92 #define REG_TAIL(ie,fn) CRA(0x2,ie&1,0x20+fn) /* FIFO Write Pointer */ argument
93 #define REG_HEAD(ie,fn) CRA(0x2,ie&1,0x30+fn) /* FIFO Read Pointer */ argument
94 #define REG_HIGH_LOW_WM(ie,fn) CRA(0x2,ie&1,0x40+fn) /* Flow Control Water Marks */ argument
95 #define REG_CT_THRHLD(ie,fn) CRA(0x2,ie&1,0x50+fn) /* Cut Through Threshold */ argument
96 #define REG_FIFO_DROP_CNT(ie,fn) CRA(0x2,ie&1,0x60+fn) /* Drop & CRC Error Counter */ argument
97 #define REG_DEBUG_BUF_CNT(ie,fn) CRA(0x2,ie&1,0x70+fn) /* Input Side Debug Counter */ argument
/illumos-gate/usr/src/lib/libcpc/sparc/
H A Devent_ultra.c96 picbits(const char *fn, in picbits() argument
120 bitclr(const char *fn, in bitclr() argument
133 bitset(const char *fn, in bitset() argument
206 static const char fn[] = "strtoevent"; in cpc_strtoevent() local
256 __cpc_error(fn, in cpc_strtoevent()
265 __cpc_error(fn, in cpc_strtoevent()
280 if (kv->kv_action(fn, in cpc_strtoevent()
288 if (kv->kv_action(fn, in cpc_strtoevent()
295 __cpc_error(fn, in cpc_strtoevent()
303 __cpc_error(fn, in cpc_strtoevent()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dimsg.c46 imsg(msg, fn) in imsg() argument
48 int fn;
58 while ((i = (*Read)(fn, msg, sizeof(char))) == sizeof(char)) {
99 omsg(type, msg, fn) in omsg() argument
102 int fn;
108 (*Write)(fn, buf, strlen(buf) + 1);

12345678910>>...16