/illumos-gate/usr/src/uts/common/syscall/ |
H A D | ioctl.c | 63 file_t *fp; local 70 if ((fp = getf(fdes)) == NULL) 72 vp = fp->f_vnode; 92 error = VOP_GETATTR(vp, &vattr, 0, fp->f_cred, NULL); 97 offset = MIN(vattr.va_size - fp->f_offset, INT_MAX); 111 mutex_enter(&fp->f_tlock); 113 fp->f_flag |= FNDELAY; 115 fp->f_flag &= ~FNDELAY; 116 mutex_exit(&fp->f_tlock); 128 flag = fp [all...] |
/illumos-gate/usr/src/lib/libunistat/common/ |
H A D | spcs_log.c | 57 FILE *fp = NULL; local 74 if ((fp = fopen(sessionlog, "a")) == (FILE *)NULL) 81 if (fcntl(fileno(fp), F_SETLKW, &lk) < 0) 85 fprintf(fp, "%s %s: ", spcstime(), product); 86 (void) vfprintf(fp, format, ap); 87 fputs("\n", fp); 89 spcs_s_report(*status, fp); 91 fflush(fp); 95 (void) fcntl(fileno(fp), F_SETLKW, &lk); 98 if (fp) [all...] |
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_types.c | 31 ctf_get_ctt_size(const ctf_file_t *fp, const ctf_type_t *tp, ssize_t *sizep, argument 36 if (fp->ctf_version > CTF_VERSION_1 && 58 ctf_member_iter(ctf_file_t *fp, ctf_id_t type, ctf_member_f *func, void *arg) argument 60 ctf_file_t *ofp = fp; 66 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) 69 if ((tp = ctf_lookup_by_id(&fp, type)) == NULL) 72 (void) ctf_get_ctt_size(fp, tp, &size, &increment); 73 kind = LCTF_INFO_KIND(fp, tp->ctt_info); 78 if (fp->ctf_version == CTF_VERSION_1 || size < CTF_LSTRUCT_THRESH) { 82 for (n = LCTF_INFO_VLEN(fp, t 109 ctf_enum_iter(ctf_file_t *fp, ctf_id_t type, ctf_enum_f *func, void *arg) argument 145 ctf_type_iter(ctf_file_t *fp, ctf_type_f *func, void *arg) argument 168 ctf_type_resolve(ctf_file_t *fp, ctf_id_t type) argument 201 ctf_type_qlname(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len, const char *qname) argument 315 ctf_type_lname(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len) argument 325 ctf_type_name(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len) argument 332 ctf_type_qname(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len, const char *qname) argument 345 ctf_type_size(ctf_file_t *fp, ctf_id_t type) argument 394 ctf_type_align(ctf_file_t *fp, ctf_id_t type) argument 458 ctf_type_kind(ctf_file_t *fp, ctf_id_t type) argument 473 ctf_type_reference(ctf_file_t *fp, ctf_id_t type) argument 501 ctf_type_pointer(ctf_file_t *fp, ctf_id_t type) argument 528 ctf_type_encoding(ctf_file_t *fp, ctf_id_t type, ctf_encoding_t *ep) argument 651 ctf_member_info(ctf_file_t *fp, ctf_id_t type, const char *name, ctf_membinfo_t *mip) argument 702 ctf_array_info(ctf_file_t *fp, ctf_id_t type, ctf_arinfo_t *arp) argument 730 ctf_enum_name(ctf_file_t *fp, ctf_id_t type, int value) argument 767 ctf_enum_value(ctf_file_t *fp, ctf_id_t type, const char *name, int *valp) argument 810 ctf_type_rvisit(ctf_file_t *fp, ctf_id_t type, ctf_visit_f *func, void *arg, const char *name, ulong_t offset, int depth) argument 867 ctf_type_visit(ctf_file_t *fp, ctf_id_t type, ctf_visit_f *func, void *arg) argument [all...] |
H A D | ctf_create.c | 60 ctf_file_t *fp; local 73 if ((fp = ctf_bufopen(&cts, NULL, NULL, errp)) == NULL) { 78 fp->ctf_flags |= LCTF_RDWR; 79 fp->ctf_dthashlen = hashlen; 81 fp->ctf_dthash = hash; 82 fp->ctf_dtstrlen = sizeof (_CTF_STRTAB_TEMPLATE); 83 fp->ctf_dtnextid = 1; 84 fp->ctf_dtoldid = 0; 86 return (fp); 184 ctf_ref_inc(ctf_file_t *fp, ctf_id_ argument 202 ctf_ref_dec(ctf_file_t *fp, ctf_id_t tid) argument 236 ctf_update(ctf_file_t *fp) argument 470 ctf_dtd_insert(ctf_file_t *fp, ctf_dtdef_t *dtd) argument 480 ctf_dtd_delete(ctf_file_t *fp, ctf_dtdef_t *dtd) argument 550 ctf_dtd_lookup(ctf_file_t *fp, ctf_id_t type) argument 575 ctf_discard(ctf_file_t *fp) argument 600 ctf_add_generic(ctf_file_t *fp, uint_t flag, const char *name, ctf_dtdef_t **rp) argument 660 ctf_add_encoded(ctf_file_t *fp, uint_t flag, const char *name, const ctf_encoding_t *ep, uint_t kind) argument 680 ctf_add_reftype(ctf_file_t *fp, uint_t flag, ctf_id_t ref, uint_t kind) argument 700 ctf_add_integer(ctf_file_t *fp, uint_t flag, const char *name, const ctf_encoding_t *ep) argument 707 ctf_add_float(ctf_file_t *fp, uint_t flag, const char *name, const ctf_encoding_t *ep) argument 714 ctf_add_pointer(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument 720 ctf_add_array(ctf_file_t *fp, uint_t flag, const ctf_arinfo_t *arp) argument 752 ctf_set_array(ctf_file_t *fp, ctf_id_t type, const ctf_arinfo_t *arp) argument 784 ctf_add_function(ctf_file_t *fp, uint_t flag, const ctf_funcinfo_t *ctc, const ctf_id_t *argv) argument 841 ctf_add_struct(ctf_file_t *fp, uint_t flag, const char *name) argument 863 ctf_add_union(ctf_file_t *fp, uint_t flag, const char *name) argument 885 ctf_add_enum(ctf_file_t *fp, uint_t flag, const char *name) argument 907 ctf_add_forward(ctf_file_t *fp, uint_t flag, const char *name, uint_t kind) argument 946 ctf_add_typedef(ctf_file_t *fp, uint_t flag, const char *name, ctf_id_t ref) argument 968 ctf_add_volatile(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument 974 ctf_add_const(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument 980 ctf_add_restrict(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument 986 ctf_add_enumerator(ctf_file_t *fp, ctf_id_t enid, const char *name, int value) argument 1042 ctf_add_member(ctf_file_t *fp, ctf_id_t souid, const char *name, ctf_id_t type) argument 1151 ctf_delete_type(ctf_file_t *fp, ctf_id_t type) argument [all...] |
H A D | ctf_error.c | 97 ctf_errno(ctf_file_t *fp) argument 99 return (fp->ctf_errno);
|
/illumos-gate/usr/src/cmd/filesync/ |
H A D | base.c | 172 { struct file *fp, *new; local 189 fp = new->f_next; 191 if (fp == 0) { 197 if (strcmp(name, fp->f_name) == 0) { 198 fp->f_flags &= ~F_NEW; 199 new = fp; 210 for (fp = *pp; fp; pp = &fp->f_next, fp 265 { struct file *fp; local 295 { struct file *fp; local 338 struct file *fp; local 765 { struct file *fp; local 807 bw_file(FILE *file, struct file *fp, int depth) argument [all...] |
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | vfscanf.c | 100 ** fp -- file pointer for input data 111 sm_vfscanf(fp, timeout, fmt0, ap) 112 register SM_FILE_T *fp; 125 int nread; /* number of characters consumed from fp */ 139 timeout = fp->f_timeout; 177 while ((fp->f_r > 0 || sm_refill(fp, SM_TIME_FOREVER) 179 isspace(*fp->f_p)) 180 nread++, fp->f_r--, fp [all...] |
H A D | t-smstdio.c | 25 SM_FILE_T *fp; local 36 fp = sm_io_stdioopen(stream, "w"); 37 SM_TEST(fp != NULL); 39 (void) sm_io_fprintf(fp, SM_TIME_DEFAULT, "%s", testmsg); 40 sm_io_close(fp, SM_TIME_DEFAULT); 55 fp = sm_io_stdioopen(stream, "r"); 56 SM_TEST(fp != NULL); 58 n = sm_io_read(fp, SM_TIME_DEFAULT, buf, sizeof(buf));
|
H A D | fwrite.c | 29 ** fp -- file pointer writing to 41 sm_io_write(fp, timeout, buf, size) 42 SM_FILE_T *fp; 50 SM_REQUIRE_ISA(fp, SmFileMagic); 52 if (fp->f_write == NULL) 64 if (sm_fvwrite(fp, timeout, &uio) == 0)
|
H A D | put.c | 34 ** fp -- file to output to 47 sm_io_putc(fp, timeout, c) 48 SM_FILE_T *fp; 52 SM_REQUIRE_ISA(fp, SmFileMagic); 53 if (cantwrite(fp)) 58 return sm_putc(fp, timeout, c);
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_2xml.c | 46 print_header(FILE *fp) argument 52 (void) fprintf(fp, "<?xml version=\"%s\"?>\n", XML_VERSION); 53 (void) fprintf(fp, "<!DOCTYPE topology SYSTEM \"%s\">\n", 58 (void) fprintf(fp, "<!--\n"); 59 (void) fprintf(fp, " This topology map file was generated on " 61 (void) fprintf(fp, "<-->\n\n"); 65 begin_element(FILE *fp, const char *ename, ...) argument 70 (void) fprintf(fp, "<%s ", ename); 75 (void) fprintf(fp, "%s='%s' ", name, value); 78 (void) fprintf(fp, ">\ 82 begin_end_element(FILE *fp, const char *ename, ...) argument 99 end_element(FILE *fp, const char *ename) argument 105 txml_print_prop(topo_hdl_t *thp, FILE *fp, tnode_t *node, const char *pgname, topo_propval_t *pv) argument 230 txml_print_pgroup(topo_hdl_t *thp, FILE *fp, tnode_t *node, topo_pgroup_t *pg) argument 250 txml_print_dependents(topo_hdl_t *thp, FILE *fp, tnode_t *node) argument 260 txml_print_node(topo_hdl_t *thp, FILE *fp, tnode_t *node) argument 277 txml_print_range(topo_hdl_t *thp, FILE *fp, tnode_t *node, int dependent) argument 317 txml_print_topology(topo_hdl_t *thp, FILE *fp, char *scheme, tnode_t *node) argument 334 topo_xml_print(topo_hdl_t *thp, FILE *fp, const char *scheme, int *err) argument [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_dis.c | 41 dt_dis_log(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 43 (void) fprintf(fp, "%-4s %%r%u, %%r%u, %%r%u", name, 50 dif_instr_t in, FILE *fp) 52 (void) fprintf(fp, "%-4s %u", name, DIF_INSTR_LABEL(in)); 57 dt_dis_load(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 59 (void) fprintf(fp, "%-4s [%%r%u], %%r%u", name, 66 dif_instr_t in, FILE *fp) 68 (void) fprintf(fp, "%-4s %%r%u, [%%r%u]", name, 74 dt_dis_str(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 76 (void) fprintf(fp, " 49 dt_dis_branch(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 65 dt_dis_store(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 81 dt_dis_r1rd(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 89 dt_dis_cmp(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 97 dt_dis_tst(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 131 dt_dis_lda(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 144 dt_dis_ldv(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 157 dt_dis_stv(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 170 dt_dis_setx(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 184 dt_dis_sets(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 197 dt_dis_ret(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 204 dt_dis_call(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 214 dt_dis_pushts(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 238 dt_dis_xlate(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) argument 329 dt_dis_rtab(const char *rtag, const dtrace_difo_t *dp, FILE *fp, const dof_relodesc_t *rp, uint32_t len) argument 344 dt_dis(const dtrace_difo_t *dp, FILE *fp) argument [all...] |
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | head.c | 75 register Sfio_t* fp; local 129 fp = sfstdin; 130 sfset(fp, SF_SHARE, 1); 132 else if (!(fp = sfopen(NiL, cp, "r"))) 141 sfmove(fp, NiL, skip, delim); 142 if (sfmove(fp, sfstdout, keep, delim) < 0 && errno != EPIPE) 144 if (fp != sfstdin) 145 sfclose(fp);
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/privs/ |
H A D | tst.getf.ksh | 31 BEGIN { this->fp = getf(0); errmsg = "can't read field"; \ 32 printf("field: "); trace(this->fp->field); printf("\n"); } 35 BEGIN { errmsg = ""; this->fp = getf(0); trace(this->fp->field); \ 66 this->fp = getf(0); 69 trace(this->fp->f_vnode); 70 printf("\nable to successfully read this->fp!"); 77 this->fp = getf(0); 82 trace(this->fp->f_vnode); 83 printf("\nable to successfully read this->fp fro [all...] |
/illumos-gate/usr/src/cmd/ipf/lib/common/ |
H A D | addicmp.c | 24 int addicmp(cp, fp, linenum) 26 struct frentry *fp; 35 if (!fp->fr_proto) /* to catch lusers */ 36 fp->fr_proto = IPPROTO_ICMP; 62 fp->fr_icmp = (u_short)(i << 8); 63 fp->fr_icmpm = (u_short)0xff00; 88 fp->fr_icmp |= (u_short)i; 89 fp->fr_icmpm = (u_short)0xffff;
|
/illumos-gate/usr/src/boot/lib/libc/string/ |
H A D | memccpy.c | 44 const unsigned char *fp = f; local 47 if ((*tp++ = *fp++) == uc)
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_config.c | 50 * Reads from fp and dynamically reallocates the buffer if necessary. 53 static int super_fgets(char **buf, size_t *bufsize, FILE *fp) { argument 60 r = fgets(p, (int)real_bufsize, fp); 61 if (feof(fp) && !r) 97 FILE *fp; local 101 fp = NULL; 103 fp = fopen(cfile, "rF"); 104 if (!fp) 105 if (!(fp = fopen(SLP_DEFAULT_CONFIG_FILE, "rF"))) { 113 (void) fclose(fp); [all...] |
/illumos-gate/usr/src/lib/libwrap/ |
H A D | rfc931.c | 55 FILE *fp; local 61 if ((fp = fdopen(s, "r+")) == 0) { 65 return (fp); 92 FILE *fp; local 106 if ((fp = fsocket(SGFAM(rmt_sin), SOCK_STREAM, 0)) != 0) { 107 setbuf(fp, (char *) 0); 146 if (bind(fileno(fp), (struct sockaddr *) &our_query_sin, 148 connect(fileno(fp), (struct sockaddr *) &rmt_query_sin, 157 fprintf(fp, "%u,%u\r\n", 160 fflush(fp); [all...] |
/illumos-gate/usr/src/lib/libnsl/saf/ |
H A D | doconfig.c | 76 FILE *fp; /* file pointer for config script */ local 85 fp = fopen(script, "rF"); 86 if (fp == NULL) 90 while (fgets(buf, BUFSIZ, fp)) { 95 (void) fclose(fp); 127 (void) fclose(fp); 132 (void) fclose(fp); 137 (void) fclose(fp); 142 (void) fclose(fp); 147 (void) fclose(fp); [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | loadsave.c | 418 #define READ_TOKEN_INFO_STR(fp, rec, reclen) rc = fread(rec, reclen, 1, fp); \ 421 #define READ_TOKEN_INFO_UINT32(fp, rec) rc = fread(&fieldval, \ 422 sizeof (UINT32), 1, fp); \ 429 FILE *fp; local 445 fp = fopen((char *)fname, "r"); 446 if (!fp) { 464 fp = fopen((char *)fname, "r"); 465 if (!fp) { 477 if (lockfile(fileno(fp), F_RDLC 544 FILE *fp; local 621 FILE *fp = NULL; local 684 FILE *fp = NULL; local 741 FILE *fp = NULL; local 1106 FILE *fp = NULL; local [all...] |
/illumos-gate/usr/src/lib/libc/sparc/unwind/ |
H A D | unwind_frame.s | 37 * Unwind two frames and invoke _t_cancel(fp) again. 41 * (as if "call f1" is replaced by "call _t_cancel(fp)" in f2) 46 ba _t_cancel ! tailcall _t_cancel(fp) 47 mov %fp, %o0 ! passing the frame pointer 55 * restored frame, then jump to _t_cancel(fp) again from the restored frame. 64 ba _t_cancel ! tailcall _t_cancel(fp) 65 mov %fp, %o0 ! passing the frame pointer 71 * Ignore the argument; jump to _t_cancel(fp) with caller's fp 74 ba _t_cancel ! tailcall _t_cancel(fp) [all...] |
/illumos-gate/usr/src/ucblib/libcurses/ |
H A D | box.c | 36 char *fp, *lp; local 40 fp = win->_y[0]; 43 fp[i] = lp[i] = hor; 48 fp[0] = fp[endx] = lp[0] = lp[endx] = ' ';
|
/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_kclose.c | 67 file_t *fp; local 69 fp = (tiptr->flags & MADE_FP) ? tiptr->fp : NULL; 73 if (fp != NULL) 74 (void) closef(fp);
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 43 * fp = zonecfg_open_scratch("", B_TRUE); 44 * zonecfg_lock_scratch(fp); 45 * if (zonecfg_find_scratch(fp, zonename, altroot, NULL, 0) == 0) { 49 * zonecfg_add_scratch(fp, zonename, kernname, altroot); 50 * zonecfg_close_scratch(fp); 51 * fp = zonecfg_open_scratch(zoneroot, B_TRUE); 52 * ftruncate(fileno(fp), 0); 53 * zonecfg_add_scratch(fp, zonename, kernname, "/"); 54 * zonecfg_close_scratch(fp); 88 FILE *fp; local 134 zonecfg_lock_scratch(FILE *fp) argument 142 zonecfg_close_scratch(FILE *fp) argument 148 zonecfg_get_scratch(FILE *fp, char *zonename, size_t namelen, char *kernname, size_t kernlen, char *altroot, size_t altlen) argument 183 zonecfg_find_scratch(FILE *fp, const char *zonename, const char *altroot, char *kernzone, size_t kernlen) argument 199 zonecfg_reverse_scratch(FILE *fp, const char *kernzone, char *zonename, size_t namelen, char *altroot, size_t altlen) argument 214 zonecfg_add_scratch(FILE *fp, const char *zonename, const char *kernzone, const char *altroot) argument 227 zonecfg_delete_scratch(FILE *fp, const char *kernzone) argument [all...] |
/illumos-gate/usr/src/cmd/fm/fmdump/common/ |
H A D | fault.c | 32 flt_short(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) argument 65 fmdump_printf(fp, "%-20s %-32s %s\n", 72 flt_verb1(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) argument 78 (void) flt_short(lp, rp, fp); 114 fmdump_printf(fp, " %3u%% %s", 118 fmdump_printf(fp, "\n\n"); 120 fmdump_printf(fp, "\tRemoved\n\n"); 122 fmdump_printf(fp, "\tReplaced\n\n"); 124 fmdump_printf(fp, "\tRepair Attempted\n\n"); 126 fmdump_printf(fp, "\tAcquitte 151 flt_verb23_cmn(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp, nvlist_prtctl_t pctl) argument 200 flt_verb2(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) argument 207 flt_pretty(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) argument 250 flt_msg(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) argument [all...] |