Home
last modified time | relevance | path

Searched refs:off_t (Results 26 – 50 of 812) sorted by relevance

12345678910>>...33

/illumos-gate/usr/src/cmd/swap/
H A Dswap.c88 static int add(char *, off_t, off_t, int);
89 static int delete(char *, off_t);
92 static int valid(char *, off_t, off_t);
101 off_t s_offset = 0; in main()
102 off_t length = 0; in main()
510 delete(char *path, off_t offset) in delete()
570 add(char *path, off_t offset, off_t cnt, int flags) in add()
664 valid(char *pathname, off_t offset, off_t length) in valid()
668 off_t need; in valid()
687 length = (off_t)f.st_size; in valid()
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioRawPipe.h40 off_t offset; /* offset to start read/write */
48 const off_t offset = 0
57 AudioError SetOffset(off_t val); // set offset
58 off_t GetOffset() const; // set offset
H A DAudioFile.h72 off_t hdrsize; // length of file header
73 off_t seekpos; // current system file pointer
77 off_t maplen; // length of mmaped region
94 off_t& offset); // returned byte offset
98 off_t& offset); // returned byte offset
/illumos-gate/usr/src/cmd/more/
H A Dmore.c158 off_t dlines;
196 off_t chrctr, line;
236 register off_t left; in main()
241 off_t initline; in main()
954 static off_t lastarg;
965 static off_t
968 register off_t nlines; in command()
969 register off_t retval; in command()
1013 register off_t initline; in command()
1322 register off_t lncount; in search()
[all …]
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetbase.c34 off_t
37 off_t rc; in elf_getbase()
54 off_t
57 off_t rc; in _elf_getarhdrbase()
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioBuffer.cc310 off_t resid; in ReadData()
311 off_t cnt; in ReadData()
312 off_t offset; in ReadData()
316 cnt = (off_t)len; in ReadData()
349 memcpy((char *)buf, (char *)((off_t)GetAddress() + offset), in ReadData()
375 off_t resid; in WriteData()
376 off_t cnt; in WriteData()
377 off_t offset; in WriteData()
381 cnt = (off_t)len; in WriteData()
401 resid = (off_t)bufsize - offset; in WriteData()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dhistory.c236 register off_t hsize = 0; in sh_histinit()
268 hsize=lseek(fd,(off_t)0,SEEK_END); in sh_histinit()
440 lseek(fd,(off_t)0,SEEK_SET); in hist_check()
465 off_t oldp,newp; in hist_trim()
610 sfseek(iop,(off_t)2,SEEK_SET); in hist_nearend()
629 register off_t count = hp->histcnt; in hist_eof()
631 off_t last = sfseek(hp->histfp,(off_t)0,SEEK_END); in hist_eof()
805 register off_t cur; in hist_write()
849 lseek(acctfd, (off_t)0, SEEK_END); in hist_write()
955 off_t offset; in hist_find()
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/mkholes/
H A Dmkholes.c38 off_t seg_offset;
39 off_t seg_len;
87 static off_t file_size = 0; in push_segment()
88 off_t off, len; in push_segment()
148 off_t off = seg->seg_offset; in main()
149 off_t len = seg->seg_len; in main()
153 off_t bytes_read = 0; in main()
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.h281 off_t st_size;
317 off_t hl_data;
318 off_t hl_hole;
324 off_t orig_size; /* original file size */
325 off_t data_size; /* compressed file size */
330 extern holes_info_t *get_holes_info(int, off_t, boolean_t);
331 extern holes_info_t *read_holes_header(const char *, off_t);
/illumos-gate/usr/src/uts/common/sys/
H A Dsunddi.h547 off_t offset, off_t len);
567 off_t offset, off_t len);
570 ddi_map(dev_info_t *dp, ddi_map_req_t *mp, off_t offset, off_t len,
584 off_t len, caddr_t *vaddrp);
588 off_t len, caddr_t *vaddrp);
719 ddi_segmap(dev_t dev, off_t offset, struct as *asp, caddr_t *addrp, off_t len,
1543 ddi_dma_handle_t handle, off_t off, size_t len,
1548 ddi_dma_handle_t handle, uint_t win, off_t *offp,
1782 ddi_dma_handle_t handle, off_t off, size_t len,
1787 ddi_dma_handle_t handle, uint_t win, off_t *offp,
[all …]
H A Ddevops.h100 int (*cb_mmap)(dev_t dev, off_t off, int prot);
101 int (*cb_segmap)(dev_t dev, off_t off, struct as *asp,
102 caddr_t *addrp, off_t len, unsigned int prot,
180 ddi_map_req_t *mp, off_t offset, off_t len,
218 ddi_dma_handle_t handle, off_t off,
221 ddi_dma_handle_t handle, uint_t win, off_t *offp,
226 enum ddi_dma_ctlops request, off_t *offp,
312 ddi_map_req_t *mp, off_t offset, off_t len,
334 enum ddi_dma_ctlops request, off_t *offp,
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dhistory.h66 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);
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dlocal.h44 off_t sm_stdseek __P((SM_FILE_T *, off_t, int));
54 off_t sm_stdioseek __P((SM_FILE_T *, off_t, int));
63 off_t sm_strseek __P((SM_FILE_T *, off_t, int));
72 off_t sm_syslogseek __P((SM_FILE_T *, off_t, int));
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dlufs_debug.c95 top_mataadd(ufsvfs_t *ufsvfsp, offset_t mof, off_t nb) in top_mataadd()
191 off_t nb, in top_delta_debug()
269 off_t head, trimroll, lof; in logmap_logscan_debug()
301 off_t oldtrimc, newtrimc, trimroll; in logmap_logscan_commit_debug()
424 off_t olof; in map_check_linkage()
425 off_t firstlof; in map_check_linkage()
522 off_t hnb; in matamap_overlap()
555 off_t hnb; in matamap_within()
586 off_t trimr = mtm->mtm_trimrlof; in ldl_sethead_debug()
587 off_t head = ul->un_head_lof; in ldl_sethead_debug()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Dpkgfs.c46 static off_t pkg_seek(struct open_file *, off_t, int);
113 off_t tf_ofs;
114 off_t tf_size;
115 off_t tf_fp;
273 off_t fp; in pkg_read()
330 static off_t
335 off_t delta; in pkg_seek()
520 static off_t
587 static off_t
617 off_t ofs; in new_package()
[all …]
H A Dgzipfs.c40 off_t zf_dataoffset;
50 static off_t zf_seek(struct open_file *f, off_t offset, int where);
95 get_byte(struct z_file *zf, off_t *curoffp) in get_byte()
297 static off_t
298 zf_seek(struct open_file *f, off_t offset, int where) in zf_seek()
301 off_t target; in zf_seek()
337 off_t pos1, pos2; in zf_stat()
348 sb->st_size = (off_t)size; in zf_stat()
/illumos-gate/usr/src/uts/common/io/1394/adapters/
H A Dhci1394_ixl_misc.c245 off_t hcidesc_off; in hci1394_ixl_check_status()
253 hcidesc_off = (off_t)hcidescp - (off_t)dma->dma_buf->bi_kaddr; in hci1394_ixl_check_status()
297 hcidesc_off = (off_t)hcidescp - (off_t)dma->dma_buf->bi_kaddr; in hci1394_ixl_check_status()
342 hcidesc_off = (off_t)hcidescp - in hci1394_ixl_check_status()
343 (off_t)dma->dma_buf->bi_kaddr; in hci1394_ixl_check_status()
/illumos-gate/usr/src/stand/lib/fs/common/
H A Dpromfs.c43 static off_t promfs_lseek(int fd, off_t offset, int whence);
98 static off_t
99 promfs_lseek(int fd, off_t offset, int whence) in promfs_lseek()
/illumos-gate/usr/src/cmd/head/
H A Dhead.c55 static void copyout(off_t, int);
71 off_t linecnt = DEF_LINE_COUNT; in main()
96 linecnt = (off_t)strtoll(&argv[i][1], (char **)NULL, in main()
117 linecnt = (off_t)strtoll(optarg, (char **)NULL, 10); in main()
184 copyout(off_t cnt, int isline) in copyout()
/illumos-gate/usr/src/cmd/dd/
H A Ddd.c150 static off_t skip; /* number of input records to skip */
608 ostriden = ((off_t)number(BIG)) - 1; in main()
612 istriden = ((off_t)number(BIG)) - 1; in main()
616 istriden = ostriden = ((off_t)number(BIG)) - 1; in main()
770 if (ostriden == (off_t)-1) { in main()
775 if (istriden == (off_t)-1) { in main()
915 (ftruncate(obf, (((off_t)oseekn) * ((off_t)obs))) in main()
1020 if (iseekn && lseek(ibf, (((off_t)iseekn) * ((off_t)ibs)), 1) == -1) { in main()
1027 if (oseekn && lseek(obf, (((off_t)oseekn) * ((off_t)obs)), 1) == -1) { in main()
1075 if (istriden > 0 && lseek(ibf, istriden * ((off_t)ibs), in main()
[all …]
/illumos-gate/usr/src/uts/common/sys/rsm/
H A Drsmpi.h254 off_t offset,
260 off_t offset,
264 off_t offset,
301 off_t offset,
307 off_t offset,
313 off_t offset,
319 off_t offset,
325 off_t offset,
334 off_t offset,
340 off_t offset,
[all …]
/illumos-gate/usr/src/cmd/cat/
H A Dcat.c342 off_t mapsize, munmapsize; in cat()
343 off_t filesize; in cat()
344 off_t mapoffset; in cat()
347 if (S_ISREG(statp->st_mode) && (lseek(fi_desc, (off_t)0, SEEK_CUR) in cat()
349 mapsize = (off_t)MAXMAPSIZE; in cat()
358 MAP_SHARED, fi_desc, (off_t)0); in cat()
408 (void) lseek(fi_desc, (off_t)mapoffset, in cat()
427 (void) lseek(fi_desc, (off_t)mapoffset, in cat()
437 (void) lseek(fi_desc, (off_t)mapoffset, SEEK_SET); in cat()
/illumos-gate/usr/src/cmd/xstr/
H A Dxstr.c30 off_t tellpt;
31 off_t hashit(char *, int);
34 off_t yankstr(char **);
40 void found(int, off_t, char *);
48 off_t mesgpt;
194 off_t
303 off_t hpt;
309 off_t
374 found(int new, off_t off, char *str) in found()
/illumos-gate/usr/src/boot/include/
H A Dunistd.h48 typedef __off_t off_t; typedef
352 off_t lseek(int, off_t, int);
394 int ftruncate(int, off_t);
419 ssize_t pread(int, void *, size_t, off_t);
420 ssize_t pwrite(int, const void *, size_t, off_t);
425 int truncate(const char *, off_t);
454 int lockf(int, int, off_t);
580 off_t __syscall(quad_t, ...);
/illumos-gate/usr/src/cmd/mkfile/
H A Dmkfile.c53 off_t size; in main()
121 size = ((off_t)atoll(argv[1]) * (off_t)mult); in main()
143 if (lseek(fd, (off_t)size-1, SEEK_SET) < 0) { in main()
166 off_t written = 0; in main()
169 if (lseek(fd, (off_t)0, SEEK_SET) < 0) { in main()

12345678910>>...33