Searched refs:statBuf (Results 1 - 25 of 38) sorted by last modified time

12

/macosx-10.9.5/kext_tools-326.95.1/
H A Dkextcache_main.c914 struct stat statBuf; local
934 if (EX_OK != statPath(toolArgs->kernelPath, &statBuf)) {
937 TIMESPEC_TO_TIMEVAL(&toolArgs->kernelTimes[0], &statBuf.st_atimespec);
938 TIMESPEC_TO_TIMEVAL(&toolArgs->kernelTimes[1], &statBuf.st_mtimespec);
H A Dkext_tools_util.c140 struct stat statBuf; local
149 if (fstat(fd, &statBuf) != 0) {
152 if ((statBuf.st_mode & S_IFMT) != S_IFREG) {
155 if (statBuf.st_size == 0) {
160 length = (CFIndex) statBuf.st_size;
521 struct stat statBuf; local
578 if (0 == stat(savePath, &statBuf)) {
579 mode = statBuf.st_mode;
H A Dkernelcache.c437 struct stat statBuf; local
463 if (fstat(fileDescriptor, &statBuf)) {
491 sliceData = readMachOSlice(fileDescriptor, 0, (size_t)statBuf.st_size);
509 if (modeOut) *modeOut = statBuf.st_mode;
511 TIMESPEC_TO_TIMEVAL(&machOTimesOut[0], &statBuf.st_atimespec);
512 TIMESPEC_TO_TIMEVAL(&machOTimesOut[1], &statBuf.st_mtimespec);
542 struct stat statBuf; local
576 if (fstat(fileDescriptor, &statBuf)) {
581 fileSliceSize = (size_t)statBuf.st_size;
966 struct stat statBuf; local
[all...]
/macosx-10.9.5/CF-855.17/
H A DCFBundle.c2087 struct statinfo statBuf; local
2094 if (fd >= 0 && fstat(fd, &statBuf) == 0 && (maploc = mmap(0, statBuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) != (void *)-1) {
2096 fileLength = statBuf.st_size;
2154 if (maploc) munmap(maploc, statBuf.st_size);
2562 struct statinfo statBuf; local
2563 if (gotPath && stat(path, &statBuf) == 0 && (statBuf.st_mode & S_IFMT) == S_IFREG && (fd = open(path, O_RDONLY | CF_OPENFLGS, 0777)) >= 0) {
2565 fileLength = statBuf.st_size;
H A DCFBundle_Resources.c1678 struct stat statBuf;
1684 if (stat(subdirPath, &statBuf) == 0) {
1685 isDir = ((statBuf.st_mode & S_IFMT) == S_IFDIR);
H A DCFFileUtilities.c104 struct statinfo statBuf; local
116 if (fstat(*fd, &statBuf) < 0) {
124 if ((statBuf.st_mode & S_IFMT) != S_IFREG) {
131 if (statBuf.st_size == 0) {
137 if ((maxLength >= statBuf.st_size) || (maxLength == 0)) {
138 desiredLength = statBuf.st_size;
179 struct statinfo statBuf; local
187 if (0 == stat(path, &statBuf)) {
188 mode = statBuf.st_mode;
458 struct statinfo statBuf; local
518 struct statinfo statBuf; local
[all...]
H A DCFUniChar.c235 struct stat statBuf;
241 if (fstat(fd, &statBuf) < 0 || (*bytes = mmap(0, statBuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == (void *)-1) {
247 if (NULL != fileSize) *fileSize = statBuf.st_size;
H A DCFUtilities.c1043 struct statinfo statBuf;
1054 if (fstat(fd, &statBuf) < 0) {
1060 if ((statBuf.st_mode & S_IFMT) != S_IFREG) {
1065 if (statBuf.st_size < 0LL) { // too small
1072 if (statBuf.st_size > (1LL << 31)) { // refuse to do more than 2GB
1079 if (0LL == statBuf.st_size) {
1084 if((void *)-1 == (bytes = mmap(0, (size_t)statBuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0))) {
1090 length = (unsigned long)statBuf.st_size;
1092 bytes = malloc(statBuf.st_size);
1098 size_t numBytesRemaining = (size_t)statBuf
[all...]
H A DCFXMLPreferencesDomain.c249 struct stat statBuf; local
250 if (0 == stat(cpath, &statBuf)) {
251 mode = statBuf.st_mode;
252 owner = statBuf.st_uid;
253 group = statBuf.st_gid;
/macosx-10.9.5/configd-596.15/SystemConfiguration.fproj/
H A DSCNetworkInterface.c2107 struct stat statBuf; local
2116 if (stat(path, &statBuf) != 0) {
2126 if (S_ISREG(statBuf.st_mode)) {
2140 if (stat(path, &statBuf) != 0) {
2151 if (S_ISDIR(statBuf.st_mode)) {
H A DSCPLock.c363 struct stat statBuf; local
467 if ((stat(prefsPrivate->lockPath, &statBuf) == -1) ||
469 (statBuf.st_dev != statBuf2.st_dev) ||
470 (statBuf.st_ino != statBuf2.st_ino)) {
496 if (stat(prefsPrivate->path, &statBuf) == -1) {
498 bzero(&statBuf, sizeof(statBuf));
507 currentSignature = __SCPSignatureFromStatbuf(&statBuf);
H A DSCPOpen.c498 struct stat statBuf; local
516 if (fstat(fd, &statBuf) == -1) {
518 bzero(&statBuf, sizeof(statBuf));
542 bzero(&statBuf, sizeof(statBuf));
546 prefsPrivate->signature = __SCPSignatureFromStatbuf(&statBuf);
548 if (statBuf.st_size > 0) {
556 xmlData = CFDataCreateMutable(allocator, statBuf.st_size);
557 CFDataSetLength(xmlData, statBuf
[all...]
H A DSCPreferencesInternal.h132 __SCPSignatureFromStatbuf (const struct stat *statBuf);
H A DSCPCommit.c145 struct stat statBuf; local
206 if (stat(prefsPrivate->path, &statBuf) == -1) {
208 bzero(&statBuf, sizeof(statBuf));
209 statBuf.st_mode = 0644;
210 statBuf.st_uid = geteuid();
211 statBuf.st_gid = getegid();
223 fd = open(thePath, O_WRONLY|O_CREAT, statBuf.st_mode);
232 (void) fchown(fd, statBuf.st_uid, statBuf
[all...]
H A DSCP.c45 __SCPSignatureFromStatbuf(const struct stat *statBuf) argument
56 sig->st_dev = statBuf->st_dev;
57 sig->st_ino = statBuf->st_ino;
58 sig->tv_sec = statBuf->st_mtimespec.tv_sec;
59 sig->tv_nsec = statBuf->st_mtimespec.tv_nsec;
60 sig->st_size = statBuf->st_size;
/macosx-10.9.5/PowerManagement-420.90.1/pmconfigd/
H A DPrivateLib.c3190 struct stat statBuf; local
3252 if (0 != stat(path, &statBuf)) createFile = true;
3255 if ((S_IFBLK == (S_IFMT & statBuf.st_mode))
3256 || (S_IFCHR == (S_IFMT & statBuf.st_mode)))
3260 else if (S_IFREG == (S_IFMT & statBuf.st_mode))
3262 if ((statBuf.st_size == filesize) || (kIOHibernateModeFileResize & modeValue))
/macosx-10.9.5/IOKitUser-907.100.13/kext.subproj/
H A DOSKext.c3161 struct stat statBuf; local
3173 if (0 != stat(path, &statBuf)) {
3192 *statOut = statBuf;
/macosx-10.9.5/WebKit2-7537.78.2/UIProcess/Launcher/mac/
H A DProcessLauncherMac.mm135 struct stat statBuf;
136 if (stat(processShimPath, &statBuf) == 0 && (statBuf.st_mode & S_IFMT) == S_IFREG)
/macosx-10.9.5/WebKit2-7537.78.2/Shared/mac/
H A DSandboxExtensionMac.mm172 struct stat statBuf;
175 if (!stat(path.data(), &statBuf)) {
/macosx-10.9.5/tcl-102/tcl84/tcl/generic/
H A DtclIOUtil.c1742 Tcl_StatBuf statBuf;
1757 if (Tcl_FSStat(pathPtr, &statBuf) == -1) {
2867 Tcl_StatBuf statBuf;
2870 ret = Tcl_FSStat(pathPtr, &statBuf);
2874 size = (int) statBuf.st_size;
2876 if (size != (Tcl_WideInt)statBuf.st_size) {
1718 Tcl_StatBuf statBuf; local
2826 Tcl_StatBuf statBuf; local
/macosx-10.9.5/tcl-102/tcl84/tcl/unix/
H A DtclUnixInit.c843 Tcl_StatBuf statBuf;
847 ! TclOSstat(tclLibPath, &statBuf) &&
848 S_ISDIR(statBuf.st_mode)) {
859 ! TclOSstat(tclLibPath, &statBuf) &&
860 S_ISDIR(statBuf.st_mode)) {
839 Tcl_StatBuf statBuf; local
/macosx-10.9.5/Heimdal-323.92.1/lib/sqlite/
H A Dsqlite3.c26877 struct stat statBuf; local
[all...]
/macosx-10.9.5/bzip2-29/bzip2/
H A Dbzip2.c694 struct MY_STAT statBuf; local
705 retVal = MY_STAT ( inName, &statBuf );
988 struct MY_STAT statBuf; local
990 i = MY_LSTAT ( name, &statBuf );
992 if (MY_S_ISREG(statBuf.st_mode)) return False;
1005 struct MY_STAT statBuf; local
1007 i = MY_LSTAT ( name, &statBuf );
1009 return (statBuf.st_nlink - 1);
1168 struct MY_STAT statBuf; local
1215 MY_STAT(inName, &statBuf);
1351 struct MY_STAT statBuf; local
1546 struct MY_STAT statBuf; local
[all...]
/macosx-10.9.5/IOKitUser-907.100.13/
H A DIOCFURLAccess.c249 struct stat statBuf; local
281 statResult = stat(cPath, &statBuf);
289 CFDataRef modeData = CFDataCreate(alloc, (void *)(&(statBuf.st_mode)), sizeof(statBuf.st_mode));
297 SInt32 value = statBuf.st_mode;
305 if (statResult == 0 && (statBuf.st_mode & S_IFMT) == S_IFDIR) {
318 UInt64 length = statBuf.st_size;
327 SInt64 length = statBuf.st_size;
336 CFDateRef date = CFDateCreate(alloc, statBuf.st_mtime - kCFAbsoluteTimeIntervalSince1970);
360 SInt32 uid = statBuf
434 struct stat statBuf; local
485 struct stat statBuf; local
533 struct stat statBuf; local
[all...]
/macosx-10.9.5/vim-53/src/
H A Dgui_at_fs.c186 static char SFstatChar __ARGS((struct stat *statBuf));
892 struct stat statBuf; local
895 if ((!mch_stat(".", &statBuf)) && (statBuf.st_mtime != dir->mtime))
963 struct stat statBuf; local
978 if (mch_stat(str, &statBuf))
981 newc = SFstatChar(&statBuf);
1039 SFstatChar(statBuf)
1040 struct stat *statBuf;
1042 if (S_ISDIR (statBuf
1358 struct stat statBuf; local
2122 struct stat statBuf; local
[all...]

Completed in 684 milliseconds

12