Home
last modified time | relevance | path

Searched refs:filesize (Results 1 – 25 of 84) sorted by relevance

1234

/illumos-gate/usr/src/test/smbclient-tests/cmd/rw_mmap/
H A Drw_mmap.c48 size_t filesize; in main() local
113 filesize = cnt; in main()
114 if (ftruncate(fid, filesize) == -1) { in main()
120 file_addr = mmap(NULL, filesize, in main()
137 while (p < file_addr + filesize) { in main()
157 while (p < file_addr + filesize) { in main()
158 if (p + blksize > file_addr + filesize) in main()
159 blksize = file_addr + filesize - p; in main()
180 while (p < file_addr + filesize) { in main()
181 if (p + blksize > file_addr + filesize) in main()
[all …]
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dkeyfile.c53 size_t filesize = 0; in pkcs11_read_data() local
73 filesize = statbuf.st_size; in pkcs11_read_data()
77 filesize = *dlen; in pkcs11_read_data()
81 if (filesize == 0) { in pkcs11_read_data()
94 if ((filebuf = malloc(filesize)) == NULL) { in pkcs11_read_data()
102 if (read(fd, filebuf, filesize) != filesize) { in pkcs11_read_data()
112 size_t left = filesize; in pkcs11_read_data()
137 filesize -= left; in pkcs11_read_data()
142 *dlen = filesize; in pkcs11_read_data()
/illumos-gate/usr/src/test/smbclient-tests/cmd/close_wr/
H A Dclose_wr.c42 size_t filesize; in main() local
62 filesize = 64 * 1024; in main()
63 if (ftruncate(fid, filesize) == -1) { in main()
69 file_addr = mmap(NULL, filesize, in main()
77 memset(file_addr, 0, filesize); in main()
89 blksize = filesize / 4; in main()
95 if (msync(file_addr, filesize, MS_SYNC) == -1) { in main()
101 if (munmap(file_addr, filesize) == -1) { in main()
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rep.c177 munmap(repbuf, filesize); \
180 munmap(c_repbuf, filesize); \
227 off_t filesize, size; in update_fabric_wwn_list() local
272 filesize = size = stbuf.st_size; in update_fabric_wwn_list()
275 if (filesize && filesize < sizeof_rep_hdr) { in update_fabric_wwn_list()
304 if (filesize > 0) { in update_fabric_wwn_list()
345 memcpy(c_repbuf, repbuf, filesize); in update_fabric_wwn_list()
350 munmap(repbuf, filesize); in update_fabric_wwn_list()
359 if (new_file_flag != 0 || filesize == 0 || filesize == sizeof_rep_hdr) { in update_fabric_wwn_list()
383 if (filesize > 0) { in update_fabric_wwn_list()
[all …]
/illumos-gate/usr/src/test/smbclient-tests/cmd/no_close/
H A Dno_close.c39 size_t filesize; in main() local
59 filesize = 64 * 1024; in main()
60 if (ftruncate(fid, filesize) == -1) { in main()
66 file_addr = mmap(NULL, filesize, in main()
74 blksize = filesize / 4; in main()
78 memset(file_addr + offset, c[i], filesize - offset); in main()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_object_detector.c315 unsigned long filesize, in is_pe_object() argument
336 0,sizeof(dhinmem),filesize,errcode); in is_pe_object()
368 if (filesize < nt_address) { in is_pe_object()
396 filesize, in is_pe_object()
458 Dwarf_Unsigned *filesize, in dwarf_object_detector_fd() argument
499 *filesize = (size_t)fsize; in dwarf_object_detector_fd()
504 *filesize = (size_t)fsize; in dwarf_object_detector_fd()
509 *filesize = (size_t)fsize; in dwarf_object_detector_fd()
515 *filesize = (size_t)fsize; in dwarf_object_detector_fd()
523 *filesize = (size_t)fsize; in dwarf_object_detector_fd()
[all …]
H A Ddwarf_machoread.c150 size_t filesize,
393 mmp->cmdsize > filesize || in load_segment_command_content32()
399 (off_t)filesize, errcode); in load_segment_command_content32()
410 ASNAR(mfp->mo_copy_word,msp->filesize,sc.filesize); in load_segment_command_content32()
417 if ((msp->fileoff+msp->filesize ) > filesize) { in load_segment_command_content32()
461 ASNAR(mfp->mo_copy_word,msp->filesize,sc.filesize); in load_segment_command_content64()
463 msp->filesize > filesize) { in load_segment_command_content64()
468 if ((msp->fileoff+msp->filesize ) > filesize) { in load_segment_command_content64()
773 size_t filesize, in _dwarf_macho_setup() argument
830 size_t filesize, in _dwarf_macho_object_access_internals_init() argument
[all …]
H A Ddwarf_generic_init.c143 Dwarf_Unsigned filesize = 0; in dwarf_init_path() local
156 &ftype,&endian,&offsetsize,&filesize,&errcode); in dwarf_init_path()
178 ftype,endian,offsetsize,filesize, in dwarf_init_path()
195 ftype,endian,offsetsize,filesize, in dwarf_init_path()
212 ftype,endian,offsetsize,filesize, in dwarf_init_path()
247 Dwarf_Unsigned filesize = 0; in dwarf_init_b() local
255 &endian,&offsetsize,&filesize,&errcode); in dwarf_init_b()
267 ftype,endian,offsetsize,filesize, in dwarf_init_b()
279 ftype,endian,offsetsize,filesize, in dwarf_init_b()
293 ftype,endian,offsetsize,filesize, in dwarf_init_b()
H A Ddwarf_object_read_common.c63 size_t size, off_t filesize, int *errc) in _dwarf_object_read_random() argument
69 if (loc >= filesize) { in _dwarf_object_read_random()
76 if (endpoint > filesize) { in _dwarf_object_read_random()
/illumos-gate/usr/src/test/smbclient-tests/config/
H A Dfilemacro.prof39 filesize = 2k;
49 filesize = 1k;
59 filesize = 1k;
69 filesize = 1k;
82 filesize = 1g;
96 filesize = 1g;
110 filesize = 1g;
124 filesize = 1g;
/illumos-gate/usr/src/test/smbclient-tests/cmd/cp_mmap/
H A Dcp_mmap.c49 size_t filesize; in main() local
126 filesize = sb.st_size; in main()
127 if (filesize < pagesize) { in main()
134 if (ftruncate(des_fid, filesize) == -1) { in main()
141 numblks = (filesize + blksize - 1) / blksize; in main()
145 if (offset + blksize > filesize) in main()
146 len = filesize - offset; in main()
/illumos-gate/usr/src/test/zfs-tests/cmd/randfree_file/
H A Drandfree_file.c58 size_t filesize = 0; in main() local
68 filesize = atoll(optarg); in main()
87 buf = (char *)malloc(filesize); in main()
94 if (write(fd, buf, filesize) < filesize) { in main()
/illumos-gate/usr/src/test/smbclient-tests/cmd/mkfile_mmap/
H A Dmkfile_mmap.c49 size_t filesize; in main() local
117 filesize = cnt; in main()
118 if (ftruncate(fid, filesize) == -1) { in main()
127 numblks = (filesize + blksize - 1) / blksize; in main()
131 if (offset + blksize > filesize) in main()
132 blksize = filesize - offset; in main()
/illumos-gate/usr/src/test/smbclient-tests/cmd/prot_mmap/
H A Dprot_mmap.c51 size_t filesize; in main() local
146 filesize = sb.st_size; in main()
147 if (filesize < 4096) { in main()
158 if (filesize != sb.st_size) { in main()
166 numblks = (filesize + blksize - 1) / blksize; in main()
170 if (offset + blksize > filesize) in main()
171 blksize = filesize - offset; in main()
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dcopyf.c203 off_t filesize = a_srcStatbuf->st_size; in copyFile() local
215 if (S_ISREG(a_srcStatbuf->st_mode) && (filesize > SMALLFILESIZE)) { in copyFile()
223 if (filesize < mapsize) { in copyFile()
224 mapsize = filesize; in copyFile()
374 filesize -= nbytes; in copyFile()
375 if (filesize == 0) { in copyFile()
380 if (filesize < mapsize) { in copyFile()
381 mapsize = filesize; in copyFile()
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A Dnet.c54 int filesize; in bsd_print() local
60 filesize = bsdjob->np_data->np_data_size; in bsd_print()
61 syslog(LOG_DEBUG, "filesize is %d", filesize); in bsd_print()
87 if ((netpr_send_message(sockfd, "%c%d %s\n", XFER_DATA, filesize, in bsd_print()
96 if ((xfer = xfer_file(sockfd, pa, filesize, bsdjob->np_timeout)) != 0) { in bsd_print()
131 xfer_file(int sockfd, caddr_t pa, int filesize, int seed) in xfer_file() argument
142 ctr = filesize; in xfer_file()
H A Dtcp_misc.c50 create_tcp_job(np_job_t *genjob, int filesize) in create_tcp_job() argument
63 tcpjob->gen_data->filesize = filesize; in create_tcp_job()
157 tcpjob->gen_data->filesize, tcpjob->gen_data->timeout)) < 0) { in tcp_print()
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumptraverse.c233 u_offset_t filesize; in add() local
248 filesize = ip->di_size; in add()
253 filesize); in add()
258 indir(ip->di_ib[i], i, &filesize); in add()
302 if (dadded || *filesize == 0) in indir()
316 *filesize); in indir()
324 indir(d, n, filesize); in indir()
633 if (dadded || filesize == 0) in dsrch()
635 if (filesize > (u_offset_t)size) in dsrch()
636 filesize = (u_offset_t)size; in dsrch()
[all …]
/illumos-gate/usr/src/cmd/luxadm/
H A Dfabric_conf.c100 unsigned int filesize; in read_repos_file() local
125 filesize = stbuf.st_size; in read_repos_file()
126 tmp_ptr = mmap_ptr = mmap((caddr_t)0, filesize, in read_repos_file()
136 while (bytes_read < filesize) { in read_repos_file()
138 while (bytes_read < filesize && *tmp_ptr != '\n') { in read_repos_file()
160 ret = munmap(mmap_ptr, filesize); in read_repos_file()
/illumos-gate/usr/src/uts/common/krtld/
H A Dbootrd_cpio.c42 uint8_t filesize[11]; member
230 if (!get_uint64(hdr->filesize, sizeof (hdr->filesize), &stat->st_size)) in parse_stat()
251 uint64_t filesize; in scan_archive_hdr() local
262 if (!get_uint64(hdr->filesize, sizeof (hdr->filesize), &filesize)) in scan_archive_hdr()
272 data = read_ramdisk(off + namesize, filesize); in scan_archive_hdr()
282 return (offsetof(struct cpio_hdr, data[namesize + filesize])); in scan_archive_hdr()
/illumos-gate/usr/src/cmd/bnu/
H A Dstatlog.c77 static unsigned long filesize; /* size of file been variable
85 return(filesize); in getfilesize()
95 filesize = bytes;
/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_swap/
H A Dzvol_swap_001_pos.ksh73 filesize=`ls -l /tmp/$TESTFILE | awk '{print $5}'`
75 (( $tf_size != $filesize )) &&
76 log_fail "testfile is ($filesize bytes), expected ($tf_size bytes)"
H A Dzvol_swap_003_pos.ksh90 filesize=`ls -l /tmp/$TESTFILE | awk '{print $5}'`
92 (($tf_size != $filesize)) && \
93 log_fail "testfile is ($filesize bytes), expected ($tf_size bytes)"
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Dwritefile.c49 off_t filesize = s1p->st_size; in writefile() local
173 filesize -= nbytes; in writefile()
174 if (filesize == 0) in writefile()
177 if (filesize < mapsize) in writefile()
178 mapsize = filesize; in writefile()
/illumos-gate/usr/src/cmd/cat/
H A Dcat.c343 off_t filesize; in cat() local
381 filesize = statp->st_size; in cat()
415 filesize -= mapsize; in cat()
417 if (filesize == 0) in cat()
419 if (filesize < mapsize) in cat()
420 mapsize = filesize; in cat()

1234