Searched refs:stat_buf (Results 1 - 25 of 46) sorted by relevance

12

/macosx-10.10.1/dyld-353.2.1/unit-tests/test-cases/bundle-memory-load-bad/
H A Dmain.c45 struct stat stat_buf; local
46 if ( fstat(fd, &stat_buf) == -1) {
51 void* loadAddress = mmap(NULL, stat_buf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0);
61 if ( NSCreateObjectFileImageFromMemory(loadAddress, stat_buf.st_size, &ofi) == NSObjectFileImageSuccess )
/macosx-10.10.1/dyld-353.2.1/unit-tests/test-cases/bundle-memory-load-malloc/
H A Dmain.c50 struct stat stat_buf; local
51 if ( fstat(fd, &stat_buf) == -1) {
56 void* loadAddress = malloc((stat_buf.st_size+4095) & (-4096));
62 if ( pread(fd, loadAddress, stat_buf.st_size, 0) != stat_buf.st_size ) {
67 //void* loadAddress2 = mmap(NULL, stat_buf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0);
71 if ( NSCreateObjectFileImageFromMemory(loadAddress, stat_buf.st_size, &ofi) != NSObjectFileImageSuccess ) {
/macosx-10.10.1/bash-94.1.2/bash-3.2/
H A Dtest.c495 struct stat stat_buf; local
501 return (sh_stat (arg, &stat_buf) == 0);
513 return (sh_stat (arg, &stat_buf) == 0 &&
514 (uid_t) current_user.euid == (uid_t) stat_buf.st_uid);
517 return (sh_stat (arg, &stat_buf) == 0 &&
518 (gid_t) current_user.egid == (gid_t) stat_buf.st_gid);
521 return (sh_stat (arg, &stat_buf) == 0 &&
522 stat_buf.st_atime <= stat_buf.st_mtime);
525 if (sh_stat (arg, &stat_buf) <
[all...]
/macosx-10.10.1/dyld-353.2.1/unit-tests/test-cases/bundle-memory-load/
H A Dmain.c47 struct stat stat_buf; local
48 if ( fstat(fd, &stat_buf) == -1) {
53 void* loadAddress = mmap(NULL, stat_buf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0);
62 if ( NSCreateObjectFileImageFromMemory(loadAddress, stat_buf.st_size, &ofi) != NSObjectFileImageSuccess ) {
/macosx-10.10.1/dyld-353.2.1/unit-tests/test-cases/bundle-memory-load-all-infos/
H A Dmain.c61 struct stat stat_buf; local
62 if ( fstat(fd, &stat_buf) == -1) {
67 void* loadAddress = mmap(NULL, stat_buf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0);
76 if ( NSCreateObjectFileImageFromMemory(loadAddress, stat_buf.st_size, &ofi) != NSObjectFileImageSuccess ) {
/macosx-10.10.1/dyld-353.2.1/unit-tests/test-cases/bundle-memory-load-fat/
H A Dmain.c47 struct stat stat_buf; local
48 if ( fstat(fd, &stat_buf) == -1) {
53 void* loadAddress = mmap(NULL, stat_buf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0);
62 if ( NSCreateObjectFileImageFromMemory(loadAddress, stat_buf.st_size, &ofi) != NSObjectFileImageSuccess ) {
/macosx-10.10.1/dyld-353.2.1/unit-tests/test-cases/bundle-v-dylib/
H A Dmain.c50 struct stat stat_buf; local
51 if ( fstat(fd, &stat_buf) == -1) {
56 void* loadAddress = mmap(NULL, stat_buf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0);
65 if ( NSCreateObjectFileImageFromMemory(loadAddress, stat_buf.st_size, &ofi) == NSObjectFileImageSuccess ) {
/macosx-10.10.1/gnudiff-19/diffutils/src/
H A Dcmp.c71 static struct stat stat_buf[2];
293 if (file_desc[f1] < 0 || fstat (file_desc[f1], stat_buf + f1) != 0)
311 if (0 < same_file (&stat_buf[0], &stat_buf[1])
312 && same_file_attributes (&stat_buf[0], &stat_buf[1])
334 && S_ISREG (stat_buf[0].st_mode)
335 && S_ISREG (stat_buf[1].st_mode))
337 off_t s0 = stat_buf[0].st_size - file_position (0);
338 off_t s1 = stat_buf[
70 static struct stat stat_buf[2]; variable in typeref:struct:stat
[all...]
/macosx-10.10.1/dyld-353.2.1/launch-cache/
H A DMachOLayout.hpp366 struct stat stat_buf; local
367 if ( fstat(fd, &stat_buf) == -1)
369 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 ) {
398 fLayouts.push_back(new MachOLayout<x86>(&p[fileOffset], fileOffset, fPath, stat_buf.st_ino, stat_buf.st_mtime, stat_buf.st_uid));
401 fLayouts.push_back(new MachOLayout<x86_64>(&p[fileOffset], fileOffset, fPath, stat_buf
[all...]
/macosx-10.10.1/passwordserver_sasl-193/cyrus_sasl/dlcompat-20010505/
H A Ddlopen.c109 struct stat *stat_buf)
170 if(stat(pathbuf, stat_buf) == 0){
191 struct stat stat_buf; local
215 if(stat(path, &stat_buf) == -1){
224 if(_dl_search_paths(path, pathbuf, &stat_buf)){
244 if(p->dev == stat_buf.st_dev && p->ino == stat_buf.st_ino){
355 p->dev = stat_buf.st_dev;
356 p->ino = stat_buf.st_ino;
106 _dl_search_paths( const char *filename, char *pathbuf, struct stat *stat_buf) argument
/macosx-10.10.1/file-46/file/src/
H A Dreadmacho.c65 struct stat stat_buf; local
73 if (fstat(fd, &stat_buf) == -1) {
77 size = stat_buf.st_size;
/macosx-10.10.1/dcerpc-61/dcerpc/idl_compiler/
H A Dfiles.h126 struct stat *stat_buf,
H A Dfrontend.c357 struct stat stat_buf;
373 if (!FILE_lookup(file_name, idir_list, &stat_buf, new_import_full_fn, sizeof (new_import_full_fn)))
456 struct stat stat_buf; /* File lookup stats */
481 if (!FILE_lookup(sf, idir_list, &stat_buf, full_path_name, sizeof (full_path_name)))
598 acf_exists = FILE_lookup(acf_file, idir_list, &stat_buf, full_acf_name, sizeof (full_acf_name));
792 struct stat stat_buf; /* File lookup info */
829 if (FILE_lookup(file_name, NULL, &stat_buf, imported_fn, sizeof (imported_fn)))
354 struct stat stat_buf; local
452 struct stat stat_buf; /* File lookup stats */ local
787 struct stat stat_buf; /* File lookup info */ local
H A Dfiles.c177 struct stat *stat_buf, /*[out] Stat buffer - see stat.h */
188 if (stat(filespec, stat_buf) != -1)
207 && stat(lookup_spec, stat_buf) != -1)
222 if (stat(lookup_spec, stat_buf) != -1)
169 FILE_lookup( char const *filespec, char const * const *idir_list, struct stat *stat_buf, char *lookup_spec, size_t lookup_spec_len ) argument
/macosx-10.10.1/xnu-2782.1.97/SETUP/setsegname/
H A Dsetsegname.c59 struct stat stat_buf; local
69 if (fstat(fd, &stat_buf) == -1) {
73 if (0 == (stat_buf.st_mode & S_IFREG)) {
77 if (0 == stat_buf.st_size) {
82 *objSize = stat_buf.st_size;
/macosx-10.10.1/IOKitUser-1050.1.21/kext.subproj/
H A Dfat_util.c133 struct stat stat_buf; local
143 if (fstat(fd, &stat_buf) == -1) {
147 if (stat_buf.st_size < (off_t)sizeof(struct mach_header)) {
151 file_data = (vm_address_t)mmap(0, stat_buf.st_size, PROT_READ,
160 (char *)file_data + stat_buf.st_size, macho_only)) {
177 munmap((void *)file_data, stat_buf.st_size);
/macosx-10.10.1/tcl-105/tcl_ext/expect/expect/
H A Dpty_termios.c376 struct stat stat_buf; local
433 if (fstat(master, &stat_buf) < 0) {
437 ptynum = minor(stat_buf.st_rdev);
494 if (stat(master_name, &stat_buf) < 0) break;
511 if (stat (master_name, &stat_buf) < 0)
549 if (stat(master_name, &stat_buf) < 0) break;
567 if (stat(master_name, &stat_buf) < 0) break;
583 if (stat(master_name, &stat_buf) < 0) break;
/macosx-10.10.1/IOGraphics-485/tools/
H A Dmodesuck.c25 struct stat stat_buf; local
34 if(fstat(fd, &stat_buf) == -1) {
38 if (0 == (stat_buf.st_mode & S_IFREG))
45 *objSize = stat_buf.st_size;
/macosx-10.10.1/dyld-353.2.1/src/
H A Ddyld.cpp1903 ImageLoader* findLoadedImage(const struct stat& stat_buf) argument
1908 if ( anImage->statMatch(stat_buf) )
2256 static bool findInSharedCacheImage(const char* path, bool searchByPath, const struct stat* stat_buf, const macho_header** mh, const char** pathInCache, long* slide) argument
2263 if ( stat_buf == NULL ) {
2266 stat_buf = &statb;
2296 bool inodeMatch = ( ((time_t)p->modTime == stat_buf->st_mtime) && ((ino_t)p->inode == stat_buf->st_ino) );
2306 cacheHit = ( (pathInCacheStatBuf.st_dev == stat_buf->st_dev) && (pathInCacheStatBuf.st_ino == stat_buf->st_ino) );
2399 static ImageLoader* loadPhase6(int fd, const struct stat& stat_buf, cons argument
2483 loadPhase5open(const char* path, const LoadContext& context, const struct stat& stat_buf, std::vector<const char*>* exceptions) argument
2519 struct stat stat_buf; local
2555 loadPhase5stat(const char* path, const LoadContext& context, struct stat* stat_buf, int* statErrNo, bool* imageFound, std::vector<const char*>* exceptions) argument
2589 struct stat stat_buf; local
2998 struct stat stat_buf; local
3367 struct stat stat_buf; local
3556 struct stat stat_buf; local
3586 struct stat stat_buf; local
[all...]
/macosx-10.10.1/emacs-93/emacs/src/
H A Dunexsni.c403 struct stat stat_buf;
412 if (fstat (old_file, &stat_buf) == -1)
415 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,
568 * pointers to various interesting objects. stat_buf still has
576 new_file_size = stat_buf.st_size +
915 if (stat (new_name, &stat_buf) == -1)
920 stat_buf.st_mode |= 0111 & ~n;
921 if (chmod (new_name, stat_buf.st_mode) == -1)
402 struct stat stat_buf; local
H A Dunexelf.c693 struct stat stat_buf;
707 if (fstat (old_file, &stat_buf) == -1)
720 old_file_size = stat_buf.st_size;
726 if (read (old_file, old_base, stat_buf.st_size) != stat_buf.st_size)
818 objects. stat_buf still has old_file data. */
824 new_file_size = stat_buf.st_size + old_file_h->e_shentsize + new_data2_size;
1385 if (stat (new_name, &stat_buf) == -1)
1390 stat_buf.st_mode |= 0111 & ~n;
1391 if (chmod (new_name, stat_buf
691 struct stat stat_buf; local
[all...]
/macosx-10.10.1/OpenLDAP-499.27/OpenLDAP/servers/slapd/
H A Dslapadd.c338 struct stat stat_buf; local
395 && !fstat ( fileno ( ldiffp->fp ), &stat_buf )
396 && S_ISREG(stat_buf.st_mode) ) {
401 stat_buf.st_size);
/macosx-10.10.1/ICU-531.30/icuSources/tools/toolutil/
H A Dtoolutil.cpp208 struct stat stat_buf; local
209 if (stat(file, &stat_buf) == 0) {
/macosx-10.10.1/kext_tools-384.1.4/
H A Dmkextunpack_main.c129 struct stat stat_buf; local
211 if (stat(outputDirectory, &stat_buf) < 0) {
218 if ((stat_buf.st_mode & S_IFMT) != S_IFDIR) {
233 if (stat(mkextFile, &stat_buf) < 0) {
253 if ( !(stat_buf.st_mode & S_IFREG) ) {
260 if (!stat_buf.st_size) {
267 mkextFileContents = mmap(0, (size_t)stat_buf.st_size, PROT_READ,
275 if (!getMkextDataForArch(mkextFileContents, (size_t)stat_buf.st_size,
/macosx-10.10.1/man-16/man/misc/
H A Dman-preformat.c77 struct stat stat_buf; /* results of a stat system call */ local
80 rc = stat(need_dir, &stat_buf);

Completed in 259 milliseconds

12