/illumos-gate/usr/src/cmd/bnu/ |
H A D | statlog.c | 77 static unsigned long filesize; /* size of file been variable 85 return(filesize); 95 filesize = bytes;
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | keyfile.c | 53 size_t filesize = 0; local 73 filesize = statbuf.st_size; 77 filesize = *dlen; 81 if (filesize == 0) { 94 if ((filebuf = malloc(filesize)) == NULL) { 102 if (read(fd, filebuf, filesize) != filesize) { 112 size_t left = filesize; 137 filesize -= left; 142 *dlen = filesize; [all...] |
/illumos-gate/usr/src/test/zfs-tests/cmd/randfree_file/ |
H A D | randfree_file.c | 44 "usage: %s [-l filesize] [-s start-offset]" 54 size_t filesize = 0; local 64 filesize = atoll(optarg); 83 buf = (char *)malloc(filesize); 89 if (write(fd, buf, filesize) < filesize) {
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/file/ |
H A D | ktfile.h | 61 size_t filesize; /* size of original file */ member in struct:_krb5_ktfile_data
|
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | bsd_misc.c | 46 create_bsd_job(np_job_t *injob, int pr_order, int filesize) argument 159 jobdata->np_data_size = filesize;
|
H A D | tcp_misc.c | 50 create_tcp_job(np_job_t *genjob, int filesize) argument 63 tcpjob->gen_data->filesize = filesize; 157 tcpjob->gen_data->filesize, tcpjob->gen_data->timeout)) < 0) {
|
H A D | net.c | 54 int filesize; local 60 filesize = bsdjob->np_data->np_data_size; 61 syslog(LOG_DEBUG, "filesize is %d", filesize); 87 if ((netpr_send_message(sockfd, "%c%d %s\n", XFER_DATA, filesize, 96 if ((xfer = xfer_file(sockfd, pa, filesize, bsdjob->np_timeout)) != 0) { 131 xfer_file(int sockfd, caddr_t pa, int filesize, int seed) argument 142 ctr = filesize;
|
H A D | netpr.c | 172 size_t filesize; local 283 * returns filesize 286 if ((filesize = check_file(job_data->filename)) == -1) { 331 if ((pa = mmap((caddr_t)0, filesize, PROT_READ, 347 create_bsd_job(job_data, pr_order, filesize); 351 tcpjob = (np_tcpjob_t *)create_tcp_job(job_data, filesize); 456 (void) munmap(pa, filesize);
|
H A D | netpr.h | 114 int filesize; member in struct:job
|
/illumos-gate/usr/src/lib/libcmdutils/common/ |
H A D | writefile.c | 49 off_t filesize = s1p->st_size; local 173 filesize -= nbytes; 174 if (filesize == 0) 177 if (filesize < mapsize) 178 mapsize = filesize;
|
/illumos-gate/usr/src/cmd/troff/troff.d/ |
H A D | dev.h | 48 unsigned short filesize; /* number of bytes in file, */ member in struct:dev
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/common/ |
H A D | dev.h | 43 unsigned short filesize; /* number of bytes in file, */ member in struct:dev
|
/illumos-gate/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; local 234 size = filesize = write_offset = bytes_left = 0; 272 filesize = size = stbuf.st_size; 275 if (filesize && filesize < sizeof_rep_hdr) { 304 if (filesize > 0) { 320 if ((repbuf = (char *)mmap(0, filesize, PROT_READ, 328 if (lseek(copy_fd, filesize [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | copyf.c | 203 off_t filesize = a_srcStatbuf->st_size; local 215 if (S_ISREG(a_srcStatbuf->st_mode) && (filesize > SMALLFILESIZE)) { 223 if (filesize < mapsize) { 224 mapsize = filesize; 374 filesize -= nbytes; 375 if (filesize == 0) { 380 if (filesize < mapsize) { 381 mapsize = filesize;
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rlimit.c | 64 rlim64_t filesize; local 67 filesize = rctl_enforced_value(rctlproc_legacy[RLIMIT_FSIZE], 80 if (filesize > MAXOFF32_T) 81 filesize = MAXOFF32_T; 82 retval = ((int)filesize >> SCTRSHFT); 84 retval = filesize >> SCTRSHFT;
|
/illumos-gate/usr/src/cmd/cat/ |
H A D | cat.c | 338 off_t filesize; local 376 filesize = statp->st_size; 410 filesize -= mapsize; 412 if (filesize == 0) 414 if (filesize < mapsize) 415 mapsize = filesize;
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | fabric_conf.c | 101 unsigned int filesize; local 127 filesize = stbuf.st_size; 128 tmp_ptr = mmap_ptr = mmap((caddr_t)0, filesize, 139 while (bytes_read < filesize) { 141 while (bytes_read < filesize && *tmp_ptr != '\n') { 163 ret = munmap(mmap_ptr, filesize);
|
/illumos-gate/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) 298 u_offset_t *filesize; 319 if (dadded || *filesize == 0) 333 *filesize); local 334 *filesize [all...] |
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | mmc.c | 651 uint32_t filesize; local 666 filesize = (uint32_t)(((uchar_t)buf[4] << 24) + 671 return (filesize);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslogd.h | 120 u_offset_t filesize; /* file size */ member in struct:nfslog_buf
|
/illumos-gate/usr/src/cmd/avs/sdbc/ |
H A D | sd_diag.c | 201 nsc_size_t filesize; local 204 rc = nsc_partsize(sdfd, &filesize); /* partsize in FBAs (512 bytes) */ 205 if (rc < 0 || filesize == 0) { 214 filesize); 216 if (fsize != -1 && fsize < filesize) 217 filesize = fsize; 218 filesize -= fba_num_bufsize; 219 if (filesize < fba_num_bufsize) { 221 filesize); 226 return (filesize); 230 do_sdtest1(int fd, nsc_size_t loops, nsc_size_t filesize) argument 272 do_sdtest2(int fd, nsc_size_t loops, nsc_size_t filesize, int h) argument 310 do_sdtest3(int fd, nsc_size_t loops, nsc_size_t filesize, int h, nsc_fd_t *sdfd) argument 361 do_sdtest4(int fd, nsc_size_t loops, nsc_size_t filesize) argument 410 do_sdtest5(int fd, nsc_size_t loops, nsc_size_t filesize, int h) argument 484 do_sdtest6(int fd, nsc_size_t loops, nsc_size_t filesize, int h) argument 651 do_sdtest7write(int fd, nsc_size_t filesize, int h) argument 714 do_sdtest7(int fd, nsc_size_t loops, nsc_size_t filesize, int h, nsc_fd_t *sdfd) argument 768 do_sdtest8(int fd, nsc_size_t loops, nsc_size_t filesize) argument 803 do_sdtest9(int fd, nsc_size_t loops, nsc_size_t filesize, int h) argument 840 nsc_size_t filesize; local 915 do_sdtest11(int fd, nsc_size_t loops, nsc_size_t filesize, int h) argument 967 do_sdtest12(int fd, nsc_size_t loops, nsc_size_t filesize, int h) argument 1010 nsc_size_t filesize, filesize2; local [all...] |
/illumos-gate/usr/src/cmd/lvm/rpc.mdcommd/ |
H A D | mdmn_commd_server.c | 785 size_t filesize; local 790 filesize = (sizeof (md_mn_mct_t)); 816 fl.l_len = filesize + 1; 856 (void) lseek(fd, filesize + 1, SEEK_SET); 860 addr = mmap(0, filesize, PROT_READ | PROT_WRITE,
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | device_info.c | 1370 int filesize; local 1396 filesize = (int) ftell (file); 1398 filebuf = (char *) malloc (filesize); 1400 HAL_ERROR (("Could not allocate %d bytes for file %s", filesize, buf)); 1403 read = fread (filebuf, sizeof (char), filesize, file); 1438 rc = XML_Parse (parser, filebuf, filesize, 1);
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | xattr.c | 525 size_t filesize; local 546 VERIFY(nvlist_size(nvl, &filesize, NV_ENCODE_XDR) == 0); 548 if (uiop->uio_loffset >= filesize) { 553 buf = kmem_alloc(filesize, KM_SLEEP); 554 VERIFY(nvlist_pack(nvl, &buf, &filesize, NV_ENCODE_XDR, 557 error = uiomove((caddr_t)buf, filesize, UIO_READ, uiop); 558 kmem_free(buf, filesize);
|
/illumos-gate/usr/src/uts/common/fs/hsfs/ |
H A D | hsfs_vnops.c | 181 uint_t filesize; local 193 filesize = hp->hs_dirent.ext_size; 198 uiop->uio_loffset >= filesize) /* Past EOF. */ 241 diff = filesize - uiop->uio_loffset; 282 uiop->uio_loffset == filesize) 918 * If our filesize is not an integer multiple of PAGESIZE, 1293 * If our filesize is not an integer multiple of PAGESIZE,
|