/osnet-11/usr/src/cmd/sendmail/libsm/ |
H A D | wsetup.c | 32 ** fp -- the file pointer 40 sm_wsetup(fp) 41 register SM_FILE_T *fp; 48 if ((fp->f_flags & SMWR) == 0) 50 if ((fp->f_flags & SMRW) == 0) 55 if (fp->f_flags & SMRD) 58 if (HASUB(fp)) 59 FREEUB(fp); 62 fp->f_flags &= ~(SMRD|SMFEOF); 63 fp [all...] |
H A D | ungetc.c | 36 ** Expand the ungetc buffer `in place'. That is, adjust fp->f_p when 42 ** fp -- the file pointer 52 sm_submore_x(fp) 53 SM_FILE_T *fp; 58 if (fp->f_ub.smb_base == fp->f_ubuf) 62 fp->f_ub.smb_base = p; 63 fp->f_ub.smb_size = SM_IO_BUFSIZ; 64 p += SM_IO_BUFSIZ - sizeof(fp->f_ubuf); 65 for (i = sizeof(fp [all...] |
H A D | fpurge.c | 29 ** fp -- file pointer to purge 37 sm_io_purge(fp) 38 register SM_FILE_T *fp; 40 SM_REQUIRE_ISA(fp, SmFileMagic); 41 if (!fp->f_flags) 47 if (HASUB(fp)) 48 FREEUB(fp); 49 fp->f_p = fp->f_bf.smb_base; 50 fp [all...] |
H A D | wbuf.c | 33 ** fp -- the file pointer 43 sm_wbuf(fp, timeout, c) 44 register SM_FILE_T *fp; 58 fp->f_w = fp->f_lbfsize; 59 if (cantwrite(fp)) 77 n = fp->f_p - fp->f_bf.smb_base; 78 if (n >= fp->f_bf.smb_size) 80 if (sm_io_flush(fp, timeou [all...] |
H A D | refill.c | 50 ** fp -- the file pointer for the active file 51 ** fd -- raw file descriptor (from 'fp') to use for select() 60 #define SM_IO_RD_TIMEOUT(fp, fd, to, timeout, sel_ret) \ 89 fp->f_r = 0; \ 90 fp->f_flags |= SMERR; \ 110 ** fp -- file pointer to flush 119 sm_lflush(fp, timeout) 120 SM_FILE_T *fp; 124 if ((fp->f_flags & (SMLBF|SMWR)) == (SMLBF|SMWR)) 125 return sm_flush(fp, timeou [all...] |
H A D | rewind.c | 30 ** fp -- the flie pointer for rewind 38 sm_io_rewind(fp, timeout) 39 register SM_FILE_T *fp; 42 SM_REQUIRE_ISA(fp, SmFileMagic); 43 (void) sm_io_seek(fp, timeout, 0L, SM_IO_SEEK_SET); 44 (void) sm_io_clearerr(fp);
|
H A D | fpos.c | 63 ** fp -- the file pointer to get repositioned 72 sm_io_tell(fp, timeout) 73 register SM_FILE_T *fp; 79 SM_REQUIRE_ISA(fp, SmFileMagic); 80 if (fp->f_seek == NULL) 87 timeout = fp->f_timeout; 104 (void) sm_flush(fp, (int *) &timeout); 118 if (fp->f_flags & SMOFF) 119 pos = fp->f_lseekoff; 123 pos = (*fp [all...] |
H A D | fclose.c | 65 ** fp -- file pointer to be closed 73 ** file pointer 'fp' will no longer be valid. 77 sm_io_close(fp, timeout) 78 register SM_FILE_T *fp; 84 if (fp == NULL) 90 SM_REQUIRE_ISA(fp, SmFileMagic); 93 if (fp->sm_magic == NULL) 99 if (fp->f_close == NULL) 105 if (fp->f_dup_cnt > 0) 108 fp [all...] |
H A D | smstdio.c | 29 ** 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...] |
H A D | fseek.c | 68 ** fp -- the file pointer to be seek'd 79 sm_io_seek(fp, timeout, offset, whence) 80 register SM_FILE_T *fp; 93 SM_REQUIRE_ISA(fp, SmFileMagic); 100 if ((seekfn = fp->f_seek) == NULL) 107 timeout = fp->f_timeout; 147 sm_flush(fp, (int *) &timeout); 149 if (fp->f_flags & SMOFF) 150 curoff = fp->f_lseekoff; 153 curoff = (*seekfn)(fp, (off_ [all...] |
H A D | fflush.c | 32 ** SM_IO_FLUSH -- flush the buffer for a 'fp' to the "file" 35 ** all open files when fp==NULL any longer. 38 ** fp -- the file pointer buffer to flush 47 sm_io_flush(fp, timeout) 48 register SM_FILE_T *fp; 54 SM_REQUIRE_ISA(fp, SmFileMagic); 56 if ((fp->f_flags & (SMWR | SMRW)) == 0) 67 SM_CONVERT_TIME(fp, fd, timeout, &to); 70 return sm_flush(fp, (int *) &timeout); 76 ** Assumes that 'fp' ha [all...] |
H A D | clrerr.c | 27 ** fp -- the file pointer 35 sm_io_clearerr(fp) 36 SM_FILE_T *fp; 38 SM_REQUIRE_ISA(fp, SmFileMagic); 40 sm_clearerr(fp);
|
H A D | feof.c | 26 ** Tests if the file for 'fp' has reached the end. 29 ** fp -- file pointer. 38 sm_io_eof(fp) 39 SM_FILE_T *fp; 41 SM_REQUIRE_ISA(fp, SmFileMagic); 43 return sm_eof(fp);
|
H A D | ferror.c | 27 ** fp -- file pointer 30 ** 0 (zero) when 'fp' is not in an error state 31 ** non-zero when 'fp' is in an error state 37 sm_io_error(fp) 38 SM_FILE_T *fp; 40 SM_REQUIRE_ISA(fp, SmFileMagic); 42 return sm_error(fp);
|
H A D | get.c | 27 ** fp -- the file to get the character from 42 sm_io_getc(fp, timeout) 43 register SM_FILE_T *fp; 46 SM_REQUIRE_ISA(fp, SmFileMagic); 47 return sm_getc(fp, timeout);
|
H A D | setvbuf.c | 37 ** fp -- the file that buffering is to be changed for 49 sm_io_setvbuf(fp, timeout, buf, mode, size) 50 SM_FILE_T *fp; 62 SM_REQUIRE_ISA(fp, SmFileMagic); 83 SM_CONVERT_TIME(fp, fd, timeout, &to); 84 (void) sm_flush(fp, &timeout); 85 if (HASUB(fp)) 86 FREEUB(fp); 87 fp->f_r = fp [all...] |
H A D | fread.c | 29 ** fp -- file pointer to read from 43 sm_io_read(fp, timeout, buf, size) 44 SM_FILE_T *fp; 53 SM_REQUIRE_ISA(fp, SmFileMagic); 55 if (fp->f_read == NULL) 69 if (fp->f_r < 0) 70 fp->f_r = 0; 72 while ((int) resid > (r = fp->f_r)) 74 (void) memcpy((void *) p, (void *) fp->f_p, (size_t) r); 75 fp [all...] |
H A D | makebuf.c | 32 ** fp -- the file to be buffered 42 sm_makebuf(fp) 43 register SM_FILE_T *fp; 50 if (fp->f_flags & SMNBF) 52 fp->f_bf.smb_base = fp->f_p = fp->f_nbuf; 53 fp->f_bf.smb_size = 1; 56 flags = sm_whatbuf(fp, &size, &couldbetty); 59 fp [all...] |
H A D | fwalk.c | 40 register SM_FILE_T *fp; local 48 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++) 50 if (fp->f_flags != 0) 53 fptimeout = fp->f_timeout; 58 ret |= (*function)(fp, &fptimeout);
|
/osnet-11/usr/src/lib/libast/common/misc/ |
H A D | fastfind.c | 164 register Find_t* fp; local 196 if (!(fp = (Find_t*)vmnewof(vm, 0, Find_t, 1, sizeof(Encode_t) - sizeof(Code_t)))) 198 fp->vm = vm; 199 fp->id = lib; 200 fp->disc = disc; 201 fp->generate = 1; 224 sfsprintf(fp->encode.file, sizeof(fp->encode.file), "%s/%s", path, findnames[k]); 225 if (!eaccess(fp->encode.file, R_OK|W_OK)) 227 path = fp 700 findread(register Find_t* fp) argument 948 findwrite(register Find_t* fp, const char* path, size_t len, const char* type) argument 1054 finddone(register Find_t* fp) argument 1086 findsync(register Find_t* fp) argument 1279 findclose(register Find_t* fp) argument [all...] |
/osnet-11/usr/src/lib/libc/port/i18n/ |
H A D | inc.flg | 31 usr/src/lib/libc/sparc/fp
|
/osnet-11/usr/src/lib/libcmd/common/ |
H A D | fmt.c | 74 #define isoption(fp,c) ((fp)->flags&(1L<<((c)-'a'))) 75 #define setoption(fp,c) ((fp)->flags|=(1L<<((c)-'a'))) 76 #define clroption(fp,c) ((fp)->flags&=~(1L<<((c)-'a'))) 79 outline(Fmt_t* fp) argument 81 register char* cp = fp->outbuf; 86 if (!fp->outp) 88 while (fp 137 split(Fmt_t* fp, char* buf, int splice) argument 231 dofmt(Fmt_t* fp) argument [all...] |
/osnet-11/usr/src/lib/libpkg/common/ |
H A D | ppkgmap.c | 43 ppkgmap(struct cfent *ept, FILE *fp) argument 49 if (fprintf(fp, "%d ", ept->volno) < 0) 54 if (fprintf(fp, "%c %s", ept->ftype, ept->path) < 0) 57 if (fprintf(fp, "%c %s %s", ept->ftype, ept->pkg_class, 63 if (fprintf(fp, "=%s", ept->ainfo.local) < 0) 70 if (fprintf(fp, " ?") < 0) 73 if (fprintf(fp, " %d", ept->ainfo.xmajor) < 0) 78 if (fprintf(fp, " ?") < 0) 81 if (fprintf(fp, " %d", ept->ainfo.major) < 0) 87 if (fprintf(fp, " [all...] |
H A D | tputcfent.c | 45 tputcfent(struct cfent *ept, FILE *fp) argument 56 (void) fprintf(fp, pkg_gt("Pathname: %s\n"), ept->path); 57 (void) fprintf(fp, pkg_gt("Type: ")); 61 (void) fputs(pkg_gt("regular file\n"), fp); 65 (void) fputs(pkg_gt("directory\n"), fp); 69 (void) fputs(pkg_gt("exclusive directory\n"), fp); 73 (void) fputs(pkg_gt("volatile file\n"), fp); 77 (void) fputs(pkg_gt("editted file\n"), fp); 81 (void) fputs(pkg_gt("named pipe\n"), fp); 85 (void) fputs(pkg_gt("installation file\n"), fp); [all...] |
/osnet-11/usr/src/lib/libxcurses/src/libc/mks/ |
H A D | m_vsscan.c | 54 static FILE *fp = NULL; local 60 if (fp == NULL && (fp = tmpfile()) == NULL) 63 (void) rewind(fp); 66 (void) fputs(buf, fp); 69 (void) rewind(fp); 71 return (mks_vfscanf(fp, fmt, vp));
|