/ast/src/lib/libcmd/ |
H A D | rev.h | 32 extern int rev_line(Sfio_t*, Sfio_t*, off_t);
|
H A D | revlib.c | 36 int rev_line(Sfio_t *in, Sfio_t *out, off_t start) 41 off_t offset; 42 if(sfseek(in,(off_t)0,SEEK_CUR) < 0) 54 if((offset = sfseek(in,(off_t)0,SEEK_END)) <= start)
|
/ast/src/lib/libast/port/ |
H A D | astcopy.c | 50 off_t 51 astcopy(int rfd, int wfd, off_t n) 53 register off_t c; 55 off_t pos; 56 off_t mapsize; 67 if (!fstat(rfd, &st) && S_ISREG(st.st_mode) && (pos = lseek(rfd, (off_t)0, 1)) != ((off_t)-1)) 74 if (write(wfd, mapbuf, mapsize) != mapsize || lseek(rfd, mapsize, 1) == ((off_t)-1)) return(-1);
|
/ast/src/lib/libast/stdio/ |
H A D | ftello.c | 30 off_t 33 STDIO_INT(f, "ftello", off_t, (Sfio_t*), (f))
|
H A D | fseeko.c | 31 fseeko(Sfio_t* f, off_t off, int op) 33 STDIO_INT(f, "fseeko", int, (Sfio_t*, off_t, int), (f, off, op))
|
/ast/src/cmd/pax/ |
H A D | pax-rpm.c | 98 paxread(pax, ap, NiL, (off_t)sizeof(magic), (off_t)sizeof(magic), 0); 99 if (paxread(pax, ap, &lead_old, (off_t)sizeof(lead_old), (off_t)sizeof(lead_old), 0) <= 0) 103 if (paxseek(pax, ap, (off_t)lead_old.archoff, SEEK_SET, 0) != (off_t)lead_old.archoff) 113 paxread(pax, ap, NiL, (off_t)sizeof(magic), (off_t)sizeof(magic), 0); 114 if (paxread(pax, ap, &lead, (off_t)sizeof(lead), (off_t)sizeo [all...] |
H A D | pax-gzip.c | 31 off_t pos; 36 if ((pos = lseek(ap->io->fd, (off_t)0, SEEK_CUR)) < 0 || lseek(ap->io->fd, (off_t)-4, SEEK_END) <= 0 || read(ap->io->fd, num, sizeof(num)) != sizeof(num))
|
H A D | pax-xz.c | 31 off_t pos; 36 if ((pos = lseek(ap->io->fd, (off_t)0, SEEK_CUR)) < 0 || lseek(ap->io->fd, (off_t)-sizeof(foot), SEEK_END) <= 0 || read(ap->io->fd, foot, sizeof(foot)) != sizeof(foot) || foot[4] != 0x59 || foot[5] != 0x5A)
|
H A D | paxlib.h | 103 off_t buffersize; /* buffer size */ 117 off_t uncompressed; /* uncompressed size if != 0 */ 148 off_t (*putepilogue)(Pax_t*, Paxarchive_t*); 200 off_t buffersize; /* io buffer size */ 206 int (*dataf)(Pax_t*, Paxarchive_t*, Paxfile_t*, int, void*, off_t); 207 void* (*getf)(Pax_t*, Paxarchive_t*, off_t, off_t*); 208 Sfio_t* (*partf)(Pax_t*, Paxarchive_t*, off_t); 209 int (*putf)(Pax_t*, Paxarchive_t*, off_t); 210 off_t (*read [all...] |
H A D | paxlib.c | 50 paxdata(Pax_t* pax, Paxarchive_t* ap, Paxfile_t* f, int fd, void* b, off_t n) 56 paxget(Pax_t* pax, Paxarchive_t* ap, off_t n, off_t* p) 62 paxput(Pax_t* pax, Paxarchive_t* ap, off_t n) 68 static off_t 69 paxread(Pax_t* pax, Paxarchive_t* ap, void* b, off_t n, off_t m, int must) 74 static off_t 75 paxseek(Pax_t* pax, Paxarchive_t* ap, off_t pos, int op, int hard) 97 paxunread(Pax_t* pax, Paxarchive_t* ap, void* b, off_t [all...] |
H A D | pax.h | 232 off_t count; /* char transfer count */ \ 233 off_t expand; /* add to count at end */ \ 234 off_t offset; /* volume offset */ \ 235 off_t size; /* total size if seekable */ \ 274 off_t datasize; /* non-reg has data anyway */ \ 314 off_t offset; /* data offset */ 315 off_t size; /* data size */ 316 off_t uncompressed; /* uncompressed size */ 388 off_t size; /* expected base size */ 397 off_t [all...] |
/ast/src/lib/libast/dir/ |
H A D | seekdir.c | 43 off_t base; /* file location of block */ 44 off_t offset; /* offset within block */
|
H A D | dirlib.h | 54 #undef off_t macro 58 #define off_t off64_t macro 103 #undef off_t 107 #define off_t off64_t
|
/ast/src/cmd/ksh93/include/ |
H A D | history.h | 66 extern void hist_list(History_t*,Sfio_t*, off_t, int, char*); 67 extern int hist_match(History_t*,off_t, char*, int*); 68 extern off_t hist_tell(History_t*,int); 69 extern off_t hist_seek(History_t*,int);
|
/ast/src/cmd/ie/ |
H A D | history.h | 49 off_t fixcnt; /* offset into history file */ 53 off_t fixcmds[1]; /* byte offset for recent commands */ 97 extern void hist_list(off_t,int,char*); 98 extern int hist_match(off_t,char*,int); 99 extern off_t hist_position(int); 115 extern off_t hist_position();
|
/ast/src/cmd/tests/sfio/ |
H A D | tsetfd.c | 26 off_t sk; 49 if((sk = lseek(fd, (off_t)0, 1)) != (off_t)1)
|
H A D | tmultiple.c | 68 sfseek(sfstdin, (Sfoff_t)lseek(sffileno(sfstdin), (off_t)0, 1), 0); 79 sfseek(sfstdin, (Sfoff_t)lseek(sffileno(sfstdin), (off_t)0, 1), 0); 91 sfseek(sfstdin, (Sfoff_t)lseek(sffileno(sfstdin), (off_t)0, 1), 0);
|
H A D | terrno.c | 49 lseek(sffileno(fw), (off_t)(-2), SEEK_SET); 51 lseek(sffileno(fw), (off_t)0, SEEK_SET);
|
H A D | tmmap2read.c | 25 #undef off_t macro 38 void* mmap(void* addr, size_t size, int x, int y, int z, off_t offset)
|
/ast/src/cmd/3d/ |
H A D | lseek3d.c | 49 #undef off_t macro 96 typedef off_t (*Seek_f)(int, off_t, int); 98 off_t 99 lseek3d(int fd, off_t off, int op) 101 off_t r; 112 if (sizeof(off_t) > sizeof(long))
|
/ast/src/lib/libardir/ |
H A D | ardir.h | 72 off_t offset; 73 off_t size; 104 extern off_t ardircopy(Ardir_t*, Ardirent_t*, int);
|
H A D | ardir.c | 34 off_t pos; 47 if (ar->fd >= 0 && ((pos = lseek(ar->fd, (off_t)0, SEEK_CUR)) < 0 || (n = read(ar->fd, buf, sizeof(buf))) < 0 || lseek(ar->fd, pos, SEEK_SET) != pos)) 78 off_t 83 off_t z; 84 off_t pos; 92 pos = lseek(ar->fd, (off_t)0, SEEK_CUR);
|
/ast/src/cmd/paxlib/zip/ |
H A D | zip.c | 94 off_t end; 102 off_t encoded; 103 off_t decoded; 129 off_t pos; 145 if (paxseek(pax, ap, -(off_t)ZIP_END_HEADER, SEEK_END, 1) > 0 && 175 if (paxread(pax, ap, mem->name, (off_t)n, (off_t)0, 0) <= 0) 184 if (ext && paxread(pax, ap, NiL, (off_t)ext, (off_t)0, 0) <= 0) 190 if (com && paxread(pax, ap, NiL, (off_t)co [all...] |
/ast/src/cmd/mailx/ |
H A D | edit.c | 86 off_t size; 112 fseek(state.msg.op, (off_t)0, SEEK_END); 118 filecopy(NiL, fp, state.tmp.dir, state.msg.op, NiL, (off_t)0, &mp->m_lines, &mp->m_size, 0); 151 run_editor(register FILE* fp, off_t size, struct header* hp, int type, int readonly) 205 filecopy(NiL, pp.fp, state.tmp.edit, ep, NiL, (off_t)0, NiL, NiL, 0); 221 if (fseek(ep, (off_t)-2, SEEK_END) < 0)
|
/ast/src/lib/libast/features/ |
H A D | fcntl.c | 39 #undef off_t macro 41 #define off_t off_t macro 63 #undef off_t macro 64 #define off_t off64_t macro 77 printf("#undef off_t\n"); 79 printf("#define off_t off_t\n"); 86 printf("#undef off_t\n"); 88 printf("#define off_t off_ [all...] |