| /onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
| H A D | rc_io.c | 75 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 …]
|
| /onnv-gate/usr/src/tools/ctf/cvt/ |
| H A D | fifo.c | 62 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 …]
|
| /onnv-gate/usr/src/cmd/logadm/ |
| H A D | fn.h | 38 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 D | fn.c | 56 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 D | glob.c | 81 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 …]
|
| /onnv-gate/usr/src/psm/stand/boot/sparc/common/ |
| H A D | inetboot.c | 94 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 …]
|
| /onnv-gate/usr/src/cmd/bnu/ |
| H A D | eio.c | 97 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 D | fio.c | 170 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 D | dio.c | 106 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 D | xio.c | 81 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 D | conn.c | 88 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 …]
|
| /onnv-gate/usr/src/lib/libast/common/comp/ |
| H A D | iconv.c | 66 #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 …]
|
| /onnv-gate/usr/src/cmd/pcidr/plugins/default/ |
| H A D | pcidr_plugin.c | 50 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 …]
|
| /onnv-gate/usr/src/lib/libast/common/string/ |
| H A D | base64.c | 51 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 …]
|
| /onnv-gate/usr/src/cmd/man/src/util/instant.src/ |
| H A D | traninit.c | 99 char buf[LINESIZE], *cp, *fn, *cp2; in ReadTransSpec() local 139 fn = buf + i; /* point to end of string in buffer */ in ReadTransSpec() 140 fgets(fn, LINESIZE-i, fp); /* read and append to buf */ in ReadTransSpec() 156 "Trans spec error, missing colon (skipping line):\n %s\n", fn); in ReadTransSpec() 159 fn = buf; /* fn is name of the field, cp the value. */ in ReadTransSpec() 162 if (!strncmp("GI:", fn, 3)) { in ReadTransSpec() 171 else if (!strncmp("StartText:", fn, 10)) T.starttext = strdup(cp); in ReadTransSpec() 172 else if (!strncmp("EndText:", fn, 8)) T.endtext = strdup(cp); in ReadTransSpec() 173 else if (!strncmp("Relation:", fn, 9)) { in ReadTransSpec() 177 else if (!strncmp("Replace:", fn, 8)) T.replace = strdup(cp); in ReadTransSpec() [all …]
|
| /onnv-gate/usr/src/cmd/fs.d/ufs/lockfs/ |
| H A D | lockfs.c | 240 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 …]
|
| /onnv-gate/usr/src/lib/libnsl/dial/ |
| H A D | conn.c | 84 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 …]
|
| /onnv-gate/usr/src/cmd/sendmail/libsmutil/ |
| H A D | safefile.c | 46 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 …]
|
| /onnv-gate/usr/src/cmd/svc/startd/ |
| H A D | file.c | 54 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()
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/ |
| H A D | Memoize.pm | 47 my $fn = shift; 51 unless (defined($fn) && 52 (ref $fn eq 'CODE' || ref $fn eq '')) { 58 my $name = (ref $fn ? undef : $fn); 61 $cref = &_make_cref($fn, $uppack); 316 my $fn = shift; 321 if (ref $fn eq 'CODE') { 322 $cref = $fn; 323 } elsif (! ref $fn) { 324 if ($fn =~ /::/) { [all …]
|
| /onnv-gate/usr/src/lib/libtecla/common/ |
| H A D | hash.h | 48 #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
|
| /onnv-gate/usr/src/lib/libpctx/common/ |
| H A D | libpctx.c | 75 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 …]
|
| /onnv-gate/usr/src/cmd/backup/dump/ |
| H A D | lftw.c | 117 int (*fn)(const char *, const struct stat64 *, int), in lf_lftw() 125 rc = (lf_xftw(path, fn, depth, lstat64)); in lf_lftw() 135 int (*fn)(const char *, const struct stat64 *, int), in lf_xftw() 139 lf_xftw(char *path, int (*fn)(), int depth, int (*statfn)()) in lf_xftw() 155 return (errno == EACCES? (*fn)(path, &sb, FTW_NS): -1); in lf_xftw() 180 rc = (*fn)(path, &sb, FTW_F); in lf_xftw() 183 rc = lf_xftw(".", fn, depth-1, statfn); in lf_xftw() 203 rc = (errno == EACCES? (*fn)(path, &sb, FTW_DNR): -1); in lf_xftw() 205 rc = (*fn)(path, &sb, FTW_D); in lf_xftw() 212 rc = lf_xftw(".", fn, depth-1, statfn); in lf_xftw() [all …]
|
| /onnv-gate/usr/src/cmd/pcidr/ |
| H A D | pcidr_common.c | 172 char *fn = "pcidr_print_attrlist"; in pcidr_print_attrlist() local 192 fn, name, rv); in pcidr_print_attrlist() 198 "type = 0x%x\n", fn, name, (int)type); in pcidr_print_attrlist() 249 char *fn = "pcidr_check_attrs"; in pcidr_check_attrs() local 257 fn, name, val); in pcidr_check_attrs() 265 fn, name, val); in pcidr_check_attrs() 273 fn, name, val); in pcidr_check_attrs() 282 fn, name, val); in pcidr_check_attrs() 290 fn, name, val); in pcidr_check_attrs() 306 char *fn = "pcidr_get_attrs"; in pcidr_get_attrs() local [all …]
|
| /onnv-gate/usr/src/tools/scripts/ |
| H A D | wsdiff.py | 304 def fnFormat(fn) : argument 307 pos = fn.find(root_arch_str) 309 return fn 311 pos = fn.find("/", pos) 313 return fn 315 return fn[pos + 1:] 519 for fn in baseFilesList : 520 if os.path.islink(fn) : 523 fileName = fn[baseStringLength:] 529 for fn in ptchFilesList : [all …]
|