Searched refs:fp (Results 51 - 75 of 1180) sorted by relevance

1234567891011>>

/freebsd-9.3-release/lib/libc/stdio/
H A Dstdio.c58 FILE *fp = cookie; local
60 return(_read(fp->_file, buf, (size_t)n));
69 FILE *fp = cookie; local
71 return (_write(fp->_file, buf, (size_t)n));
80 FILE *fp = cookie; local
82 return (lseek(fp->_file, (off_t)offset, whence));
97 _sread(fp, buf, n)
98 FILE *fp;
104 ret = (*fp->_read)(fp
[all...]
H A Dfread.c53 fread(void * __restrict buf, size_t size, size_t count, FILE * __restrict fp) argument
57 FLOCKFILE(fp);
58 ret = __fread(buf, size, count, fp);
59 FUNLOCKFILE(fp);
64 __fread(void * __restrict buf, size_t size, size_t count, FILE * __restrict fp) argument
86 fp->_flags |= __SERR;
95 ORIENT(fp, -1);
96 if (fp->_r < 0)
97 fp->_r = 0;
100 while (resid > (r = fp
[all...]
H A Dfseek.c54 fseek(fp, offset, whence)
55 FILE *fp;
66 FLOCKFILE(fp);
67 ret = _fseeko(fp, (off_t)offset, whence, 1);
68 FUNLOCKFILE(fp);
75 fseeko(fp, offset, whence)
76 FILE *fp;
87 FLOCKFILE(fp);
88 ret = _fseeko(fp, offset, whence, 0);
89 FUNLOCKFILE(fp);
[all...]
H A Dgetwc.c47 * macro, may evaluate `fp' more than once.
50 getwc(FILE *fp) argument
53 return (fgetwc(fp));
56 getwc_l(FILE *fp, locale_t locale) argument
59 return (fgetwc_l(fp, locale));
H A Dfunopen.c51 FILE *fp; local
66 if ((fp = __sfp()) == NULL)
68 fp->_flags = flags;
69 fp->_file = -1;
70 fp->_cookie = (void *)cookie;
71 fp->_read = readfn;
72 fp->_write = writefn;
73 fp->_seek = seekfn;
74 fp->_close = closefn;
75 return (fp);
[all...]
H A Dfgets.c52 fgets(buf, n, fp)
55 FILE *fp;
64 FLOCKFILE(fp);
65 ORIENT(fp, -1);
72 if ((len = fp->_r) <= 0) {
73 if (__srefill(fp)) {
76 FUNLOCKFILE(fp);
81 len = fp->_r;
83 p = fp->_p;
96 fp
[all...]
/freebsd-9.3-release/contrib/sendmail/libsm/
H A Dfseek.c66 ** fp -- the file pointer to be seek'd
77 sm_io_seek(fp, timeout, offset, whence)
78 register SM_FILE_T *fp;
91 SM_REQUIRE_ISA(fp, SmFileMagic);
98 if ((seekfn = fp->f_seek) == NULL)
105 timeout = fp->f_timeout;
145 sm_flush(fp, (int *) &timeout);
147 if (fp->f_flags & SMOFF)
148 curoff = fp->f_lseekoff;
151 curoff = (*seekfn)(fp, (off_
[all...]
H A Dfflush.c30 ** SM_IO_FLUSH -- flush the buffer for a 'fp' to the "file"
33 ** all open files when fp==NULL any longer.
36 ** fp -- the file pointer buffer to flush
45 sm_io_flush(fp, timeout)
46 register SM_FILE_T *fp;
52 SM_REQUIRE_ISA(fp, SmFileMagic);
54 if ((fp->f_flags & (SMWR | SMRW)) == 0)
65 SM_CONVERT_TIME(fp, fd, timeout, &to);
68 return sm_flush(fp, (int *) &timeout);
74 ** Assumes that 'fp' ha
[all...]
H A Dclrerr.c25 ** fp -- the file pointer
33 sm_io_clearerr(fp)
34 SM_FILE_T *fp;
36 SM_REQUIRE_ISA(fp, SmFileMagic);
38 sm_clearerr(fp);
H A Dfeof.c24 ** Tests if the file for 'fp' has reached the end.
27 ** fp -- file pointer.
36 sm_io_eof(fp)
37 SM_FILE_T *fp;
39 SM_REQUIRE_ISA(fp, SmFileMagic);
41 return sm_eof(fp);
H A Dferror.c25 ** fp -- file pointer
28 ** 0 (zero) when 'fp' is not in an error state
29 ** non-zero when 'fp' is in an error state
35 sm_io_error(fp)
36 SM_FILE_T *fp;
38 SM_REQUIRE_ISA(fp, SmFileMagic);
40 return sm_error(fp);
H A Dget.c25 ** fp -- the file to get the character from
40 sm_io_getc(fp, timeout)
41 register SM_FILE_T *fp;
44 SM_REQUIRE_ISA(fp, SmFileMagic);
45 return sm_getc(fp, timeout);
H A Dsetvbuf.c35 ** fp -- the file that buffering is to be changed for
47 sm_io_setvbuf(fp, timeout, buf, mode, size)
48 SM_FILE_T *fp;
60 SM_REQUIRE_ISA(fp, SmFileMagic);
81 SM_CONVERT_TIME(fp, fd, timeout, &to);
82 (void) sm_flush(fp, &timeout);
83 if (HASUB(fp))
84 FREEUB(fp);
85 fp->f_r = fp
[all...]
H A Dfread.c27 ** fp -- file pointer to read from
41 sm_io_read(fp, timeout, buf, size)
42 SM_FILE_T *fp;
51 SM_REQUIRE_ISA(fp, SmFileMagic);
53 if (fp->f_read == NULL)
67 if (fp->f_r < 0)
68 fp->f_r = 0;
70 while ((int) resid > (r = fp->f_r))
72 (void) memcpy((void *) p, (void *) fp->f_p, (size_t) r);
73 fp
[all...]
/freebsd-9.3-release/libexec/bootpd/
H A Ddumptab.c57 FILE *fp; local
102 if ((fp = fopen(filename, "w")) == NULL) {
108 fprintf(fp, "\n# %s %s.%d\n", progname, VERSION, PATCHLEVEL);
109 fprintf(fp, "# %s: dump of bootp server database.\n", filename);
110 fprintf(fp, "# Dump taken %s", ctime(&t));
111 fwrite(legend, 1, sizeof(legend) - 1, fp);
116 dump_host(fp, hp);
117 fprintf(fp, "\n");
120 fclose(fp);
130 * The output is sent to the file pointed to by "fp"
[all...]
/freebsd-9.3-release/lib/libc/sparc64/fpu/
H A Dfpu_subr.c52 #include <machine/fp.h>
68 __fpu_shr(struct fpn *fp, int rsh) argument
74 if (rsh <= 0 || (fp->fp_class != FPC_NUM && !ISNAN(fp)))
78 m0 = fp->fp_mant[0];
79 m1 = fp->fp_mant[1];
80 m2 = fp->fp_mant[2];
81 m3 = fp->fp_mant[3];
89 fp->fp_mant[0] = 0;
90 fp
142 __fpu_norm(struct fpn *fp) argument
212 struct fpn *fp; local
[all...]
/freebsd-9.3-release/sys/powerpc/fpu/
H A Dfpu_explode.c86 fpu_itof(struct fpn *fp, u_int i) argument
97 fp->fp_exp = FP_LG;
98 fp->fp_mant[0] = (int)i < 0 ? -i : i;
99 fp->fp_mant[1] = 0;
100 fp->fp_mant[2] = 0;
101 fp->fp_mant[3] = 0;
102 fpu_norm(fp);
110 fpu_xtof(struct fpn *fp, u_int64_t i) argument
121 fp->fp_exp = FP_LG2;
122 *((int64_t*)fp
169 fpu_stof(struct fpn *fp, u_int i) argument
187 fpu_dtof(struct fpn *fp, u_int i, u_int j) argument
209 fpu_explode(struct fpemu *fe, struct fpn *fp, int type, int reg) argument
[all...]
H A Dfpu_subr.c66 fpu_shr(struct fpn *fp, int rsh) argument
72 if (rsh <= 0 || (fp->fp_class != FPC_NUM && !ISNAN(fp)))
76 m0 = fp->fp_mant[0];
77 m1 = fp->fp_mant[1];
78 m2 = fp->fp_mant[2];
79 m3 = fp->fp_mant[3];
87 fp->fp_mant[0] = 0;
88 fp->fp_mant[1] = 0;
89 fp
140 fpu_norm(struct fpn *fp) argument
210 struct fpn *fp; local
[all...]
/freebsd-9.3-release/contrib/gnu-sort/lib/
H A D__fpending.c27 __fpending (FILE *fp) argument
/freebsd-9.3-release/libexec/atrun/
H A Dgloadavg.c57 FILE *fp; local
59 if((fp=fopen(PROC_DIR "loadavg","r")) == NULL)
63 if(fscanf(fp,"%lf",&result) != 1)
65 fclose(fp);
/freebsd-9.3-release/sys/sparc64/include/
H A Dfp.h36 void savefpctx(uint32_t *fp);
/freebsd-9.3-release/sys/cddl/compat/opensolaris/sys/
H A Dfile.h44 struct file *fp; local
50 if (fget(curthread, fd, CAP_READ | CAP_WRITE | CAP_SEEK, &fp) == 0)
51 return (fp);
58 struct file *fp; local
61 if (fget(curthread, fd, 0, &fp) == 0) {
62 fdrop(fp, curthread);
63 fdrop(fp, curthread);
/freebsd-9.3-release/share/examples/kld/firmware/fwconsumer/
H A Dfw_consumer.c39 static const struct firmware *fp; variable in typeref:struct:firmware
46 fp = firmware_get("beastie");
48 if (fp == NULL)
51 if (((const char *)fp->data)[fp->datasize - 1] != '\0') {
52 firmware_put(fp, FIRMWARE_UNLOAD);
55 printf("%s", (const char *)fp->data);
61 if (fp != NULL) {
62 printf("%s", (const char *)fp->data);
63 firmware_put(fp, FIRMWARE_UNLOA
[all...]
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/sparc/ustack/
H A Dtst.helper.c53 uint32_t *fp = malloc(sizeof (instr)); local
58 instr[1] |= ((uintptr_t)baz - (uintptr_t)&fp[1]) >> 2;
64 bcopy(instr, fp, sizeof (instr));
66 (*(int (*)(void))fp)();
68 free(fp);
/freebsd-9.3-release/tools/regression/lib/libc/stdio/
H A Dtest-fmemopen.c52 FILE *fp; local
57 fp = fmemopen(buf, sizeof(buf), "w");
58 assert(fp != NULL);
61 nofw = fwrite(str, 1, sizeof(str), fp);
65 rc = fclose(fp);
69 fp = fmemopen(buf, sizeof(buf), "r");
70 assert(fp != NULL);
74 nofr = fread(buf2, 1, sizeof(buf2), fp);
85 rc = fclose(fp);
89 fp
113 FILE *fp; local
151 FILE *fp; local
218 FILE *fp; local
[all...]

Completed in 106 milliseconds

1234567891011>>