Home
last modified time | relevance | path

Searched refs:fp (Results 101 – 125 of 1263) sorted by relevance

12345678910>>...51

/illumos-gate/usr/src/cmd/saf/
H A Dpmadm.c427 if (fp == NULL) {
441 (void) fclose(fp);
560 if (fp == NULL) {
574 if (fp == NULL) {
652 if (fp == NULL) {
666 if (fp == NULL) {
790 if (fp == NULL) {
958 rewind(fp); in list_svcs()
1054 if (!feof(fp)) { in find_svc()
1294 FILE *fp; in find_type()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dioctl.c61 file_t *fp; in ioctl() local
68 if ((fp = getf(fdes)) == NULL) in ioctl()
70 vp = fp->f_vnode; in ioctl()
109 mutex_enter(&fp->f_tlock); in ioctl()
111 fp->f_flag |= FNDELAY; in ioctl()
113 fp->f_flag &= ~FNDELAY; in ioctl()
114 mutex_exit(&fp->f_tlock); in ioctl()
138 mutex_enter(&fp->f_tlock); in ioctl()
140 fp->f_flag |= FNDELAY; in ioctl()
142 fp->f_flag &= ~FNDELAY; in ioctl()
[all …]
/illumos-gate/usr/src/cmd/ttymon/
H A Dsttydefs.c222 FILE *fp; in add_entry() local
241 (void) fclose(fp); in add_entry()
248 (void) fclose(fp); in add_entry()
287 (void) fclose(fp); in add_entry()
304 if (fp == NULL) { in remove_entry()
330 (void) fclose(fp); in remove_entry()
371 fp = fopen(tname, "w"); in open_temp()
372 if (fp == NULL) { in open_temp()
376 return (fp); in open_temp()
400 rewind(fp); in copy_file()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A DPidle.c162 file_info_t *fp = NULL; in Pgrab_file() local
215 (void) strncpy(fp->file_pname, fname, sizeof (fp->file_pname)); in Pgrab_file()
219 if (getcwd(fp->file_pname, sizeof (fp->file_pname) - 1) == in Pgrab_file()
225 sz = strlen(fp->file_pname); in Pgrab_file()
230 fp->file_fd = fd; in Pgrab_file()
231 fp->file_dbgfile = -1; in Pgrab_file()
233 if ((fp->file_lname = strdup(fp->file_pname)) == NULL) { in Pgrab_file()
237 fp->file_lbase = basename(fp->file_lname); in Pgrab_file()
245 list_insert_head(&P->file_head, fp); in Pgrab_file()
282 P->map_exec = fp->file_map; in Pgrab_file()
[all …]
/illumos-gate/usr/src/boot/i386/libi386/
H A Dmultiboot.c104 struct preloaded_file *fp; in multiboot_loadfile() local
111 if (fp != NULL) { in multiboot_loadfile()
183 fp = file_alloc(); in multiboot_loadfile()
184 if (fp == NULL) { in multiboot_loadfile()
192 if (fp->f_size == 0) { in multiboot_loadfile()
193 file_discard(fp); in multiboot_loadfile()
197 fp->f_metadata = NULL; in multiboot_loadfile()
209 bios_addsmapdata(fp); in multiboot_loadfile()
210 *result = fp; in multiboot_loadfile()
283 entry = fp->f_addr; in multiboot_exec()
[all …]
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dpass1.c97 struct file_entry *fp; in pass1() local
140 end = fp->fe_info_len; in pass1()
142 opndir(fp); in pass1()
169 ckinode(fp); in pass1()
214 dir_adrlist = (uint8_t *)(fp->fe_spec + fp->fe_len_ear); in opndir()
219 dir_adrlist = (uint8_t *)(fp->fe_spec + fp->fe_len_ear); in opndir()
229 dir_fidp = (uint8_t *)(fp->fe_spec + fp->fe_len_ear); in opndir()
476 sap = (short_ad_t *)(fp->fe_spec + fp->fe_len_ear); in ckinode()
500 lap = (long_ad_t *)(fp->fe_spec + fp->fe_len_ear); in ckinode()
565 char *bp, *fp; in dofreemap() local
[all …]
/illumos-gate/usr/src/cmd/filesync/
H A Daction.c135 bp = fp->f_base; in do_like()
139 fp->f_flags |= F_CONFLICT; in do_like()
162 do_acls = ((fp->f_srcdiffs|fp->f_dstdiffs) & D_FACLS); in do_like()
339 link_update(fp, srcdst); in do_like()
347 fp->f_problem = errstr; in do_like()
360 fp->f_problem = 0; in do_like()
412 bp = fp->f_base; in do_copy()
764 errstr = fp->f_problem; in do_copy()
820 fp->f_problem = errstr; in do_copy()
913 fp->f_problem = errstr; in do_remove()
[all …]
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kopen.c94 if (fp == NULL) { in t_kopen()
112 crfree(fp->f_cred); in t_kopen()
113 fp->f_cred = cr; in t_kopen()
132 unfalloc(fp); in t_kopen()
144 fp->f_vnode = vp; in t_kopen()
149 vp = fp->f_vnode; in t_kopen()
154 (void) closef(fp); in t_kopen()
163 ntiptr->fp = fp; in t_kopen()
176 (void) closef(fp); in t_kopen()
222 (void) closef(fp); in t_kopen()
[all …]
/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Derror.c32 err_short(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) in err_short() argument
36 fmdump_printf(fp, "%-20s %-32s\n", in err_short()
44 err_verb1(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) in err_verb1() argument
51 fmdump_printf(fp, "%-20s %-37s 0x%016llx\n", in err_verb1()
64 fmdump_printf(fp, "%-20s.%9.9llu %s\n", in err_verb23_cmn()
70 nvlist_print(fp, rp->rec_nvl); in err_verb23_cmn()
72 fmdump_printf(fp, "\n"); in err_verb23_cmn()
77 err_verb2(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) in err_verb2() argument
79 return (err_verb23_cmn(lp, rp, fp, NULL)); in err_verb2()
89 nvlist_prtctl_setdest(pctl, fp); in err_pretty()
[all …]
H A Dinfo.c32 info_short(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) in info_short() argument
36 fmdump_printf(fp, "%-20s %-32s\n", in info_short()
44 info_verb1(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) in info_verb1() argument
51 fmdump_printf(fp, "%-20s %-36s %s\n", in info_verb1()
67 fmdump_printf(fp, "%-20s.%9.9llu %s\n", in info_verb23_cmn()
73 nvlist_print(fp, rp->rec_nvl); in info_verb23_cmn()
75 fmdump_printf(fp, "\n"); in info_verb23_cmn()
80 info_verb2(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) in info_verb2() argument
82 return (info_verb23_cmn(lp, rp, fp, NULL)); in info_verb2()
92 nvlist_prtctl_setdest(pctl, fp); in info_pretty()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dflt.c95 FLT *fp; in del_flt_act() local
105 fp = f->next; in del_flt_act()
107 free_flt(fp); in del_flt_act()
118 FLT *fp; in do_flt_acts() local
129 fp = f->next; in do_flt_acts()
132 switch (fp->type) in do_flt_acts()
137 while(fp->i1--) in do_flt_acts()
139 (void) snprintf(id, sizeof (id), "%s-%d", fp->s1, fp->i1); in do_flt_acts()
164 putrequest(fp->r1->req_file, fp->r1->request); in do_flt_acts()
165 if (NEEDS_FILTERING(fp->r1)) in do_flt_acts()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dnvtree.c74 while(fp=fp->next) in create_tree()
76 if(fp->disc && fp->disc->createf) in create_tree()
137 for(fp=np->nvfun;fp;fp=fp->next) in nextdisc()
139 if(fp && fp->disc && fp->disc->nextf) in nextdisc()
384 for(fp=fp->next;fp;fp=fp->next) in outtype()
386 if(fp->type || (fp->disc && fp->disc->typef &&(*fp->disc->typef)(np,fp))) in outtype()
421 for(fp=np->nvfun;fp;fp=fp->next) in nv_attribute()
423 if((typep=fp->type) || (fp->disc && fp->disc->typef && (typep=(*fp->disc->typef)(np,fp)))) in nv_attribute()
730 fp = nv_stack(np,fp); in outval()
1096 for(; fp && fp->next; fp=fp->next) in nv_getvtree()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dif.c68 if_dump2(FILE *fp) in if_dump2() argument
90 (void) fprintf(fp, "interface %s:\n", in if_dump2()
93 (void) fprintf(fp, "\tflags "); in if_dump2()
98 (void) fprintf(fp, "%c%s", c, p->t_name); in if_dump2()
105 (void) fprintf(fp, " 0"); in if_dump2()
107 (void) fprintf(fp, "\n\tpackets received %d\n", in if_dump2()
114 (void) fprintf(fp, "\tlocal %s\n", in if_dump2()
117 (void) fprintf(fp, "\tremote %s\n", in if_dump2()
121 (void) fprintf(fp, "\tprefix %s/%d\n", in if_dump2()
127 (void) fprintf(fp, "\tmtu %d\n", ifp->int_mtu); in if_dump2()
[all …]
/illumos-gate/usr/src/lib/libwrap/
H A Drfc931.c49 FILE *fp; local
55 if ((fp = fdopen(s, "r+")) == 0) {
59 return (fp);
86 FILE *fp; local
101 setbuf(fp, NULL);
142 connect(fileno(fp), (struct sockaddr *) &rmt_query_sin,
151 fprintf(fp, "%u,%u\r\n",
154 fflush(fp);
163 if (fgets(buffer, sizeof(buffer), fp) != 0
164 && ferror(fp) == 0 && feof(fp) == 0
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dgpkgmap.c162 if (!fp) in gpkgmap()
165 c = eatwhite(fp); in gpkgmap()
196 c = getc(fp); in gpkgmap()
229 c = getc(fp); in gpkgmap()
279 c = getc(fp); in gpkgmap()
540 c = getc(fp); in getnum()
569 c = getc(fp); in getlnum()
600 c = getc(fp); in getstr()
611 getend(FILE *fp) in getend() argument
632 if (feof(fp)) in eatwhite()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dsystat.c47 register FILE *fp; local
59 fp = fopen(filename, "r");
60 if (fp != NULL) {
68 fclose(fp);
113 fp = fopen(filename, "w");
115 if (fp == NULL) {
122 (void) fclose(fp);
137 register FILE *fp; local
146 if (fp == NULL)
152 fclose(fp);
[all …]
/illumos-gate/usr/src/lib/libproc/i386/
H A DPisadep.c51 file_info_t *fp; in Ppltdest() local
57 pltaddr - fp->file_plt_base >= fp->file_plt_size) { in Ppltdest()
204 long fp; in Pstack_iter() member
211 prgreg_t fp, pfp; in Pstack_iter() local
220 long fp; in Pstack_iter() member
234 fp = regs[R_FP]; in Pstack_iter()
241 if (fp != 0 && in Pstack_iter()
264 gregs[R_FP] = fp; in Pstack_iter()
277 fp = gregs[R_FP]; in Pstack_iter()
282 pfp = fp; in Pstack_iter()
[all …]
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dgetwin.c52 get_cc(WINDOW *w, char *mbs, FILE *fp) in get_cc() argument
61 if (fscanf(fp, "%[^\n]%n ", mbs, &n) < 1) in get_cc()
76 getwin(FILE *fp) in getwin() argument
94 by = fscanf(fp, in getwin()
108 while (get_cc(w, mbs, fp)) in getwin()
122 rewind(fp); in getwin()
129 char *mbs, int len, FILE *fp) in put_cc() argument
161 putwin(WINDOW *w, FILE *fp) in putwin() argument
171 (void) fprintf(fp, in putwin()
174 (void) fprintf(fp, in putwin()
[all …]
/illumos-gate/usr/src/cmd/gss/gsscred/
H A Dgsscred_file.c69 FILE *fp; in file_addGssCredEntry() local
82 (void) fprintf(fp, in file_addGssCredEntry()
84 (void) fclose(fp); in file_addGssCredEntry()
101 FILE *fp; in file_getGssCredEntry() local
129 (void) fclose(fp); in file_getGssCredEntry()
145 FILE *fp; in file_getGssCredUid() local
159 (void) fclose(fp); in file_getGssCredUid()
174 FILE *fp, *tempFp; in file_deleteGssCredEntry() local
193 (void) fclose(fp); in file_deleteGssCredEntry()
219 (void) fclose(fp); in file_deleteGssCredEntry()
[all …]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_dtime.c198 if (!fp || !line) in getaline()
377 if (!fp) in put_ddlevel()
394 if (!fp) in put_ddate()
588 FILE *fp; in initdumptimes() local
597 if (!fp) { in initdumptimes()
609 if (!fp) { in initdumptimes()
616 if (!fp) { in initdumptimes()
624 (void) fclose(fp); in initdumptimes()
746 FILE *fp; in append_dumptime() local
773 if (fp) { in append_dumptime()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfget.c45 sm_io_fgets(fp, timeout, buf, n)
46 register SM_FILE_T *fp;
55 SM_REQUIRE_ISA(fp, SmFileMagic);
64 if ((len = fp->f_r) <= 0)
72 if (sm_refill(fp, timeout) != 0)
79 len = fp->f_r;
81 p = fp->f_p;
96 fp->f_r -= len;
97 fp->f_p = t;
102 fp->f_r -= len;
[all …]
/illumos-gate/usr/src/common/fs/
H A Dbootfsops.c139 bfile_t *fp; in bbootfs_init() local
174 fp->bf_size = (size_t)propval; in bbootfs_init()
175 fp->bf_ino = i; in bbootfs_init()
177 fp->bf_next = head; in bbootfs_init()
178 head = fp; in bbootfs_init()
189 bfile_t *fp; in bbootfs_open() local
200 for (fp = head; fp != NULL; fp = fp->bf_next) { in bbootfs_open()
205 if (fp == NULL) in bbootfs_open()
210 fds[i].fd_file = fp; in bbootfs_open()
306 bfile_t *fp; in bbootfs_closeall() local
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dbf.c99 SM_FILE_T *fp; in sm_bfopen()
264 SM_FILE_T *fp; in sm_bfgetinfo()
299 sm_bfclose(fp) in sm_bfclose() argument
300 SM_FILE_T *fp; in sm_bfclose()
342 SM_FILE_T *fp; in sm_bfread()
438 SM_FILE_T *fp; in sm_bfseek()
487 SM_FILE_T *fp; in sm_bfwrite()
643 bfrewind(fp) in bfrewind() argument
644 SM_FILE_T *fp; in bfrewind()
672 sm_bfcommit(fp) in sm_bfcommit() argument
[all …]
/illumos-gate/usr/src/lib/libproc/amd64/
H A DPisadep.c51 file_info_t *fp; in Ppltdest() local
57 pltaddr - fp->file_plt_base >= fp->file_plt_size) { in Ppltdest()
266 prgreg32_t fp; in Pstack_iter32() member
283 prgreg32_t fp; in Pstack_iter32() member
304 if (fp != 0 && in Pstack_iter32()
349 pfp = fp; in Pstack_iter32()
350 fp = frame.fp; in Pstack_iter32()
500 uintptr_t fp; in Pstack_iter() member
524 prgreg_t fp; in Pstack_iter() member
570 pfp = fp; in Pstack_iter()
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_consume.c565 if (dt_printf(dtp, fp, "-") < 0) in dt_print_quanthdr_packed()
597 if (dt_printf(dtp, fp, "|") < 0) in dt_print_quantline_utf8()
601 if (dt_printf(dtp, fp, "%c%c%c", in dt_print_quantline_utf8()
611 if (dt_printf(dtp, fp, "%c%c%c", in dt_print_quantline_utf8()
1231 if (dt_printf(dtp, fp, "%c", in dt_print_bytes()
1860 fp, addr, size, aggdata)); in dt_print_datum()
1950 FILE *fp = pd->dtpa_fp; in dt_print_aggs() local
2192 if (fp == NULL) in dt_consume_cpu()
2195 (void) fflush(fp); in dt_consume_cpu()
2439 pd.dtpa_fp = fp; in dt_consume_cpu()
[all …]

12345678910>>...51