Searched refs:st_size (Results 201 - 225 of 546) sorted by relevance

1234567891011>>

/macosx-10.10/llvmCore-3425.0.34/lib/Support/
H A DMemoryBuffer.cpp286 FileSize = FileInfo.st_size;
328 FileSize = FileInfo.st_size;
/macosx-10.10/procmail-14/procmail/src/
H A Dcstdio.c41 if(stbuf.st_size) /* only if size>0 */
68 if(!stbuf.st_size) /* avoid opening trivial rcfiles */
/macosx-10.10/sudo-73/src/
H A Dsudo_edit.c140 tf[j].osize = sb.st_size;
238 if (tf[i].osize == sb.st_size && timevalcmp(&tf[i].omtim, &tv, ==)) {
/macosx-10.10/webdavfs-367/mount.tproj/
H A Dwebdav_file.c540 reply_lookup->obj_filesize = node->attr_stat_info.attr_stat.st_size;
603 wstat->st_size = node->attr_stat_info.attr_stat.st_size;
768 statbuf.attr_stat.st_size = 0; /* we just created it */
869 statbuf.attr_stat.st_size = WEBDAV_DIR_SIZE; /* fake up the directory size */
870 statbuf.attr_stat.st_blocks = ((statbuf.attr_stat.st_size + S_BLKSIZE - 1) / S_BLKSIZE);
1182 statbuf.attr_stat.st_size = file_length;
1183 statbuf.attr_stat.st_blocks = ((statbuf.attr_stat.st_size + S_BLKSIZE - 1) / S_BLKSIZE);
H A Dwebdav_parse.c1128 statbuf->attr_stat.st_size = strtoq((const char *)text_ptr, &ep, 10);
1133 statbuf->attr_stat.st_size = -1LL;
1686 statbuf.attr_stat.st_size = WEBDAV_DIR_SIZE;
1693 statbuf.attr_stat.st_size = element_ptr->statsize;
1704 statbuf.attr_stat.st_blocks = ((statbuf.attr_stat.st_size + S_BLKSIZE - 1) / S_BLKSIZE);
1756 statbuf.attr_stat.st_size = WEBDAV_DIR_SIZE;
1759 statbuf.attr_stat.st_blocks = ((statbuf.attr_stat.st_size + S_BLKSIZE - 1) / S_BLKSIZE);
1878 * statbuf->attr_stat_info.attr_stat.st_size will be set to the resource size if the object is a file.
1906 statbuf->attr_stat.st_size = WEBDAV_DIR_SIZE;
1917 statbuf->attr_stat.st_blocks = ((statbuf->attr_stat.st_size
[all...]
/macosx-10.10/dyld-353.2.1/launch-cache/
H A Ddsc_extractor.cpp487 void* mapped_cache = mmap(NULL, statbuf.st_size, PROT_READ, MAP_PRIVATE, cache_fd, 0);
515 munmap(mapped_cache, statbuf.st_size);
521 __block int result = dyld_shared_cache_iterate(mapped_cache, (uint32_t)statbuf.st_size, ^(const dyld_shared_cache_dylib_info* dylibInfo, const dyld_shared_cache_segment_info* segInfo) {
527 munmap(mapped_cache, statbuf.st_size);
568 std::vector<uint8_t> *vec = new std::vector<uint8_t>(statbuf.st_size);
601 munmap(mapped_cache, statbuf.st_size);
H A DMachOLayout.hpp369 if ( stat_buf.st_size < 20 )
371 uint8_t* p = (uint8_t*)::mmap(NULL, stat_buf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0);
387 if ( fileOffset > stat_buf.st_size ) {
391 if ( (fileOffset+OSSwapBigToHostInt32(slices[i].size)) > stat_buf.st_size ) {
447 ::munmap(p, stat_buf.st_size);
H A Ddyld_shared_cache_util.cpp446 options.mappedCache = ::mmap(NULL, statbuf.st_size, PROT_READ, MAP_PRIVATE, cache_fd, 0);
500 uint64_t size = statbuf.st_size - header->codeSignatureOffset();
608 int iterateResult = dyld_shared_cache_iterate(options.mappedCache, (uint32_t)statbuf.st_size,
/macosx-10.10/bootp-298/bootpd.tproj/
H A DmacNC.c536 sb_shadow.st_size, needspace);
543 if (sb_shadow.st_size < needspace) {
551 difference = (needspace - sb_shadow.st_size);
795 sb_shadow.st_size, needspace);
802 if (sb_shadow.st_size < needspace) {
810 difference = (needspace - sb_shadow.st_size);
/macosx-10.10/diskdev_cmds-576/vsdbutil.tproj/
H A Dvsdbutil_main.c950 if ((dbinfo.st_size - dbstateptr->recordPosition - sizeof(struct VSDBEntry)) <= MAXIOMALLOC) {
951 iobuffersize = dbinfo.st_size - dbstateptr->recordPosition - sizeof(struct VSDBEntry);
957 (u_int32_t)dbinfo.st_size, (u_int32_t)dbstateptr->recordPosition);
969 iotransfersize = dbinfo.st_size - dataoffset;
998 fprintf(stderr, "DeleteLocalVolumeUUID: truncating database file to 0x%08lx bytes.\n", (u_int32_t)(dbinfo.st_size - (off_t)(sizeof(struct VSDBEntry))));
1000 if ((result = ftruncate(dbstateptr->dbfile, dbinfo.st_size - (off_t)(sizeof(struct VSDBEntry)))) != 0) {
/macosx-10.10/emacs-93/emacs/src/
H A Ddired.c814 st_inode, st_size and st_nlink for directories, and the execute bits
1004 values[7] = make_number (s.st_size);
1006 if (XINT (values[7]) != s.st_size)
1007 values[7] = make_float ((double)s.st_size);
1010 if (s.st_size < 0 && sizeof (s.st_size) == sizeof (long))
1011 values[7] = make_float ((double) ((unsigned long) s.st_size));
H A Dunexsni.c415 old_base = mmap (0, stat_buf.st_size, PROT_READ, MAP_SHARED, old_file, 0);
421 fprintf (stderr, "mmap(%s, %x) -> %x\n", old_name, stat_buf.st_size,
576 new_file_size = stat_buf.st_size +
/macosx-10.10/gnutar-453/gnutar/src/
H A Dsparse.c634 || file->stat_info->stat.st_size < sp.offset + sp.numbytes
645 /* NOTE! st_size was initialized from the header
647 file->stat_info->archive_file_size = file->stat_info->stat.st_size;
648 file->stat_info->stat.st_size =
720 OFF_TO_CHARS (file->stat_info->stat.st_size, blk->oldgnu_header.realsize);
770 /* NOTE! st_size was initialized from the header
772 file->stat_info->archive_file_size = file->stat_info->stat.st_size;
773 file->stat_info->stat.st_size =
/macosx-10.10/ntp-92/scripts/monitoring/
H A Dntploopwatch632 local($st_dev,$st_ino,$st_mtime,$st_size,$name,$key,$modified);
636 ($st_dev,$st_ino,$st_size,$st_mtime) =
655 if (!defined($F_size{$key}) || $F_size{$key} != $st_size)
657 $F_size{$key} = $st_size;
668 print " size: $st_size; mtime: $st_mtime;\n"
692 ($st_size > 4*$RecordSize) ? $st_size - 4*$RecordSize : 0,
/macosx-10.10/rsync-45/rsync/
H A Dgenerator.c346 if (S_ISREG(file->mode) && file->length != st->st_size)
386 if (st->st_size != file->length)
393 file_checksum(fn, sum, st->st_size);
1210 st.st_size = fuzzy_file->length;
1229 if (append_mode && st.st_size > file->length)
1321 fnamecmp, (double)st.st_size);
1356 generate_and_send_sums(fd, st.st_size, f_out, f_copy);
/macosx-10.10/configd-699.1.5/SystemConfiguration.fproj/
H A DSCPOpen.c549 if (statBuf.st_size > 0) {
557 xmlData = CFDataCreateMutable(allocator, (CFIndex)statBuf.st_size);
558 CFDataSetLength(xmlData, (CFIndex)statBuf.st_size);
559 if (read(fd, (void *)CFDataGetBytePtr(xmlData), (CFIndex)statBuf.st_size) != (CFIndex)statBuf.st_size) {
/macosx-10.10/gnudiff-19/diffutils/src/
H A Ddiff.c979 return st->st_size == 0 ? _("regular empty file") : _("regular file");
1141 cmp.file[f].stat.st_size =
1142 MAX (0, cmp.file[f].stat.st_size - pos);
1282 && cmp.file[0].stat.st_size != cmp.file[1].stat.st_size
/macosx-10.10/hfs-285/hfs_util/
H A Dhfsutil_jnl.c159 for(cur_pos=0; cur_pos < st.st_size; cur_pos += fs_block_size) {
274 blkcnt = st.st_size / blksize;
698 blkcnt = st.st_size / blksize;
994 blkcnt = st.st_size / blksize;
1152 blkcnt = st.st_size / blksize;
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/servers/slapd/
H A Dalock.c389 max_slot = (statbuf.st_size + ALOCK_SLOT_SIZE - 1) / ALOCK_SLOT_SIZE;
485 max_slot = (statbuf.st_size + ALOCK_SLOT_SIZE - 1) / ALOCK_SLOT_SIZE;
615 max_slot = (statbuf.st_size + ALOCK_SLOT_SIZE - 1) / ALOCK_SLOT_SIZE;
/macosx-10.10/gnutar-453/gnutar/tests/
H A Dgenfile.c262 if (st.st_size != file_length + seek_offset)
264 printf ("%lu %lu\n", (unsigned long)st.st_size , (unsigned long)file_length);
606 printf ("%s", umaxtostr (st.st_size, buf));
/macosx-10.10/ksh-23/ksh/src/cmd/ksh93/sh/
H A Dmain.c655 if(statb.st_size &&
658 || statb.st_size > lastmail.st_size))
/macosx-10.10/ksh-23/ksh/src/lib/libcmd/
H A Dtail.c166 return last || fstat(sffileno(fp), &st) || st.st_size || FIFO(st.st_mode) ? -1 : 0;
652 else if (fp->fifo || fp->end < st.st_size)
657 z = fp->fifo ? SF_UNBOUND : st.st_size - fp->cur;
/macosx-10.10/tcl-105/tcl_ext/tkimg/tkimg/compat/libtiff/tools/
H A Draw2tiff.c367 if (filestat.st_size < hdr_size) {
372 imagesize = (filestat.st_size - hdr_size) / nbands / depth;
429 if (filestat.st_size<(off_t)(hdr_size+(*width)*(*length)*nbands*depth)) {
/macosx-10.10/OpenSSH-189/openssh/
H A Dscp.c799 if (stb.st_size < 0) {
843 (long long)stb.st_size, last);
858 start_progress_meter(curfile, stb.st_size, &statbytes);
860 for (haderr = i = 0; i < stb.st_size; i += bp->cnt) {
862 if (i + (off_t)amt > stb.st_size)
863 amt = stb.st_size - i;
/macosx-10.10/Heimdal-398.1.2/appl/ftp/ftpd/
H A Dftpd.c962 st.st_size = 0;
1010 st.st_size = -1;
1020 st.st_size = -1;
1058 dout = dataconn(name, st.st_size, "w");
1380 && st.st_size > 0) {
1384 chunk = mmap(0, st.st_size, PROT_READ,
1387 cnt = st.st_size - restart_point;
1389 if (munmap(chunk, st.st_size) < 0)

Completed in 504 milliseconds

1234567891011>>