/illumos-gate/usr/src/boot/sys/boot/i386/common/ |
H A D | cons.c | 64 getc(int fn) argument 76 v86.eax = fn << 8; 78 return fn == 0 ? v86.eax & 0xff : (!V86_ZR(v86.efl) && (v86.eax & 0xff)); 82 xgetc(int fn) argument 89 return (fn ? 1 : getc(0)); 91 return (fn ? 1 : sio_getc()); 92 if (fn)
|
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/ |
H A D | lockfs.c | 240 printstatusline(char *fn, char *locktype, char *comment) argument 244 printf("%-20s %-10s %s\n", fn, locktype, comment); 251 printstatus(char *fn) argument 259 fd = open64(fn, O_RDONLY); 262 printstatusline(fn, "EIO", "May be hard locked"); 264 perror(fn); 276 perror(fn); 335 printstatusline(fn, locktype, lf.lf_comment); 337 LOCKWARN(fn, locktype); 346 flushfs(char *fn) argument 370 lockfs(char *fn) argument [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | fio.c | 170 fwrmsg(type, str, fn) 172 int fn; 186 (void) write(fn, bufr, s - bufr); 191 frdmsg(str, fn) 193 int fn; 202 if (read(fn, str, 1) <= 0) 222 fwrdata(fp1, fn) 224 int fn; 237 alen = fwrblk(fn, fp1, &flen); 244 if (frdmsg(ibuf, 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); 1318 int fn = FAIL; local [all...] |
/illumos-gate/usr/src/cmd/tail/ |
H A D | tail.c | 56 const char *fn; local 100 while ((ch = getopt(argc, argv, "Fb:c:fn:qr")) != -1) 165 for (file = files; (fn = *argv++); file++) { 166 file->file_name = strdup(fn); 185 for (first = 1; (fn = *argv++); ) { 186 if ((fp = fopen(fn, "r")) == NULL || 188 ierr(fn); 193 first ? "" : "\n", fn); 199 reverse(fp, fn, style, off, &sb); 201 forward(fp, fn, styl [all...] |
H A D | forward.c | 59 static void rlines(FILE *, const char *fn, off_t, struct stat *); 96 forward(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) argument 108 ierr(fn); 114 ierr(fn); 126 ierr(fn); 139 ierr(fn); 146 ierr(fn); 150 if (bytes(fp, fn, off)) 157 ierr(fn); 161 rlines(fp, fn, of 191 rlines(FILE *fp, const char *fn, off_t off, struct stat *sbp) argument [all...] |
H A D | reverse.c | 70 reverse(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) argument 76 r_reg(fp, fn, style, off, sbp); 81 (void) bytes(fp, fn, off); 85 (void) lines(fp, fn, off); 88 r_buf(fp, fn); 99 r_reg(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) argument 122 ierr(fn); 139 ierr(fn); 155 ierr(fn); 159 ierr(fn); 180 r_buf(FILE *fp, const char *fn) argument [all...] |
/illumos-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) argument 78 if (fn) 79 *fn = fp; 95 if (fn) 96 *fn = fp; 124 if (fn) 125 *fn = fp; 151 if (fn) 152 *fn = fp; 162 base64decode(const void* fb, size_t fz, void** fn, voi argument [all...] |
H A D | strsort.c | 24 * strsort - sort an array pointers using fn 26 * fn follows strcmp(3) conventions 37 strsort(char** argv, int n, int(*fn)(const char*, const char*)) 52 if ((*fn)(ap[m], ap[0]) >= 0) break;
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | conn.c | 84 int nf, fn = FAIL; local 90 fn = getto(flds); 91 CDEBUG(4, "getto ret %d\n", fn); 92 if (fn < 0) 95 if (chat(nf - F_LOGIN, flds + F_LOGIN, fn, "", "") == 98 return (fn); /* successful return */ 102 DEBUG(6, "close caller (%d)\n", fn); 103 fd_rmlock(fn); 104 (void) close(fn); 111 return (fn); 377 chat(int nf, char *flds[], int fn, char *phstr1, char *phstr2) argument 422 expect(char *str, int fn) argument 470 expect_str(char *str, int fn) argument 577 sendthem(char *str, int fn, char *phstr1, char *phstr2) argument 712 wrstr(int fn, char *buf, int len, int echocheck) argument 744 wrchr(int fn, char *buf, int len) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | ssignal.c | 58 (*ssignal(sig, fn))() 59 register int sig, (*fn)(); 68 sp[sig-MINSIG] = fn;
|
/illumos-gate/usr/src/cmd/tbl/ |
H A D | tg.c | 22 get_text(char *sp, int ilin, int icol, char *fn, char *sz) argument 39 if (fn && *fn) fprintf(tabout, ".nr %d \\n(.f\n.ft %s\n", S1, fn); 65 if (fn && *fn) fprintf(tabout, ".ft \\n(%d\n", S1);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | ftw.c | 57 ftw(const char *path, int (*fn)(), int depth) argument 59 return (_xftw(_XFTWVER, path, fn, depth));
|
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | lftw.c | 33 * int ftw (path, fn, depth) char *path; int (*fn)(); int depth; 39 * For each object visited, fn is called with three arguments. 54 * the directory cannot be read, fn will not be 63 * directory. The stat buffer passed to fn will 69 * If fn returns nonzero, ftw stops and returns the same value 81 * fn expects to be able to open files. We could also figure out 83 * number to fn, but we would not know how many to guarantee, 113 int (*fn)(const char *, const struct stat64 *, int), 121 rc = (lf_xftw(path, fn, dept [all...] |
/illumos-gate/usr/src/cmd/logadm/ |
H A D | glob.c | 49 * on a filename to the "n" value kept by the fn routines with each 50 * filename (see fn_setn() in fn.c). logadm uses this mechanism to 59 * struct (see fn_setstat() in fn.c). 77 #include "fn.h" 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) 139 glob_magic(struct fn *fnp) 159 glob_glob(struct fn *fnp) 163 struct fn *nextfn [all...] |
H A D | Makefile | 27 OBJS= conf.o err.o fn.o glob.o kw.o lut.o main.o opts.o 104 conftest: conftest.o err.o fn.o lut.o opts.o 105 $(LINK.c) -o conftest conftest.o err.o fn.o lut.o opts.o $(LDLIBS) 108 globtest: globtest.o lut.o err.o fn.o 109 $(LINK.c) -o globtest globtest.o lut.o err.o fn.o $(LDLIBS) 112 kwtest: kwtest.o err.o fn.o lut.o 113 $(LINK.c) -o kwtest kwtest.o err.o fn.o lut.o $(LDLIBS) 120 optstest: optstest.o err.o fn.o lut.o 121 $(LINK.c) -o optstest optstest.o err.o fn.o lut.o $(LDLIBS)
|
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | iconv.c | 66 #define RETURN(e,n,fn) \ 67 if (*fn && !e) e = E2BIG; \ 260 _win_iconv(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 280 fz = tz = (*fn < *tn) ? *fn : *tn; 286 un = *fn; 294 if ((tz = MultiByteToWideChar(cc->from.index, 0, (LPCSTR)*fb, (int)*fn, (LPWSTR)*tb, *tn)) && tz <= *tn) 296 fz = *fn; 307 pz = *fn / 2; 308 fz = *fn 531 utf2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 605 bin2utf(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 715 ume2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 791 bin2ume(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 865 ucs2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 910 bin2ucs(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 956 scu2bin(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 1001 bin2scu(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 1235 _ast_iconv(_ast_iconv_t cd, char** fb, size_t* fn, char** tb, size_t* tn) argument 1340 _ast_iconv_write(_ast_iconv_t cd, Sfio_t* op, char** fb, size_t* fn, size_t* e) argument 1401 size_t fn; local [all...] |
/illumos-gate/usr/src/head/ |
H A D | ftw.h | 153 #define ftw(path, fn, depth) _xftw(_XFTWVER, (path), (fn), (depth)) 157 #define ftw64(path, fn, depth) _xftw64(_XFTWVER, (path), (fn), (depth))
|
/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 \ 87 (( fn = fn + 1 ))
|
/illumos-gate/usr/src/lib/libdns_sd/common/ |
H A D | dnssd_clientlib.c | 111 char *fn = fullName; local 128 if (fn+4 >= lim) goto fail; 129 *fn++ = '\\'; 130 *fn++ = '0' + (c / 100); 131 *fn++ = '0' + (c / 10) % 10; 136 if (fn+2 >= lim) goto fail; 137 *fn++ = '\\'; 140 if (fn+1 >= lim) goto fail; 141 *fn++ = (char)c; 143 *fn [all...] |
/illumos-gate/usr/src/cmd/pcidr/ |
H A D | pcidr_common.c | 172 char *fn = "pcidr_print_attrlist"; local 192 fn, name, rv); 198 "type = 0x%x\n", fn, name, (int)type); 249 char *fn = "pcidr_check_attrs"; local 257 fn, name, val); 265 fn, name, val); 273 fn, name, val); 282 fn, name, val); 290 fn, name, val); 306 char *fn local [all...] |
/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | safefile.c | 25 ** fn -- filename to check. 38 ** 0 if fn exists, is owned by uid, and matches mode. 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, s [all...] |
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/ |
H A D | rdsv3_af_thr.h | 61 rdsv3_af_thr_t *rdsv3_af_thr_create(rdsv3_af_thr_drain_func_t fn, void *data, 63 rdsv3_af_thr_t *rdsv3_af_intr_thr_create(rdsv3_af_thr_drain_func_t fn,
|
/illumos-gate/usr/src/boot/sys/boot/userboot/userboot/ |
H A D | libuserboot.h | 34 #define CALLBACK(fn, args...) (callbacks->fn(callbacks_arg , ##args))
|
/illumos-gate/usr/src/lib/efcode/engine/ |
H A D | interp.c | 38 void (*fn)(fcode_env_t *env); 59 fn = (void (*)(fcode_env_t *)) target; 60 if (do_exec_debug(env, (void *)fn)) 67 fn(env);
|