/titanic_41/usr/src/cmd/avs/sdbc/ |
H A D | sd_diag.c | 201 nsc_size_t filesize; in set_part_size() local 204 rc = nsc_partsize(sdfd, &filesize); /* partsize in FBAs (512 bytes) */ in set_part_size() 205 if (rc < 0 || filesize == 0) { in set_part_size() 214 filesize); in set_part_size() 216 if (fsize != -1 && fsize < filesize) in set_part_size() 217 filesize = fsize; in set_part_size() 218 filesize -= fba_num_bufsize; in set_part_size() 219 if (filesize < fba_num_bufsize) { in set_part_size() 221 filesize); in set_part_size() 226 return (filesize); in set_part_size() [all …]
|
/titanic_41/usr/src/lib/libcryptoutil/common/ |
H A D | keyfile.c | 53 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()
|
/titanic_41/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rep.c | 177 munmap(repbuf, filesize); \ 180 munmap(c_repbuf, filesize); \ 227 off_t filesize, size; in update_fabric_wwn_list() local 234 size = filesize = write_offset = bytes_left = 0; in update_fabric_wwn_list() 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() 320 if ((repbuf = (char *)mmap(0, filesize, PROT_READ, in update_fabric_wwn_list() 328 if (lseek(copy_fd, filesize - 1, SEEK_SET) == -1) { in update_fabric_wwn_list() 338 if ((c_repbuf = (char *)mmap(0, filesize, in update_fabric_wwn_list() [all …]
|
/titanic_41/usr/src/test/zfs-tests/cmd/randfree_file/ |
H A D | randfree_file.c | 54 size_t filesize = 0; in main() local 64 filesize = atoll(optarg); in main() 83 buf = (char *)malloc(filesize); in main() 89 if (write(fd, buf, filesize) < filesize) { in main()
|
/titanic_41/usr/src/cmd/svr4pkg/libinst/ |
H A D | copyf.c | 203 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()
|
/titanic_41/usr/src/cmd/backup/dump/ |
H A D | dumptraverse.c | 247 u_offset_t filesize; local 262 filesize = ip->di_size; 267 filesize); 268 filesize -= (unsigned)(sblock->fs_bsize); 272 indir(ip->di_ib[i], i, &filesize); 295 indir(d, n, filesize) in indir() argument 298 u_offset_t *filesize; 319 if (dadded || *filesize == 0) 333 *filesize); 334 *filesize -= (unsigned)(sblock->fs_bsize); [all …]
|
/titanic_41/usr/src/cmd/lp/model/netpr/ |
H A D | net.c | 54 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 D | tcp_misc.c | 50 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()
|
H A D | netpr.c | 172 size_t filesize; in main() local 286 if ((filesize = check_file(job_data->filename)) == -1) { in main() 331 if ((pa = mmap((caddr_t)0, filesize, PROT_READ, in main() 347 create_bsd_job(job_data, pr_order, filesize); in main() 351 tcpjob = (np_tcpjob_t *)create_tcp_job(job_data, filesize); in main() 456 (void) munmap(pa, filesize); in main()
|
H A D | bsd_misc.c | 46 create_bsd_job(np_job_t *injob, int pr_order, int filesize) in create_bsd_job() argument 159 jobdata->np_data_size = filesize; in create_bsd_job()
|
H A D | netpr.h | 114 int filesize; member
|
/titanic_41/usr/src/cmd/luxadm/ |
H A D | fabric_conf.c | 101 unsigned int filesize; in read_repos_file() local 127 filesize = stbuf.st_size; in read_repos_file() 128 tmp_ptr = mmap_ptr = mmap((caddr_t)0, filesize, in read_repos_file() 139 while (bytes_read < filesize) { in read_repos_file() 141 while (bytes_read < filesize && *tmp_ptr != '\n') { in read_repos_file() 163 ret = munmap(mmap_ptr, filesize); in read_repos_file()
|
/titanic_41/usr/src/cmd/bnu/ |
H A D | statlog.c | 77 static unsigned long filesize; /* size of file been variable 85 return(filesize); in getfilesize() 95 filesize = bytes;
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/zvol/zvol_swap/ |
H A D | zvol_swap_001_pos.ksh | 73 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 D | zvol_swap_003_pos.ksh | 91 filesize=`$LS -l /tmp/$TESTFILE | $AWK '{print $5}'` 93 (($tf_size != $filesize)) && \ 94 log_fail "testfile is ($filesize bytes), expected ($tf_size bytes)"
|
/titanic_41/usr/src/lib/libcmdutils/common/ |
H A D | writefile.c | 49 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()
|
/titanic_41/usr/src/cmd/cat/ |
H A D | cat.c | 338 off_t filesize; in cat() local 376 filesize = statp->st_size; in cat() 410 filesize -= mapsize; in cat() 412 if (filesize == 0) in cat() 414 if (filesize < mapsize) in cat() 415 mapsize = filesize; in cat()
|
/titanic_41/usr/src/uts/common/syscall/ |
H A D | rlimit.c | 64 rlim64_t filesize; in ulimit() local 67 filesize = rctl_enforced_value(rctlproc_legacy[RLIMIT_FSIZE], in ulimit() 80 if (filesize > MAXOFF32_T) in ulimit() 81 filesize = MAXOFF32_T; in ulimit() 82 retval = ((int)filesize >> SCTRSHFT); in ulimit() 84 retval = filesize >> SCTRSHFT; in ulimit()
|
/titanic_41/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | readbuf.c | 205 lbp->filesize = sb.st_size; in nfslog_init_buf() 207 lbp->mmap_addr = (intptr_t)mmap(0, lbp->filesize, PROT_READ|PROT_WRITE, in nfslog_init_buf() 328 if (munmap((void *)lbp->mmap_addr, lbp->filesize)) { in nfslog_free_buf() 387 if (lbp->filesize <= lbp->next_rec - lbp->mmap_addr) { in nfslog_read_buffer() 411 if (lbp->filesize < next_rec) { in nfslog_read_buffer() 430 } else if (lbp->filesize < next_rec - lbp->mmap_addr) { in nfslog_read_buffer()
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsdb/ |
H A D | fsdb.c | 275 static u_offset_t filesize; variable 1019 filesize = BLKSIZE * 2; in main() 1186 filesize = BLKSIZE * 2; in main() 1378 filesize = FRGSIZE * 2; in main() 1380 if (min(blocksize, filesize) - cur_bytes > in main() 1383 filesize = blocksize * 2; in main() 2466 while (cur_bytes < filesize) { in follow_path() 2971 blocksize = filesize = 0; in icheck() 2974 filesize = ip->di_size; in icheck() 2975 blocksize = filesize * 2; in icheck() [all …]
|
/titanic_41/usr/src/cmd/troff/troff.d/ |
H A D | dev.h | 48 unsigned short filesize; /* number of bytes in file, */ member
|
/titanic_41/usr/src/cmd/lp/filter/postscript/common/ |
H A D | dev.h | 43 unsigned short filesize; /* number of bytes in file, */ member
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | progressmeter.c | 253 start_progress_meter(char *f, off_t filesize, off_t *ctr) in start_progress_meter() argument 257 end_pos = filesize; in start_progress_meter()
|
/titanic_41/usr/src/psm/stand/bootblks/hsfs/common/ |
H A D | hsfs.fth | 111 : dir-filesize ( -- n ) d# 10 +dr xl@ ; 300 dir-filesize cdir-size ! 414 /x field >filesize 447 current-fd fd>record >filesize x@ 451 current-fd fd>record >filesize x! 483 dir-filesize file-size! 596 ." size " dir-filesize .x
|
/titanic_41/usr/src/uts/common/avs/ns/sdbc/ |
H A D | sd_tdaemon.c | 988 nsc_size_t filesize; in _sd_direct_test() local 1032 (void) _sd_get_partsize((blind_t)(unsigned long)cd, &filesize); in _sd_direct_test() 1033 filesize = FBA_SIZE(filesize); in _sd_direct_test() 1034 loops = ((nsc_size_t)loop > (filesize / (60 * 1024))) ? in _sd_direct_test() 1035 (filesize / (60 * 1024)) : loop; in _sd_direct_test()
|