Home
last modified time | relevance | path

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

12345678910>>...16

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_io.c75 krb5_rc_io_creat(krb5_context context, krb5_rc_iostuff *d, char **fn) in krb5_rc_io_creat() argument
85 if (fn && *fn) in krb5_rc_io_creat()
88 if (*fn[0] == '/') { in krb5_rc_io_creat()
89 d->fn = strdup(*fn); in krb5_rc_io_creat()
90 if (d->fn == NULL) in krb5_rc_io_creat()
93 if (!(d->fn = malloc(strlen(*fn) + dirlen + 1))) in krb5_rc_io_creat()
95 (void) strcpy(d->fn, dir); in krb5_rc_io_creat()
96 (void) strcat(d->fn, PATH_SEPARATOR); in krb5_rc_io_creat()
97 (void) strcat(d->fn, *fn); in krb5_rc_io_creat()
99 d->fd = THREEPARAMOPEN(d->fn, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL | in krb5_rc_io_creat()
[all …]
/illumos-gate/usr/src/cmd/logadm/
H A Dfn.h36 struct fn *fn_new(const char *s);
37 struct fn *fn_dup(struct fn *fnp);
38 struct fn *fn_dirname(struct fn *fnp);
39 void fn_setn(struct fn *fnp, int n);
40 int fn_getn(struct fn *fnp);
41 void fn_setstat(struct fn *fnp, struct stat *stp);
42 struct stat *fn_getstat(struct fn *fnp);
43 void fn_free(struct fn *fnp);
44 void fn_renew(struct fn *fnp, const char *s);
45 void fn_putc(struct fn *fnp, int c);
[all …]
H A Dfn.c54 struct fn { struct
59 struct fn *fn_next; /* next in list */ argument
66 struct fn *fnl_first; /* first element of list */
67 struct fn *fnl_last; /* last element of list */
68 struct fn *fnl_rptr; /* read pointer for iterating through list */
77 struct fn *
80 struct fn *fnp = MALLOC(sizeof (struct fn)); in fn_new()
112 struct fn *
113 fn_dup(struct fn *fnp) in fn_dup()
115 struct fn *ret = fn_new(fn_s(fnp)); in fn_dup()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsparse-llvm.c24 LLVMValueRef fn; member
369 static LLVMValueRef pseudo_to_value(struct function *fn, struct symbol *ctype, pseudo_t pseudo) in pseudo_to_value() argument
378 result = get_sym_value(fn->module, pseudo->sym); in pseudo_to_value()
384 result = LLVMGetParam(fn->fn, pseudo->nr - 1); in pseudo_to_value()
403 static LLVMValueRef pseudo_to_rvalue(struct function *fn, struct symbol *ctype, pseudo_t pseudo) in pseudo_to_rvalue() argument
405 LLVMValueRef val = pseudo_to_value(fn, ctype, pseudo); in pseudo_to_rvalue()
410 return LLVMBuildBitCast(fn->builder, val, dtype, name); in pseudo_to_rvalue()
413 static LLVMValueRef value_to_ivalue(struct function *fn, struct symbol *ctype, LLVMValueRef val) in value_to_ivalue() argument
420 val = LLVMBuildPtrToInt(fn->builder, val, dtype, name); in value_to_ivalue()
423 val = LLVMBuildIntCast(fn->builder, val, dtype, name); in value_to_ivalue()
[all …]
H A Dsmatch_fn_arg_link.c30 static void save_in_fn_ptr_data_link_table(struct expression *fn, struct expression *arg) in save_in_fn_ptr_data_link_table() argument
39 fn_name = expr_to_var_sym(fn, &fn_sym); in save_in_fn_ptr_data_link_table()
82 fn_param = get_param_num(call->fn); in print_calls_parameter()
101 struct expression *fn, *tmp; in print_call_is_linked() local
107 fn = strip_expr(call->fn); in print_call_is_linked()
108 tmp = get_assigned_expr(fn); in print_call_is_linked()
110 fn = tmp; in print_call_is_linked()
111 if (fn->type != EXPR_DEREF || !fn->member) in print_call_is_linked()
114 fn_sym = expr_to_sym(fn); in print_call_is_linked()
126 save_in_fn_ptr_data_link_table(fn, arg); in print_call_is_linked()
[all …]
H A Dsmatch_hooks.c31 void *fn; member
87 void *fn; member
100 container->fn = func; in add_hook()
109 container->fn = func; in add_merge_hook()
117 container->fn = func; in add_unmatched_state_hook()
126 static void pass_expr_to_client(void *fn, void *data) in pass_expr_to_client() argument
128 ((expr_func *)fn)((struct expression *)data); in pass_expr_to_client()
131 static void pass_stmt_to_client(void *fn, void *data) in pass_stmt_to_client() argument
133 ((stmt_func *)fn)((struct statement *)data); in pass_stmt_to_client()
136 static void pass_sym_to_client(void *fn, void *data) in pass_sym_to_client() argument
[all …]
H A Dcheck_debug.c34 static void match_all_values(const char *fn, struct expression *expr, void *info) in match_all_values() argument
43 static void match_cur_stree(const char *fn, struct expression *expr, void *info) in match_cur_stree() argument
48 static void match_state(const char *fn, struct expression *expr, void *info) in match_state() argument
56 sm_error("the check_name argument to %s is supposed to be a string literal", fn); in match_state()
61 sm_error("the state_name argument to %s is supposed to be a string literal", fn); in match_state()
78 static void match_states(const char *fn, struct expression *expr, void *info) in match_states() argument
84 sm_error("the check_name argument to %s is supposed to be a string literal", fn); in match_states()
97 static void match_print_value(const char *fn, struct expression *expr, void *info) in match_print_value() argument
105 sm_error("the argument to %s is supposed to be a string literal", fn); in match_print_value()
116 static void match_print_known(const char *fn, struct expression *expr, void *info) in match_print_known() argument
[all …]
/illumos-gate/usr/src/lib/libm/common/Q/
H A Dscalbl.c41 scalbl(long double x, long double fn) { in scalbl() argument
42 int *py = (int *) &fn, n; in scalbl()
45 if (isnanl(x) || isnanl(fn)) in scalbl()
46 return (x * fn); in scalbl()
53 return (x / (-fn)); in scalbl()
55 return (x * fn); in scalbl()
57 if (rintl(fn) != fn) in scalbl()
58 return ((fn - fn) / (fn - fn)); in scalbl()
59 if (fn > 65000.0L) in scalbl()
61 else if (-fn > 65000.0L) in scalbl()
[all …]
/illumos-gate/usr/src/lib/libm/common/LD/
H A Dscalbl.c42 scalbl(long double x, long double fn) { argument
43 int *py = (int *) &fn, n;
46 if (isnanl(x) || isnanl(fn))
47 return x * fn;
57 return x / (-fn);
59 return x * fn;
61 if (rintl(fn) != fn)
62 return (fn - fn) / (fn - fn);
63 if (fn > 65000.0L)
65 else if (-fn > 65000.0L)
[all …]
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dinetboot.c94 char *fn; in post_mountroot_nfs() local
98 fn = NULL; in post_mountroot_nfs()
102 fn = (cmd_line_boot_archive[0] != '\0') ? in post_mountroot_nfs()
106 (void) strncpy(tmpname, fn, strlen(fn)+1); in post_mountroot_nfs()
107 fn = tmpname; in post_mountroot_nfs()
109 printf("Enter filename [%s]: ", fn); in post_mountroot_nfs()
114 fn = tmpname; in post_mountroot_nfs()
124 if (fn != NULL) { in post_mountroot_nfs()
125 fd = openfile(fn); in post_mountroot_nfs()
129 fn = tmpname; in post_mountroot_nfs()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Deio.c94 ewrmsg(char type, char *str, int fn) in ewrmsg() argument
96 return(etwrmsg(type, str, fn, 0)); in ewrmsg()
108 erdmsg(char *str, int fn) in erdmsg() argument
110 return(etrdmsg(str, fn, 0)); in erdmsg()
123 ewrdata(fp1, fn) in ewrdata() argument
125 int fn;
162 ret = (*Write)(fn, cmsglen, sizeof(cmsglen));
173 ret = (*Write)(fn, bufr, (unsigned) len);
195 erddata(int fn, FILE *fp2) in erddata() argument
216 ret = erdblk(cptr, len, fn); in erddata()
[all …]
H A Dfio.c168 fwrmsg(type, str, fn) in fwrmsg() argument
170 int fn;
184 (void) write(fn, bufr, s - bufr);
189 frdmsg(str, fn) in frdmsg() argument
191 int fn;
200 if (read(fn, str, 1) <= 0)
220 fwrdata(fp1, fn) in fwrdata() argument
222 int fn;
235 alen = fwrblk(fn, fp1, &flen);
242 if (frdmsg(ibuf, fn) != FAIL) {
[all …]
H A Ddio.c104 dwrmsg(type, str, fn) in dwrmsg() argument
106 int fn;
119 return((*Write)(fn, bufr, (unsigned) strlen(bufr) + 1) < 0 ? FAIL : SUCCESS);
131 drdmsg(str, fn) in drdmsg() argument
142 if( (len = (*Read)(fn, str, XBUFSIZ)) <= 0) {
164 dwrdata(fp1, fn) in dwrdata() argument
177 ret = (*Write)(fn, bufr, (unsigned) len);
186 (*Ioctl)(fn, DIOCXCTL, dkeof);
188 ret = (*Write)(fn, bufr, (unsigned) 0);
202 drddata(fn, fp2) in drddata() argument
[all …]
H A Dxio.c78 xwrmsg(type, str, fn) in xwrmsg() argument
80 int fn;
93 (void) (*Write)(fn, bufr, strlen(bufr) + 1);
106 xrdmsg(char *str, int fn) in xrdmsg() argument
115 if( (len = (*Read)(fn, str, XBUFSIZ)) == 0) in xrdmsg()
139 xwrdata(FILE *fp1, int fn) in xwrdata() argument
151 ret = (*Write)(fn, bufr, len); in xwrdata()
158 ret = (*Write)(fn, bufr, 0); in xwrdata()
172 xrddata(int fn, FILE *fp2) in xrddata() argument
183 len = xrdblk(bufr, XBUFSIZ, fn); in xrddata()
[all …]
H A Dconn.c84 int nf, fn; local
91 fn = getto(flds);
92 CDEBUG(4, "getto ret %d\n", fn);
93 if (fn < 0)
103 ioctl(fn, TIOCSPGRP, &pgrp);
107 if (chat(nf - F_LOGIN, flds + F_LOGIN, fn,"","") == SUCCESS) {
109 return(fn); /* successful return */
113 DEBUG(6, "close caller (%d)\n", fn);
114 fd_rmlock(fn);
115 close(fn);
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/backend/
H A Dfunction-ptr-xtype.c11 int foo(void *fn, int arg1, int arg2);
12 int foo(void *fn, int arg1, int arg2) in foo() argument
16 res += ((binop_t)fn)(arg1, arg2); in foo()
17 res += ((unop_t)fn)(arg1); in foo()
18 res += ((ldef_t)fn)(); in foo()
19 res += ((idef_t)fn)(); in foo()
20 ((use_t)fn)(res); in foo()
24 int bar(int (*fn)(int), int arg1, int arg2);
25 int bar(int (*fn)(int), int arg1, int arg2) in bar()
29 res += ((binop_t)fn)(arg1, arg2); in bar()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Diconv.c66 #define RETURN(e,n,fn) \ argument
67 if (*fn && !e) e = E2BIG; \
260 _win_iconv(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) in _win_iconv() argument
280 fz = tz = (*fn < *tn) ? *fn : *tn; in _win_iconv()
286 un = *fn; in _win_iconv()
294 …if ((tz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)*tb, *tn)) && tz <… in _win_iconv()
296 fz = *fn; in _win_iconv()
307 pz = *fn / 2; in _win_iconv()
308 fz = *fn - pz; in _win_iconv()
312 if (++fz >= *fn) in _win_iconv()
[all …]
/illumos-gate/usr/src/lib/libm/common/C/
H A Dscalb.c35 scalb(double x, double fn) { in scalb() argument
39 if (isnan(x) || isnan(fn)) in scalb()
40 return (x * fn); in scalb()
42 in = ((int *)&fn)[HIWORD]; in scalb()
45 return (_SVID_libm_err(x, fn, 47)); in scalb()
53 return ((fn == 0.0)? x : (x - x) / (x - x)); in scalb()
57 | ((int *)&fn)[LOWORD]) in scalb()
59 n = (int)fn; in scalb()
61 if (((int *)&fn)[LOWORD] & ((1 << (0x433 - (hn >> 20))) - 1)) in scalb()
68 return (_SVID_libm_err(x, fn, 33)); in scalb()
[all …]
H A D__rem_pio2.c65 double w, t, r, fn; in __rem_pio2() local
95 fn = (double)n; in __rem_pio2()
96 r = t - fn * pio2_1; in __rem_pio2()
98 w = fn * pio2_1t; /* 1st round good to 85 bit */ in __rem_pio2()
105 w = fn * pio2_2; in __rem_pio2()
107 w = fn * pio2_2t - ((t - r) - w); in __rem_pio2()
110 r -= fn * pio2_2; in __rem_pio2()
111 w = fn * pio2_2t; in __rem_pio2()
118 w = fn * pio2_3; in __rem_pio2()
120 w = fn * pio2_3t - in __rem_pio2()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dbase64.c51 base64encode(const void* fb, size_t fz, void** fn, void* tb, size_t tz, void** tn) in base64encode() argument
78 if (fn) in base64encode()
79 *fn = fp; in base64encode()
95 if (fn) in base64encode()
96 *fn = fp; in base64encode()
124 if (fn) in base64encode()
125 *fn = fp; in base64encode()
151 if (fn) in base64encode()
152 *fn = fp; in base64encode()
162 base64decode(const void* fb, size_t fz, void** fn, void* tb, size_t tz, void** tn) in base64decode() argument
[all …]
/illumos-gate/usr/src/cmd/pcidr/plugins/default/
H A Dpcidr_plugin.c48 char *fn = PCIDR_PLUGIN_SYMSTR; in PCIDR_PLUGIN_PROTO() local
61 dprint(DWARN, "%s: invalid or missing attributes\n", fn); in PCIDR_PLUGIN_PROTO()
76 "failed: rv = %d (%s)", fn, dr.dr_ap_id, rv, str); in PCIDR_PLUGIN_PROTO()
89 "found for the APID \"%s\"\n", fn, dr.dr_ap_id); in PCIDR_PLUGIN_PROTO()
98 "matching \"%s\"\n", fn, dr.dr_ap_id); in PCIDR_PLUGIN_PROTO()
101 dprint(DINFO, "===========================================\n", fn); in PCIDR_PLUGIN_PROTO()
107 dprint(DINFO, "%s: disconnecting ...\n", fn, apid); in PCIDR_PLUGIN_PROTO()
111 dprint(DINFO, "%s: disconnect FAILED\n", fn); in PCIDR_PLUGIN_PROTO()
115 dprint(DINFO, "%s: disconnect OK\n", fn); in PCIDR_PLUGIN_PROTO()
121 dprint(DINFO, "%s: configuring ...\n", fn, apid); in PCIDR_PLUGIN_PROTO()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/
H A Dlockfs.c238 printstatusline(char *fn, char *locktype, char *comment) in printstatusline() argument
242 printf("%-20s %-10s %s\n", fn, locktype, comment); in printstatusline()
249 printstatus(char *fn) in printstatus() argument
257 fd = open64(fn, O_RDONLY); in printstatus()
260 printstatusline(fn, "EIO", "May be hard locked"); in printstatus()
262 perror(fn); in printstatus()
274 perror(fn); in printstatus()
333 printstatusline(fn, locktype, lf.lf_comment); in printstatus()
335 LOCKWARN(fn, locktype); in printstatus()
344 flushfs(char *fn) in flushfs() argument
[all …]
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dconn.c84 int nf, fn = FAIL; in conn() local
90 fn = getto(flds); in conn()
91 CDEBUG(4, "getto ret %d\n", fn); in conn()
92 if (fn < 0) in conn()
95 if (chat(nf - F_LOGIN, flds + F_LOGIN, fn, "", "") == in conn()
98 return (fn); /* successful return */ in conn()
102 DEBUG(6, "close caller (%d)\n", fn); in conn()
103 fd_rmlock(fn); in conn()
104 (void) close(fn); in conn()
111 return (fn); in conn()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c46 safefile(fn, uid, gid, user, flags, mode, st)
47 char *fn;
65 fn, (int) uid, (int) gid, flags, mode);
67 if (sm_strlcpy(fbuf, fn, sizeof fbuf) >= sizeof fbuf)
73 fn = fbuf;
83 if ((bitset(SFF_NOSLINK, flags) ? lstat(fn, st)
84 : stat(fn, st)) < 0)
86 if (stat(fn, st) < 0)
126 p = strrchr(fn, '/');
135 ret = safedirpath(fn, uid, gid, user,
[all …]
/illumos-gate/usr/src/cmd/raidz_test/
H A Draidz_bench.c75 int fn, ncols; in run_gen_bench_impl() local
81 for (fn = 0; fn < RAIDZ_GEN_NUM; fn++) { in run_gen_bench_impl()
85 ncols = rto_opts.rto_dcols + fn + 1; in run_gen_bench_impl()
88 BENCH_ASHIFT, ncols, fn+1); in run_gen_bench_impl()
105 raidz_gen_name[fn], in run_gen_bench_impl()
138 int fn, ncols, nbad; in run_rec_bench_impl() local
152 for (fn = 0; fn < RAIDZ_REC_NUM; fn++) { in run_rec_bench_impl()
180 vdev_raidz_reconstruct(rm_bench, tgt[fn], nbad); in run_rec_bench_impl()
189 raidz_rec_name[fn], in run_rec_bench_impl()

12345678910>>...16