Searched defs:fp (Results 126 - 150 of 1010) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_vcb.c158 mdb_vcb_insert(mdb_vcb_t *vcb, mdb_frame_t *fp) argument
160 if (fp->f_pcmd != NULL) {
161 mdb_cmd_t *cp = fp->f_pcmd;
173 mdb_vcb_update(struct mdb_frame *fp, uintptr_t value) argument
177 for (vcb = fp->f_pcmd->c_vcbs; vcb != NULL; vcb = vcb->vc_link) {
189 mdb_vcb_find(mdb_var_t *var, mdb_frame_t *fp) argument
193 if (fp->f_pcmd != NULL) {
194 vcb = fp->f_pcmd->c_vcbs;
H A Dmdb_wcb.c95 mdb_wcb_insert(mdb_wcb_t *wcb, mdb_frame_t *fp) argument
102 wcb->w_link = fp->f_wcbs;
103 fp->f_wcbs = wcb;
107 mdb_wcb_delete(mdb_wcb_t *wcb, mdb_frame_t *fp) argument
109 mdb_wcb_t **pp = &fp->f_wcbs;
116 for (w = fp->f_wcbs; w != NULL; pp = &w->w_link, w = w->w_link) {
/illumos-gate/usr/src/cmd/dumpadm/
H A Dminfree.c58 FILE *fp = minfree_open(dir, O_RDONLY, "r"); local
60 if (fp != NULL) {
64 if (fgets(buf, BUFSIZ, fp) != NULL) {
72 (void) fclose(fp);
82 FILE *fp = minfree_open(dir, O_WRONLY | O_CREAT | O_TRUNC, "w"); local
84 if (fp != NULL) {
85 int status = fprintf(fp, "%llu\n", ull);
86 (void) fclose(fp);
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Deftwrite.c84 FILE *fp = (FILE *)arg; local
86 (void) fwrite(s, strlen(s) + 1, 1, fp);
93 FILE *fp = (FILE *)arg; local
95 (void) fwrite(s, strlen(s) + 1, 1, fp);
101 FILE *fp; local
140 if ((fp = fopen(fname, "w")) == NULL)
162 (void) fwrite(&hdr, sizeof (hdr), 1, fp);
163 if (ferror(fp))
167 lut_walk(Ident, (lut_cb)ident_printer, (void *)fp);
169 lut_walk(Dicts, (lut_cb)dict_printer, (void *)fp);
[all...]
/illumos-gate/usr/src/cmd/rpcbind/
H A Dwarmstart.c59 FILE *fp; local
76 fp = fdopen(fd, "w");
77 if (fp == NULL) {
82 return (fp);
88 FILE *fp; local
91 fp = open_tmp_file(filename);
92 if (fp == NULL) {
97 fp = open_tmp_file(filename);
98 if (fp == NULL) {
105 xdrstdio_create(&xdrs, fp, XDR_ENCOD
122 FILE *fp = NULL; local
[all...]
/illumos-gate/usr/src/cmd/saf/
H A Dlog.c151 FILE *fp; /* scratch file pointer for problems */ local
H A Dreadtab.c56 FILE *fp; /* scratch file pointer */ local
75 fp = fopen(SACTAB, "r");
76 if (fp == NULL)
90 while (sp = read_entry(fp))
93 (void) fclose(fp);
100 * args: fp - file pointer referencing _sactab
104 read_entry(fp)
105 FILE *fp;
116 if (fgets(buf, SIZE, fp) == NULL)
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dsmstdio.c29 ** stdio. fp->f_cookie is the FILE* of stdio. The cookie may be
31 ** When binding late (when fp->f_cookie==NULL) then the value of
32 ** fp->f_ival is used (0, 1 or 2) to map to stdio's stdin, stdout or
40 ** fp -- file pointer assign for this open
52 sm_stdioopen(fp, info, flags, rpool)
53 SM_FILE_T *fp;
100 fp->f_cookie = s;
108 ** fp - the file pointer to get the cookie assigned
115 setup(fp)
116 SM_FILE_T *fp;
334 SM_FILE_T *fp; local
[all...]
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/
H A Dbindings.c268 strpqprint(char *p, char *q, FILE *fp) argument
275 (void) fputs(p, fp);
/illumos-gate/usr/src/cmd/awk/
H A Dmaketab.c117 FILE *fp; local
123 if ((fp = fopen("y.tab.h", "r")) == NULL) {
129 while (fgets(buf, sizeof (buf), fp) != NULL) {
/illumos-gate/usr/src/cmd/svc/startd/
H A Dmisc.c61 startd_fclose(FILE *fp) argument
63 if (fclose(fp) == 0)
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dpkgenv.c64 FILE *fp; local
75 if ((fp = fopen(p_pkginfo, "r")) == NULL) {
80 while (value = fpkgparam(fp, param)) {
86 (void) fclose(fp);
/illumos-gate/usr/src/cmd/tail/
H A Dread.c58 bytes(FILE *fp, const char *fn, off_t off) argument
68 for (wrap = 0, ep = p + off; (ch = getc(fp)) != EOF; ) {
75 if (ferror(fp)) {
128 lines(FILE *fp, const char *fn, off_t off) argument
146 while ((ch = getc(fp)) != EOF) {
169 if (ferror(fp)) {
/illumos-gate/usr/src/uts/common/syscall/
H A Dgetdents.c74 file_t *fp; local
89 if ((fp = getf(fd)) == NULL)
91 vp = fp->f_vnode;
96 if (!(fp->f_flag & FREAD)) {
115 auio.uio_loffset = fp->f_offset;
121 error = VOP_READDIR(vp, &auio, fp->f_cred, &sink, NULL, 0);
126 fp->f_offset = auio.uio_loffset;
192 file_t *fp; local
207 if ((fp = getf(fd)) == NULL)
209 vp = fp
[all...]
H A Dstatfs.c95 struct file *fp; local
100 if ((fp = getf(fdes)) == NULL)
102 error = cstatfs(fp->f_vnode->v_vfsp, sbp, len);
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kopen.c69 t_kopen(file_t *fp, dev_t rdev, int flags, TIUSER **tiptr, cred_t *cr) argument
87 KTLILOG(2, "t_kopen: fp %x, ", fp);
94 if (fp == NULL) {
104 if ((error = falloc(NULL, flags, &fp, NULL)) != 0) {
110 if (cr != fp->f_cred) {
112 crfree(fp->f_cred);
113 fp->f_cred = cr;
132 unfalloc(fp);
137 * fp i
[all...]
H A Dt_krcvudat.c77 struct file *fp; local
85 fp = tiptr->fp;
102 mutex_enter(&fp->f_tlock);
103 flag = fp->f_flag;
104 mutex_exit(&fp->f_tlock);
/illumos-gate/usr/src/cmd/lp/lib/papi/
H A Dppd.c88 FILE *fp; local
97 if ((fp = fopen(filename, "r")) == NULL)
101 (fgets(line, sizeof (line), fp) != NULL)) {
161 fclose(fp);
/illumos-gate/usr/src/uts/common/rpc/
H A Dsvc_gen.c74 * - 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/lib/libresolv/
H A Dres_init.c95 register FILE *fp; local
189 if ((fp = fopen(_PATH_RESCONF, "r")) != NULL) {
191 while (fgets(buf, sizeof (buf), fp) != NULL) {
272 (void) fclose(fp);
H A Dres_query.c274 FILE *fp; local
280 if (file == NULL || (fp = fopen(file, "r")) == NULL)
283 while (fgets(buf, sizeof (buf), fp)) {
295 fclose(fp);
299 fclose(fp);
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/arm64/
H A Dexec.c71 elf64_exec(struct preloaded_file *fp) argument
110 if ((md = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL)
116 err = bi_load(fp->f_args, &modulep, &kernendp);
123 clean_addr = (vm_offset_t)efi_translate(fp->f_addr);
134 elf64_obj_exec(struct preloaded_file *fp) argument
137 printf("%s called for preloaded file %p (=%s):\n", __func__, fp,
138 fp->f_name);
/illumos-gate/usr/src/boot/sys/boot/userboot/userboot/
H A Delf32_freebsd.c57 elf32_exec(struct preloaded_file *fp) argument
66 if ((md = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL)
70 err = bi_load32(fp->f_args, &boothowto, &bootdev, &bootinfop, &modulep, &kernend);
111 elf32_obj_exec(struct preloaded_file *fp) argument
/illumos-gate/usr/src/lib/pam_modules/dial_auth/
H A Ddial_auth.c58 FILE *fp; local
101 if ((fp = fopen(DIAL_FILE, "rF")) == NULL)
104 while ((p1 = fgets(line, sizeof (line), fp)) != NULL) {
112 (void) fclose(fp);
114 if ((fp = fopen(DPASS_FILE, "rF")) == NULL) {
123 (void) fclose(fp);
130 while ((p1 = fgets(line, sizeof (line)-1, fp)) != NULL) {
147 (void) fclose(fp);
/illumos-gate/usr/src/lib/print/libipp-listener/common/
H A Dprint-job.c54 int fp = -1; local
105 "peer-socket", &fp);
107 if (fp != -1) {
112 if (getpeername(fp, (struct sockaddr *)&peer,

Completed in 123 milliseconds

1234567891011>>