Home
last modified time | relevance | path

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

12345678910>>...12

/titanic_44/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 …]
/titanic_44/usr/src/tools/ctf/cvt/
H A Dfifo.c62 fifonode_t *fn = xmalloc(sizeof (fifonode_t)); in fifo_add() local
64 fn->fn_data = data; in fifo_add()
65 fn->fn_next = NULL; in fifo_add()
68 f->f_head = f->f_tail = fn; in fifo_add()
70 f->f_tail->fn_next = fn; in fifo_add()
71 f->f_tail = fn; in fifo_add()
79 fifonode_t *fn; in fifo_remove() local
82 if ((fn = f->f_head) == NULL) in fifo_remove()
85 data = fn->fn_data; in fifo_remove()
86 if ((f->f_head = fn->fn_next) == NULL) in fifo_remove()
[all …]
/titanic_44/usr/src/cmd/logadm/
H A Dfn.h38 struct fn *fn_new(const char *s);
39 struct fn *fn_dup(struct fn *fnp);
40 struct fn *fn_dirname(struct fn *fnp);
41 void fn_setn(struct fn *fnp, int n);
42 int fn_getn(struct fn *fnp);
43 void fn_setstat(struct fn *fnp, struct stat *stp);
44 struct stat *fn_getstat(struct fn *fnp);
45 void fn_free(struct fn *fnp);
46 void fn_renew(struct fn *fnp, const char *s);
47 void fn_putc(struct fn *fnp, int c);
[all …]
H A Dfn.c56 struct fn { struct
61 struct fn *fn_next; /* next in list */ argument
68 struct fn *fnl_first; /* first element of list */
69 struct fn *fnl_last; /* last element of list */
70 struct fn *fnl_rptr; /* read pointer for iterating through list */
79 struct fn *
82 struct fn *fnp = MALLOC(sizeof (struct fn)); in fn_new()
114 struct fn *
115 fn_dup(struct fn *fnp) in fn_dup()
117 struct fn *ret = fn_new(fn_s(fnp)); in fn_dup()
[all …]
H A Dglob.c81 static struct fn_list *glob_debrace(struct fn *fnp);
83 static boolean_t glob_magic(struct fn *fnp);
87 glob_debrace(struct fn *fnp) in glob_debrace()
139 glob_magic(struct fn *fnp) in glob_magic()
159 glob_glob(struct fn *fnp) in glob_glob()
163 struct fn *nextfnp; in glob_glob()
164 struct fn *newfnp; in glob_glob()
204 struct fn *fnp; in glob_glob_list()
218 glob_reglob(struct fn *fnp) in glob_reglob()
222 struct fn *nextfnp; in glob_reglob()
[all …]
/titanic_44/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 …]
/titanic_44/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 …]
/titanic_44/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 …]
/titanic_44/usr/src/cmd/bnu/
H A Deio.c97 ewrmsg(type, str, fn) in ewrmsg() argument
99 int fn;
102 return(etwrmsg(type, str, fn, 0));
114 erdmsg(str, fn) in erdmsg() argument
117 return(etrdmsg(str, fn, 0));
130 ewrdata(fp1, fn) in ewrdata() argument
132 int fn;
169 ret = (*Write)(fn, cmsglen, sizeof(cmsglen));
180 ret = (*Write)(fn, bufr, (unsigned) len);
202 erddata(fn, fp2) in erddata() argument
[all …]
H A Dfio.c170 fwrmsg(type, str, fn) in fwrmsg() argument
172 int fn;
186 (void) write(fn, bufr, s - bufr);
191 frdmsg(str, fn) in frdmsg() argument
193 int fn;
202 if (read(fn, str, 1) <= 0)
222 fwrdata(fp1, fn) in fwrdata() argument
224 int fn;
237 alen = fwrblk(fn, fp1, &flen);
244 if (frdmsg(ibuf, fn) != FAIL) {
[all …]
H A Ddio.c106 dwrmsg(type, str, fn) in dwrmsg() argument
108 int fn;
121 return((*Write)(fn, bufr, (unsigned) strlen(bufr) + 1) < 0 ? FAIL : SUCCESS);
133 drdmsg(str, fn) in drdmsg() argument
144 if( (len = (*Read)(fn, str, XBUFSIZ)) <= 0) {
166 dwrdata(fp1, fn) in dwrdata() argument
179 ret = (*Write)(fn, bufr, (unsigned) len);
188 (*Ioctl)(fn, DIOCXCTL, dkeof);
190 ret = (*Write)(fn, bufr, (unsigned) 0);
204 drddata(fn, fp2) in drddata() argument
[all …]
H A Dxio.c81 xwrmsg(type, str, fn) in xwrmsg() argument
83 int fn;
96 (void) (*Write)(fn, bufr, strlen(bufr) + 1);
109 xrdmsg(str, fn) in xrdmsg() argument
119 if( (len = (*Read)(fn, str, XBUFSIZ)) == 0)
143 xwrdata(fp1, fn) in xwrdata() argument
156 ret = (*Write)(fn, bufr, len);
163 ret = (*Write)(fn, bufr, 0);
177 xrddata(fn, fp2) in xrddata() argument
189 len = xrdblk(bufr, XBUFSIZ, fn);
[all …]
H A Dconn.c88 int nf, fn; local
95 fn = getto(flds);
96 CDEBUG(4, "getto ret %d\n", fn);
97 if (fn < 0)
107 ioctl(fn, TIOCSPGRP, &pgrp);
111 if (chat(nf - F_LOGIN, flds + F_LOGIN, fn,"","") == SUCCESS) {
113 return(fn); /* successful return */
117 DEBUG(6, "close caller (%d)\n", fn);
118 fd_rmlock(fn);
119 close(fn);
[all …]
/titanic_44/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 …]
/titanic_44/usr/src/lib/libast/common/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 …]
/titanic_44/usr/src/lib/libast/common/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 …]
/titanic_44/usr/src/cmd/pcidr/plugins/default/
H A Dpcidr_plugin.c50 char *fn = PCIDR_PLUGIN_SYMSTR; in PCIDR_PLUGIN_PROTO() local
63 dprint(DWARN, "%s: invalid or missing attributes\n", fn); in PCIDR_PLUGIN_PROTO()
78 "failed: rv = %d (%s)", fn, dr.dr_ap_id, rv, str); in PCIDR_PLUGIN_PROTO()
91 "found for the APID \"%s\"\n", fn, dr.dr_ap_id); in PCIDR_PLUGIN_PROTO()
100 "matching \"%s\"\n", fn, dr.dr_ap_id); in PCIDR_PLUGIN_PROTO()
103 dprint(DINFO, "===========================================\n", fn); in PCIDR_PLUGIN_PROTO()
109 dprint(DINFO, "%s: disconnecting ...\n", fn, apid); in PCIDR_PLUGIN_PROTO()
113 dprint(DINFO, "%s: disconnect FAILED\n", fn); in PCIDR_PLUGIN_PROTO()
117 dprint(DINFO, "%s: disconnect OK\n", fn); in PCIDR_PLUGIN_PROTO()
123 dprint(DINFO, "%s: configuring ...\n", fn, apid); in PCIDR_PLUGIN_PROTO()
[all …]
/titanic_44/usr/src/cmd/fs.d/ufs/lockfs/
H A Dlockfs.c240 printstatusline(char *fn, char *locktype, char *comment) in printstatusline() argument
244 printf("%-20s %-10s %s\n", fn, locktype, comment); in printstatusline()
251 printstatus(char *fn) in printstatus() argument
259 fd = open64(fn, O_RDONLY); in printstatus()
262 printstatusline(fn, "EIO", "May be hard locked"); in printstatus()
264 perror(fn); in printstatus()
276 perror(fn); in printstatus()
335 printstatusline(fn, locktype, lf.lf_comment); in printstatus()
337 LOCKWARN(fn, locktype); in printstatus()
346 flushfs(char *fn) in flushfs() argument
[all …]
/titanic_44/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 …]
/titanic_44/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 …]
/titanic_44/usr/src/cmd/svc/startd/
H A Dfile.c54 char *fn; in file_ready() local
63 fn = file_fmri + sizeof ("file://") - 1; in file_ready()
66 fn = file_fmri + sizeof ("file://localhost") - 1; in file_ready()
69 fn = file_fmri + sizeof ("file://") - 1; in file_ready()
74 if ((fn = strchr(fn, '/')) == NULL) in file_ready()
82 r = stat(fn, &sbuf); in file_ready()
/titanic_44/usr/src/lib/libpctx/common/
H A Dlibpctx.c75 pctx_default_errfn(const char *fn, const char *fmt, va_list ap) in pctx_default_errfn() argument
77 (void) fprintf(stderr, "libpctx: pctx_%s: ", fn); in pctx_default_errfn()
83 pctx_error(pctx_t *pctx, const char *fn, const char *fmt, ...) in pctx_error() argument
88 pctx->errfn(fn, fmt, ap); in pctx_error()
103 static const char fn[] = "create"; in pctx_create() local
116 pctx_error(pctx, fn, gettext("cannot trace set-id or " in pctx_create()
120 pctx_error(pctx, fn, gettext("cannot control LP64 " in pctx_create()
124 pctx_error(pctx, fn, gettext("cannot execute " in pctx_create()
128 pctx_error(pctx, fn, gettext("cannot find" in pctx_create()
132 pctx_error(pctx, fn, gettext("cannot fork, " in pctx_create()
[all …]
/titanic_44/usr/src/lib/libtecla/common/
H A Dhash.h48 #define SYM_DEL_FN(fn) void *(fn)(void *app_data, int code, void *sym_data) argument
60 #define HASH_DEL_FN(fn) void *(fn)(void *app_data) argument
89 void (*fn)(void); /* Application supplied generic function */ member
138 void (*fn)(void), void *data, SYM_DEL_FN(*del_fn));
155 #define HASH_SCAN_FN(fn) int (fn)(Symbol *sym, void *context) argument
/titanic_44/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 …]

12345678910>>...12