/macosx-10.9.5/IOKitUser-907.100.13/ |
H A D | IOKitLib.c | 2764 struct stat stat_buf; local 2773 if(fstat(fd, &stat_buf) == -1) { 2777 if (0 == (stat_buf.st_mode & S_IFREG)) 2784 *objSize = stat_buf.st_size; 2786 *objAddr = (vm_address_t) mmap(NULL, round_page(stat_buf.st_size), PROT_READ, MAP_FILE|MAP_PRIVATE, fd, 0);
|
/macosx-10.9.5/IOKitUser-907.100.13/graphics.subproj/ |
H A D | IOGraphicsLib.c | 372 struct stat stat_buf; local 373 gIOGraphicsInstallBoot = (0 != stat(kAppleSetupDonePath, &stat_buf)); 2869 struct stat stat_buf; local 2870 if (0 == stat(kIOGraphicsLogfilePath, &stat_buf)) do
|
/macosx-10.9.5/dyld-239.4/src/ |
H A D | ImageLoader.cpp | 188 bool ImageLoader::statMatch(const struct stat& stat_buf) const 190 return ( (this->fDevice == stat_buf.st_dev) && (this->fInode == stat_buf.st_ino) );
|
H A D | ImageLoader.h | 322 bool statMatch(const struct stat& stat_buf) const;
|
H A D | ImageLoaderMachO.cpp | 1083 struct stat stat_buf; local 1084 if ( stat(newPath, &stat_buf) != -1 ) {
|
H A D | dyld.cpp | 1862 ImageLoader* findLoadedImage(const struct stat& stat_buf) argument 1867 if ( anImage->statMatch(stat_buf) ) 2182 static bool findInSharedCacheImage(const char* path, const struct stat* stat_buf, const macho_header** mh, const char** pathInCache, long* slide) argument 2189 if ( stat_buf == NULL ) { 2192 stat_buf = &statb; 2212 || ( ((time_t)p->modTime == stat_buf->st_mtime) && ((ino_t)p->inode == stat_buf->st_ino) ) ) { 2221 cacheHit = ( (pathInCacheStatBuf.st_dev == stat_buf->st_dev) && (pathInCacheStatBuf.st_ino == stat_buf->st_ino) ); 2288 static ImageLoader* loadPhase6(int fd, const struct stat& stat_buf, cons argument 2365 loadPhase5open(const char* path, const LoadContext& context, const struct stat& stat_buf, std::vector<const char*>* exceptions) argument 2401 struct stat stat_buf; local 2437 loadPhase5stat(const char* path, const LoadContext& context, struct stat* stat_buf, int* statErrNo, bool* imageFound, std::vector<const char*>* exceptions) argument 2471 struct stat stat_buf; local 3173 struct stat stat_buf; local 3345 struct stat stat_buf; local 3372 struct stat stat_buf; local [all...] |
/macosx-10.9.5/kext_tools-326.95.1/ |
H A D | kextd_main.c | 297 struct stat stat_buf; local 316 if (stat(kAppleSetupDonePath, &stat_buf) == -1 && errno == ENOENT) {
|
/macosx-10.9.5/IOKitUser-907.100.13/kext.subproj/ |
H A D | OSKext.c | 11641 struct stat stat_buf; local 11679 if (0 != stat(urlPath, &stat_buf) || 0 != lstat(urlPath, &lstat_buf)) { 11700 if ( (stat_buf.st_uid != 0) || (stat_buf.st_gid != 0 ) || 11701 (stat_buf.st_mode & S_IWOTH) || (stat_buf.st_mode & S_IWGRP) ) {
|
/macosx-10.9.5/dyld-239.4/launch-cache/ |
H A D | dsc_extractor.cpp | 298 struct stat stat_buf; local 299 if ( stat(dirs, &stat_buf) != 0 ) {
|
H A D | update_dyld_shared_cache.cpp | 200 struct stat stat_buf; local 201 if ( stat(completePath, &stat_buf) == 0 ) 208 struct stat stat_buf; local 209 if ( stat(completePath, &stat_buf) == 0 ) 262 struct stat stat_buf; local 263 if ( stat(completePath, &stat_buf) == 0 ) 273 if ( (lstat(pathToSymlink, &stat_buf) == 0) && S_ISLNK(stat_buf.st_mode) ) { 1030 struct stat stat_buf; local 1031 if ( stat(fCacheFilePath, &stat_buf) 1382 struct stat stat_buf; local 2510 struct stat stat_buf; local 2867 struct stat stat_buf; local 3092 struct stat stat_buf; local 3282 struct stat stat_buf; local [all...] |
H A D | MachOLayout.hpp | 348 struct stat stat_buf; local 349 if ( fstat(fd, &stat_buf) == -1) 351 if ( stat_buf.st_size < 20 ) 353 uint8_t* p = (uint8_t*)::mmap(NULL, stat_buf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, 0); 369 if ( fileOffset > stat_buf.st_size ) { 373 if ( (fileOffset+OSSwapBigToHostInt32(slices[i].size)) > stat_buf.st_size ) { 380 fLayouts.push_back(new MachOLayout<x86>(&p[fileOffset], fileOffset, fPath, stat_buf.st_ino, stat_buf.st_mtime, stat_buf.st_uid)); 383 fLayouts.push_back(new MachOLayout<x86_64>(&p[fileOffset], fileOffset, fPath, stat_buf [all...] |
H A D | MachORebaser.hpp | 1014 struct stat stat_buf; 1015 if ( fstat(fd, &stat_buf) == -1) 1017 if ( stat_buf.st_size < 20 ) 1021 uint8_t* p = (uint8_t*)::mmap(NULL, stat_buf.st_size, prot, flags, fd, 0); 1075 fFileSize = stat_buf.st_size;
|
/macosx-10.9.5/dcerpc-58/dcerpc/idl_compiler/ |
H A D | files.c | 177 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
|
H A D | files.h | 126 struct stat *stat_buf,
|
H A D | frontend.c | 357 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
|
/macosx-10.9.5/system_cmds-597.90.1/system_cmds-597.1.1/trace.tproj/ |
H A D | trace.c | 2280 struct stat stat_buf; local 2290 if (fstat(fd, &stat_buf) == -1) 2300 file_size = stat_buf.st_size; 2302 if (stat_buf.st_size != 0) 2304 if ((file_addr = mmap(0, stat_buf.st_size, PROT_READ|PROT_WRITE,
|
/macosx-10.9.5/system_cmds-597.90.1/trace.tproj/ |
H A D | trace.c | 2280 struct stat stat_buf; local 2290 if (fstat(fd, &stat_buf) == -1) 2300 file_size = stat_buf.st_size; 2302 if (stat_buf.st_size != 0) 2304 if ((file_addr = mmap(0, stat_buf.st_size, PROT_READ|PROT_WRITE,
|
/macosx-10.9.5/xnu-2422.115.4/SETUP/kextsymboltool/ |
H A D | kextsymboltool.c | 116 struct stat stat_buf; local 126 if(fstat(fd, &stat_buf) == -1) 129 if (0 == (stat_buf.st_mode & S_IFREG)) 135 if (0 == stat_buf.st_size) { 140 *objSize = stat_buf.st_size;
|
/macosx-10.9.5/xnu-2422.115.4/SETUP/setsegname/ |
H A D | setsegname.c | 59 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.9.5/emacs-92/emacs/lib-src/ |
H A D | etags.c | 1652 struct stat stat_buf; 1686 if (stat (real_name, &stat_buf) != 0) 1692 if (stat (uncompressed_name, &stat_buf) == 0) 1700 if (stat (compressed_name, &stat_buf) != 0) 1709 if (stat (compressed_name, &stat_buf) == 0) 1735 if (!S_ISREG (stat_buf.st_mode)) 1647 struct stat stat_buf; local
|
/macosx-10.9.5/dyld-239.4/unit-tests/test-cases/bundle-memory-load/ |
H A D | main.c | 47 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.9.5/dyld-239.4/unit-tests/test-cases/bundle-memory-load-all-infos/ |
H A D | main.c | 61 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.9.5/dyld-239.4/unit-tests/test-cases/bundle-memory-load-bad/ |
H A D | main.c | 45 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.9.5/dyld-239.4/unit-tests/test-cases/bundle-memory-load-fat/ |
H A D | main.c | 47 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.9.5/dyld-239.4/unit-tests/test-cases/bundle-memory-load-malloc/ |
H A D | main.c | 50 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 ) {
|