Searched refs:statBuf (Results 1 - 25 of 38) sorted by relevance

12

/macosx-10.9.5/configd-596.15/SystemConfiguration.fproj/
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;
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 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 DSCPreferencesInternal.h132 __SCPSignatureFromStatbuf (const struct stat *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...]
/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/tcl-102/tcl/tcl/unix/
H A DtclUnixFCmd.c839 Tcl_StatBuf statBuf;
842 if (TclOSstat(path, &statBuf) == 0) {
843 oldPerm = (mode_t) (statBuf.st_mode & 0x00007FFF);
926 Tcl_StatBuf statBuf;
945 if (TclOSlstat(source, &statBuf) != 0) { /* INTL: Native. */
949 if (!S_ISDIR(statBuf.st_mode)) {
954 return (*traverseProc)(sourcePtr, targetPtr, &statBuf, DOTREE_F,
967 result = (*traverseProc)(sourcePtr, targetPtr, &statBuf, DOTREE_PRED,
1041 result = (*traverseProc)(sourcePtr, targetPtr, &statBuf, DOTREE_POSTD,
1086 statBufPtr = &statBuf;
832 Tcl_StatBuf statBuf; local
918 Tcl_StatBuf statBuf; local
1311 Tcl_StatBuf statBuf; local
1365 Tcl_StatBuf statBuf; local
1419 Tcl_StatBuf statBuf; local
2109 Tcl_StatBuf statBuf; local
2151 Tcl_StatBuf statBuf; local
[all...]
H A DtclUnixInit.c838 Tcl_StatBuf statBuf;
844 ! TclOSstat(tclLibPath, &statBuf) &&
845 S_ISDIR(statBuf.st_mode)) {
857 ! TclOSstat(tclLibPath, &statBuf) &&
858 S_ISDIR(statBuf.st_mode)) {
834 Tcl_StatBuf statBuf; local
H A DtclUnixFile.c45 Tcl_StatBuf statBuf;
111 && (TclOSstat(name, &statBuf) == 0) /* INTL: Native. */
112 && S_ISREG(statBuf.st_mode)) {
252 Tcl_StatBuf statBuf;
289 if ((TclOSstat(native, &statBuf) != 0) /* INTL: Native. */
290 || !S_ISDIR(statBuf.st_mode)) {
44 Tcl_StatBuf statBuf; local
250 Tcl_StatBuf statBuf; local
/macosx-10.9.5/tcl-102/tcl84/tcl/unix/
H A DtclUnixFCmd.c808 Tcl_StatBuf statBuf;
811 if (TclOSstat(path, &statBuf) == 0) {
812 oldPerm = (mode_t) (statBuf.st_mode & 0x00007FFF);
891 Tcl_StatBuf statBuf;
910 if (TclOSlstat(source, &statBuf) != 0) { /* INTL: Native. */
914 if (!S_ISDIR(statBuf.st_mode)) {
919 return (*traverseProc)(sourcePtr, targetPtr, &statBuf, DOTREE_F,
932 result = (*traverseProc)(sourcePtr, targetPtr, &statBuf, DOTREE_PRED,
1005 result = (*traverseProc)(sourcePtr, targetPtr, &statBuf, DOTREE_POSTD,
1050 statBufPtr = &statBuf;
801 Tcl_StatBuf statBuf; local
883 Tcl_StatBuf statBuf; local
1285 Tcl_StatBuf statBuf; local
1338 Tcl_StatBuf statBuf; local
1391 Tcl_StatBuf statBuf; local
[all...]
H A DtclUnixFile.c52 Tcl_StatBuf statBuf;
123 && (TclOSstat(name, &statBuf) == 0) /* INTL: Native. */
124 && S_ISREG(statBuf.st_mode)) {
235 Tcl_StatBuf statBuf;
269 if ((TclOSstat(native, &statBuf) != 0) /* INTL: Native. */
270 || !S_ISDIR(statBuf.st_mode)) {
51 Tcl_StatBuf statBuf; local
233 Tcl_StatBuf statBuf; local
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/tcl-102/tcl_ext/tclx/tclx/win/
H A DtclXwinOS.c645 * o statBuf - Status information, made to look as much like Unix as
656 struct stat *statBuf,
679 statBuf->st_dev = 0;
680 statBuf->st_ino = 0;
681 statBuf->st_rdev = 0;
683 statBuf->st_mode = 0;
686 statBuf->st_mode |= S_IFIFO;
689 statBuf->st_mode |= S_IFREG;
692 statBuf->st_mode |= S_IFSOCK;
695 statBuf
636 TclXOSFstat(Tcl_Interp *interp, Tcl_Channel channel, struct stat *statBuf, int *ttyDev) argument
[all...]
/macosx-10.9.5/CF-855.17/
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 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/tcl-102/tcl_ext/tclx/tclx/generic/
H A DtclXfstat.c334 struct stat statBuf;
346 if (TclXOSFstat (interp, channel, &statBuf, &ttyDev)) {
363 return ReturnStatArray (interp, ttyDev, &statBuf, objv [3]);
365 return ReturnStatItem (interp, channel, ttyDev, &statBuf,
369 ReturnStatList (interp, ttyDev, &statBuf);
329 struct stat statBuf; local
/macosx-10.9.5/tcl-102/tcl/tcl/generic/
H A DtclFCmd.c116 Tcl_StatBuf statBuf;
150 if ((Tcl_FSStat(target, &statBuf) != 0) || !S_ISDIR(statBuf.st_mode)) {
233 Tcl_StatBuf statBuf;
260 if (Tcl_FSStat(target, &statBuf) == 0) {
261 if (!S_ISDIR(statBuf.st_mode)) {
282 if ((Tcl_FSStat(target, &statBuf) == 0)
283 && S_ISDIR(statBuf.st_mode)) {
370 Tcl_StatBuf statBuf;
382 if (Tcl_FSLstat(objv[i], &statBuf) !
113 Tcl_StatBuf statBuf; local
229 Tcl_StatBuf statBuf; local
365 Tcl_StatBuf statBuf; local
[all...]
/macosx-10.9.5/tcl-102/tcl84/tcl/generic/
H A DtclFCmd.c117 Tcl_StatBuf statBuf;
152 if ((Tcl_FSStat(target, &statBuf) != 0) || !S_ISDIR(statBuf.st_mode)) {
236 Tcl_StatBuf statBuf;
262 if (Tcl_FSStat(target, &statBuf) == 0) {
263 if (!S_ISDIR(statBuf.st_mode)) {
283 if ((Tcl_FSStat(target, &statBuf) == 0)
284 && S_ISDIR(statBuf.st_mode)) {
367 Tcl_StatBuf statBuf;
379 if (Tcl_FSLstat(objv[i], &statBuf) !
114 Tcl_StatBuf statBuf; local
232 Tcl_StatBuf statBuf; local
362 Tcl_StatBuf statBuf; local
[all...]
/macosx-10.9.5/tcl-102/tcl/tcl/macosx/
H A DtclMacOSXFCmd.c133 Tcl_StatBuf statBuf;
140 result = TclpObjStat(fileName, &statBuf);
148 if (S_ISDIR(statBuf.st_mode) && objIndex != MACOSX_HIDDEN_ATTRIBUTE) {
226 Tcl_StatBuf statBuf;
233 result = TclpObjStat(fileName, &statBuf);
241 if (S_ISDIR(statBuf.st_mode) && objIndex != MACOSX_HIDDEN_ATTRIBUTE) {
132 Tcl_StatBuf statBuf; local
224 Tcl_StatBuf statBuf; local
/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/kext_tools-326.95.1/
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...]
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;
/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...]
/macosx-10.9.5/tcl-102/tcl_ext/tclx/tclx/unix/
H A DtclXunixOS.c660 * o statBuf - Status information, made to look as much like Unix as
669 TclXOSFstat (interp, channel, statBuf, ttyDev)
672 struct stat *statBuf;
677 if (fstat (fileNum, statBuf) < 0) {
706 struct stat statBuf;
714 if (fstat (fileNum, &statBuf) < 0) {
719 if (S_ISREG (statBuf.st_mode)) {
821 struct stat statBuf;
823 if (fstat (ChannelToFnum (channel, 0), &statBuf)) {
826 *fileSize = statBuf
689 struct stat statBuf; local
802 struct stat statBuf; local
[all...]

Completed in 478 milliseconds

12