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

123

/macosx-10.9.5/dyld-239.4/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.9.5/dyld-239.4/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.9.5/cctools-845/libstuff/
H A Ddylib_table.c58 struct stat stat_buf; local
66 if(fstat(fd, &stat_buf) == -1)
74 if(stat_buf.st_size != 0){
75 file_addr = mmap(0, stat_buf.st_size, PROT_READ|PROT_WRITE,
84 file_size = stat_buf.st_size;
206 struct stat stat_buf; local
212 if(stat(guess, &stat_buf) != -1)
220 if(stat(guess, &stat_buf) != -1)
228 if(stat(guess, &stat_buf) != -1)
236 if(stat(guess, &stat_buf) !
[all...]
H A Dseg_addr_table.c86 struct stat stat_buf; local
94 if(fstat(fd, &stat_buf) == -1)
102 if(stat_buf.st_size != 0){
103 file_addr = mmap(0, stat_buf.st_size, PROT_READ|PROT_WRITE,
112 file_size = stat_buf.st_size;
242 struct stat stat_buf; local
250 if(fstat(fd, &stat_buf) == -1)
256 if(stat_buf.st_size != 0){
257 file_addr = mmap(0, stat_buf.st_size, PROT_READ|PROT_WRITE,
265 file_size = stat_buf
[all...]
H A Dsymbol_list.c56 struct stat stat_buf; local
63 if(fstat(fd, &stat_buf) == -1){
68 strings_size = stat_buf.st_size;
H A Ddylib_roots.c80 struct stat stat_buf; local
97 if(stat(image_file_name, &stat_buf) == -1){
/macosx-10.9.5/bash-92/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.9.5/dyld-239.4/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.9.5/dyld-239.4/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.9.5/dyld-239.4/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.9.5/dyld-239.4/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.9.5/dyld-239.4/launch-cache/
H A DMachOLayout.hpp348 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...]
/macosx-10.9.5/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.9.5/passwordserver_sasl-170/cyrus_sasl/dlcompat-20010505/
H A Ddlopen.c112 struct stat *stat_buf)
172 if(stat(pathbuf, stat_buf) == 0){
193 struct stat stat_buf; local
217 if(stat(path, &stat_buf) == -1){
226 if(_dl_search_paths(path, pathbuf, &stat_buf)){
246 if(p->dev == stat_buf.st_dev && p->ino == stat_buf.st_ino){
357 p->dev = stat_buf.st_dev;
358 p->ino = stat_buf.st_ino;
109 _dl_search_paths( const char *filename, char *pathbuf, struct stat *stat_buf) argument
/macosx-10.9.5/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.9.5/dcerpc-58/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.9.5/xnu-2422.115.4/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.9.5/IOKitUser-907.100.13/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.9.5/tcl-102/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.9.5/IOGraphics-471.92.1/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.9.5/emacs-92/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
/macosx-10.9.5/dyld-239.4/src/
H A Ddyld.cpp1862 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/cctools-845/misc/
H A Dseg_hack.c69 struct stat stat_buf; local
113 if(stat(input, &stat_buf) == -1)
115 writeout(archs, narchs, output, stat_buf.st_mode & 0777,

Completed in 242 milliseconds

123