Lines Matching refs:sopen
1253 if (-1 == (fd = sopen(fdvol, path, oflags, kCacheFileMode))) {
1255 // XX sopen() should log on its own after we get errors correct
1281 // we must unlink even for ApplyTimes b/c sopen() passes O_EXCL
1383 // create cookie file (unlink so sopen() O_EXCL is clean)
1387 int fd = sopen(scopefd, taintf, O_CREAT, kCacheFileMode);
2048 if ((fd = sopen(scopefd, cookiepath, O_CREAT, kCacheFileMode)) < 0) {
2124 erfd = sopen(scopefd, dstpath, O_CREAT|O_RDWR, kCacheFileMode);
2415 fflags = O_WRONLY | O_CREAT | O_TRUNC; // sopen() adds EXCL/NOFOL
2416 if (-1 == (fd = sopen(caches->cachefd, fullp, fflags, kCacheFileMode))) {
2465 if ((gpfd = sopen(caches->cachefd, prefPath, O_RDONLY, 0)) >= 0 &&