/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | linux.c | 65 find_real_addr(struct preloaded_file *fp) argument 72 md = file_findmetadata(fp, MODINFOMD_SMAP); 93 struct preloaded_file *fp; local 113 fp = file_findfile(NULL, NULL); 114 if (fp != NULL) 150 fp = file_alloc(); 151 if (fp == NULL) { 156 bios_addsmapdata(fp); 165 linux_data_real_addr = find_real_addr(fp); 168 file_discard(fp); 277 linux_exec(struct preloaded_file *fp) argument [all...] |
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | xdr_float.c | 60 xdr_float(XDR *xdrs, float *fp) argument 65 return (XDR_PUTINT32(xdrs, (int *)fp)); 68 return (XDR_GETINT32(xdrs, (int *)fp)); 104 xdr_quadruple(XDR *xdrs, long double *fp) argument 115 return (XDR_PUTBYTES(xdrs, (char *)fp, sizeof (long double))); 117 return (XDR_GETBYTES(xdrs, (char *)fp, sizeof (long double))); 130 xdr_float(XDR *xdrs, float *fp) argument 144 f = *fp; 205 *fp = f; 311 xdr_quadruple(XDR *xdrs, long double *fp) argument [all...] |
/illumos-gate/usr/src/cmd/filesync/ |
H A D | acls.c | 170 set_acls(const char *name, struct fileinfo *fp) argument 175 if (fp->f_numacls == 0) { 178 acls[0].a_id = fp->f_uid; 179 acls[0].a_perm = (fp->f_mode >> 6) & 7; 182 acls[1].a_id = fp->f_gid; 183 acls[1].a_perm = (fp->f_mode >> 3) & 7; 187 acls[2].a_perm = (fp->f_mode >> 6) & 7; 191 acls[3].a_perm = fp->f_mode & 7; 196 nacl = fp->f_numacls; 197 list = fp [all...] |
H A D | action.c | 48 * update fp->f_info[srcdst] 49 * update fp->f_info[OPT_BASE] from fp->f_info[srcdst] 54 * set fp->f_flags |= F_CONFLICT 55 * set fp->f_problem 122 do_like(struct file *fp, side_t srcdst, bool_t do_stats) argument 134 bp = fp->f_base; 138 fp->f_flags |= F_CONFLICT; 139 fp->f_problem = gettext(PROB_prohibited); 147 sp = &fp 389 do_copy(struct file *fp, side_t srcdst) argument 850 do_remove(struct file *fp, side_t srcdst) argument 936 do_rename(struct file *fp, side_t srcdst) argument [all...] |
/illumos-gate/usr/src/cmd/tail/ |
H A D | tail.c | 57 FILE *fp; local 169 if ((file->fp = fopen(file->file_name, "r")) == NULL || 170 fstat(fileno(file->fp), &file->st)) { 171 if (file->fp != NULL) { 172 (void) fclose(file->fp); 173 file->fp = NULL; 186 if ((fp = fopen(fn, "r")) == NULL || 187 fstat(fileno(fp), &sb)) { 199 reverse(fp, fn, style, off, &sb); 201 forward(fp, f [all...] |
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | svc_gen.c | 74 * - fp - connection end point 100 struct file *fp, /* connection end point */ 119 RPCLOG(16, "svc_tli_kcreate: on file %p\n", (void *)fp); 121 if (fp == NULL || nxprt == NULL) 124 if (fp->f_vnode->v_stream == NULL) 130 wq = fp->f_vnode->v_stream->sd_wrq; 149 error = strioctl(fp->f_vnode, I_STR, (intptr_t)&strioc, 0, K_TO_K, 162 error = svc_clts_kcreate(fp, max_msgsize, &tinfo, &xprt); 166 error = svc_cots_kcreate(fp, max_msgsize, &tinfo, &xprt); 190 xprt->xp_fp = fp; 99 svc_tli_kcreate( struct file *fp, uint_t max_msgsize, char *netid, struct netbuf *addrmask, SVCMASTERXPRT **nxprt, SVC_CALLOUT_TABLE *sct, void (*closeproc)(const SVCMASTERXPRT *), int id, bool_t hotstream) argument [all...] |
/illumos-gate/usr/src/cmd/write/ |
H A D | write.c | 81 static FILE *fp; /* File pointer for receipient's terminal */ variable 97 extern FILE *fp; 340 fp = fopen(&rterminal[0], "w"); 345 if (fcntl(fileno(fp), F_SETFD, FD_CLOEXEC) < 0) { 362 (void) fprintf(fp, 365 fflush(fp); 381 if (myuid && !permit1(fileno(fp))) { 401 putc('\r', fp); 407 putc(*bp, fp); 411 putc(*bp, fp); [all...] |
/illumos-gate/usr/src/cmd/print/conv_fix/ |
H A D | conv_fix.c | 41 * static char *_file_getline(FILE *fp) 43 * FILE *fp - file pointer to read from 53 _file_getline(FILE *fp) argument 62 while (fgets(tmp, size, fp)) { 94 FILE *fp, *fp2; local 119 if ((fp = fopen(file, "r")) != NULL) { 135 while ((cp = _file_getline(fp)) != NULL) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/ |
H A D | kssladm.c | 93 FILE *fp; local 95 fp = fopen(filename, "r"); 96 if (fp == NULL) { 102 line = fgets(buffer, bufsize, fp); 103 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/ |
H A D | fksmbd_shr.c | 67 FILE *fp; local 71 fp = fopen(shr_file, "r"); 72 if (fp == NULL) { 77 while ((p = fgets(linebuf, sizeof (linebuf), fp)) != NULL) { 99 (void) fclose(fp);
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | paste.c | 89 register Sfio_t *fp; local 95 if(fp=streams[n]) 97 if(cp = sfgetr(fp,'\n',0)) 121 if(sfwrite(out,cp,sfvalue(fp)-((n+1)<nstream)) < 0) 178 register Sfio_t *fp, **streams; local 254 fp = sfstdin; 255 else if(!(fp = sfopen(NiL,cp,"r"))) 257 if(fp && sflag) 259 if(spaste(fp,sfstdout,delim,dsiz,dlen,mp) < 0) 261 if(fp! [all...] |
/illumos-gate/usr/src/cmd/dispadmin/ |
H A D | dispadmin.c | 257 read_default_file(FILE *fp) argument 262 for (line = 1; fgets(buf, BUFSZ, fp) != NULL; line++) { 276 (void) fclose(fp); 281 (void) fclose(fp); 297 FILE *fp; local 314 if ((fp = fdopen(fd, "r")) == NULL) 317 clname = read_default_file(fp); 338 if ((fp = fdopen(fd, "w")) == NULL) 344 "#\n", fp); 345 if ((fprintf(fp, " 374 FILE *fp; local [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | anlwrk.c | 42 #define CLEAN_RETURN(fp) {\ 43 if (fp != NULL) \ 44 (void) fclose(fp); \ 45 fp = NULL; \ 81 static FILE *fp = NULL; /* currently opened C. file pointer */ local 89 if (fp != NULL) 93 CLEAN_RETURN(fp); 96 if (fp == NULL) { 97 fp = fopen(file, "r"); 99 if (fp [all...] |
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/i386/ |
H A D | bootinfo.c | 181 struct preloaded_file *fp; local 185 for (fp = file_findfile(NULL, NULL); fp != NULL; fp = fp->f_next) { 187 MOD_NAME(addr, fp->f_name); 188 MOD_TYPE(addr, fp->f_type); 189 if (fp->f_args) 190 MOD_ARGS(addr, fp->f_args); 191 MOD_ADDR(addr, fp 209 bi_load(struct preloaded_file *fp, uint64_t *bi_addr) argument [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | gpkgmap.c | 58 static int eatwhite(FILE *fp); 59 static int getend(FILE *fp); 60 static int getstr(FILE *fp, char *sep, int n, char *str); 61 static int getnum(FILE *fp, int base, long *d, long bad); 62 static int getlnum(FILE *fp, int base, fsblkcnt_t *d, long bad); 63 static int getvalmode(FILE *fp, mode_t *d, long bad, int map); 134 gpkgmap(struct cfent *ept, FILE *fp) argument 156 if (!fp) 159 c = eatwhite(fp); 190 c = getc(fp); 420 getvalmode(FILE *fp, mode_t *d, long bad, int map) argument 513 getnum(FILE *fp, int base, long *d, long bad) argument 542 getlnum(FILE *fp, int base, fsblkcnt_t *d, long bad) argument 577 getstr(FILE *fp, char *sep, int n, char *str) argument 606 getend(FILE *fp) argument 622 eatwhite(FILE *fp) argument [all...] |
/illumos-gate/usr/src/uts/intel/ia32/os/ |
H A D | archdep.c | 62 #include <sys/fp.h> 162 continue; /* valid fp number */ 167 fn->f_ftw |= 1 << (i << 1); /* fp zero */ 191 fpregset_to_fxsave(const fpregset_t *fp, struct fxsave_state *fx) argument 194 bcopy(fp, fx, sizeof (*fx)); 196 const struct _fpchip_state *fc = &fp->fp_reg_set.fpchip_state; 212 fxsave_to_fpregset(const struct fxsave_state *fx, fpregset_t *fp) argument 215 bcopy(fx, fp, sizeof (*fx)); 217 struct _fpchip_state *fc = &fp->fp_reg_set.fpchip_state; 227 fpregset32_to_fxsave(const fpregset32_t *fp, struc argument 240 fxsave_to_fpregset32(const struct fxsave_state *fx, fpregset32_t *fp) argument 274 setfpregs(klwp_t *lwp, fpregset_t *fp) argument 329 getfpregs(klwp_t *lwp, fpregset_t *fp) argument 418 setfpregs32(klwp_t *lwp, fpregset32_t *fp) argument 430 getfpregs32(klwp_t *lwp, fpregset32_t *fp) argument 853 struct frame *fp = (struct frame *)getfp(); local 1210 struct frame *fp = (struct frame *)fpreg; local 1302 struct frame *fp = (struct frame *)fpreg; local [all...] |
/illumos-gate/usr/src/tools/lintdump/ |
H A D | lintdump.c | 80 FILE *fp; local 112 fp = fopen(argv[i], "r"); 113 if (fp == NULL) { 125 for (mod = 1; fread(&hdr, sizeof (hdr), 1, fp) == 1; mod++) { 140 lsu_build(fp); 141 print_lintmod(lnname, fp, &hdr); 144 (void) fclose(fp); 154 print_lintmod(const char *lnname, FILE *fp, FLENS *hp) argument 172 print_pass(lnname, fp); 174 (void) fseek(fp, psize 183 print_pass(const char *lnname, FILE *fp) argument 458 lsu_build(FILE *fp) argument 520 getstr(FILE *fp, char *buf, size_t bufsize) argument [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_ng.c | 79 FILE *fp; member in struct:pvt 138 if (pvt->fp != NULL) 139 fclose(pvt->fp); 154 if (pvt->fp != NULL && fseek(pvt->fp, SEEK_CUR, 0L) == -1) { 155 fclose(pvt->fp); 156 pvt->fp = NULL; 159 if (pvt->fp == NULL || pvt->grouphead.gr == NULL || 162 if (pvt->fp != NULL) 163 fclose(pvt->fp); [all...] |
H A D | lcl_nw.c | 88 FILE * fp; member in struct:pvt 159 if (pvt->fp) 160 (void)fclose(pvt->fp); 206 if (pvt->fp) { 207 if (fseek(pvt->fp, 0L, SEEK_SET) == 0) 209 (void)fclose(pvt->fp); 211 if (!(pvt->fp = fopen(_PATH_NETWORKS, "r"))) 213 if (fcntl(fileno(pvt->fp), F_SETFD, 1) < 0) { 214 (void)fclose(pvt->fp); 215 pvt->fp [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getmntent.c | 48 static int getmntent_compat(FILE *fp, struct mnttab *mp); 107 getmntany_compat(FILE *fp, struct mnttab *mgetp, struct mnttab *mrefp) argument 128 while ((ret = getmntent_compat(fp, mgetp)) == 0 && 141 getmntany(FILE *fp, struct mnttab *mgetp, struct mnttab *mrefp) argument 191 switch (ret = ioctl(fileno(fp), MNTIOC_GETMNTANY, &embuf)) { 202 return (getmntany_compat(fp, mgetp, mrefp)); 223 getmntent_common(FILE *fp, struct extmnttab *emp, int command) argument 236 while ((ret = ioctl(fileno(fp), command, &embuf)) == MNTFS_TOOLONG) { 265 return (getmntent_compat(fp, (struct mnttab *)emp)); 272 getmntent(FILE *fp, struc argument 279 getextmntent(FILE *fp, struct extmnttab *emp, size_t len) argument 332 resetmnttab(FILE *fp) argument 344 getaline(char *lp, FILE *fp) argument 362 getmntent_compat(FILE *fp, struct mnttab *mp) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/intel/mdb/ |
H A D | mdb_ia32util.c | 206 uintptr_t fp = gsp->kregs[KREG_EBP]; local 224 while (fp != 0) { 225 if (fp & (STACK_ALIGN - 1)) { 229 if ((size = mdb_tgt_vread(t, &fr, sizeof (fr), fp)) >= 239 tortoise_fp = fp; 257 if (fp == tortoise_fp) { 270 lastfp = fp; 271 fp = fr.fr_savfp; 280 if ((fp != 0) && (fp < lastf 304 mdb_ia32_step_out(mdb_tgt_t *t, uintptr_t *p, kreg_t pc, kreg_t fp, kreg_t sp, mdb_instr_t curinstr) argument [all...] |
/illumos-gate/usr/src/lib/libbc/libc/crt/sparc/ |
H A D | misalign.s | 95 stb %o0,[%fp-4] 96 stb %o1,[%fp-3] 97 stb %o2,[%fp-2] 99 stb %o3,[%fp-1] 102 sth %o0,[%fp-4] 103 sth %o1,[%fp-2] 105 ld [%fp-4],%f0 ! load FPU reg, done 133 stb %o0,[%fp-8] 134 stb %o1,[%fp-7] 135 stb %o2,[%fp [all...] |
/illumos-gate/usr/src/cmd/genmsg/ |
H A D | util.c | 139 FILE *fp; local 154 if ((fp = fopen(file, mode)) == NULL) { 168 (void) fprintf(fp, "\n$quote %s\n\n", pquote); 184 (void) fprintf(fp, "\n"); 185 print_prefix(fp, "$ ", TRUE, 187 (void) fprintf(fp, "$set\t%d\n", 190 (void) fprintf(fp, "\n$set\t%d\n", 195 print_prefix(fp, "$ ", TRUE, 198 (void) fprintf(fp, "\n"); 210 (void) fprintf(fp, 389 print_prefix(FILE *fp, char *prefix, int rm_blank, char *str) argument 412 FILE *fp; local 456 FILE *fp; local 555 FILE *fp; local [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rw.c | 79 file_t *fp; local 90 if ((fp = getf(fdes)) == NULL) 92 if (((fflag = fp->f_flag) & FREAD) == 0) { 96 vp = fp->f_vnode; 115 error = nbl_svmand(vp, fp->f_cred, &svmand); 118 if (nbl_conflict(vp, NBL_READ, fp->f_offset, cnt, svmand, 130 * being done. Also, we load fp's offset to the local 138 fileoff = (u_offset_t)fp->f_offset; 139 if (fileoff >= OFFSET_MAX(fp) && (vp->v_type == VREG)) { 142 if ((error = VOP_GETATTR(vp, &va, 0, fp 215 file_t *fp; local 341 file_t *fp; local 481 file_t *fp; local 623 file_t *fp; local 781 file_t *fp; local 931 file_t *fp; local 1113 file_t *fp; local 1327 file_t *fp; local 1450 file_t *fp; local [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_consume.c | 527 dt_print_quanthdr(dtrace_hdl_t *dtp, FILE *fp, int width) argument 529 return (dt_printf(dtp, fp, "\n%*s %41s %-9s\n", 535 dt_print_quanthdr_packed(dtrace_hdl_t *dtp, FILE *fp, int width, argument 558 if (dt_printf(dtp, fp, "\n%*s %*s .", 563 if (dt_printf(dtp, fp, "-") < 0) 567 return (dt_printf(dtp, fp, ". %*s | count\n", -maxwidth, "max")); 584 dt_print_quantline_utf8(dtrace_hdl_t *dtp, FILE *fp, int64_t val, argument 595 if (dt_printf(dtp, fp, "|") < 0) 599 if (dt_printf(dtp, fp, "%c%c%c", 609 if (dt_printf(dtp, fp, " 623 dt_print_quantline(dtrace_hdl_t *dtp, FILE *fp, int64_t val, uint64_t normal, long double total, char positives, char negatives) argument 696 dt_print_packed(dtrace_hdl_t *dtp, FILE *fp, long double datum, long double total) argument 755 dt_print_quantize(dtrace_hdl_t *dtp, FILE *fp, const void *addr, size_t size, uint64_t normal) argument 811 dt_print_quantize_packed(dtrace_hdl_t *dtp, FILE *fp, const void *addr, size_t size, const dtrace_aggdata_t *aggdata) argument 853 dt_print_lquantize(dtrace_hdl_t *dtp, FILE *fp, const void *addr, size_t size, uint64_t normal) argument 932 dt_print_lquantize_packed(dtrace_hdl_t *dtp, FILE *fp, const void *addr, size_t size, const dtrace_aggdata_t *aggdata) argument 984 dt_print_llquantize(dtrace_hdl_t *dtp, FILE *fp, const void *addr, size_t size, uint64_t normal) argument 1100 dt_print_average(dtrace_hdl_t *dtp, FILE *fp, caddr_t addr, size_t size, uint64_t normal) argument 1112 dt_print_stddev(dtrace_hdl_t *dtp, FILE *fp, caddr_t addr, size_t size, uint64_t normal) argument 1124 dt_print_bytes(dtrace_hdl_t *dtp, FILE *fp, caddr_t addr, size_t nbytes, int width, int quiet, int forceraw) argument 1242 dt_print_stack(dtrace_hdl_t *dtp, FILE *fp, const char *format, caddr_t addr, int depth, int size) argument 1320 dt_print_ustack(dtrace_hdl_t *dtp, FILE *fp, const char *format, caddr_t addr, uint64_t arg) argument 1456 dt_print_usym(dtrace_hdl_t *dtp, FILE *fp, caddr_t addr, dtrace_actkind_t act) argument 1492 dt_print_umod(dtrace_hdl_t *dtp, FILE *fp, const char *format, caddr_t addr) argument 1535 dt_print_sym(dtrace_hdl_t *dtp, FILE *fp, const char *format, caddr_t addr) argument 1571 dt_print_mod(dtrace_hdl_t *dtp, FILE *fp, const char *format, caddr_t addr) argument 1788 dt_print_datum(dtrace_hdl_t *dtp, FILE *fp, dtrace_recdesc_t *rec, caddr_t addr, size_t size, const dtrace_aggdata_t *aggdata, uint64_t normal, dt_print_aggdata_t *pd) argument 1948 FILE *fp = pd->dtpa_fp; local 2087 dt_consume_cpu(dtrace_hdl_t *dtp, FILE *fp, int cpu, dtrace_bufdesc_t *buf, boolean_t just_one, dtrace_consume_probe_f *efunc, dtrace_consume_rec_f *rfunc, void *arg) argument 2727 dt_consume_begin(dtrace_hdl_t *dtp, FILE *fp, dtrace_consume_probe_f *pf, dtrace_consume_rec_f *rf, void *arg) argument 2872 dtrace_consume(dtrace_hdl_t *dtp, FILE *fp, dtrace_consume_probe_f *pf, dtrace_consume_rec_f *rf, void *arg) argument [all...] |