• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/kext_tools-384.1.4/

Lines Matching refs:curbootfd

134     int curbootfd;                      // Sec: handle to curMount
205 * #6 we get curbootfd after each apple_boot mount
326 if ((fstatfs(up->curbootfd, &sfs) == 0) &&
332 if ((fstat(up->curbootfd, &sb) == 0) &&
334 if (fchown(up->curbootfd, UID_ROOT, GID_WHEEL) == -1) {
342 if (sdeepunlink(up->curbootfd, bloatp) == -1) {
350 if (sdeepunlink(up->curbootfd, bloatp) == -1) {
358 fd = sopen(up->curbootfd, blockp, O_CREAT, kCacheFileMode);
367 if (sdeepunlink(up->curbootfd, bloatp) == -1) {
379 if (sdeepunlink(up->curbootfd, bloatp) == -1) {
389 if (sdeepmkdir(up->curbootfd, bloatp, kCacheDirMode) == -1) {
392 fd = sopen(up->curbootfd, blockp, O_CREAT, kCacheFileMode);
502 if (up->curbootfd != -1) {
503 close(up->curbootfd);
504 up->curbootfd = -1;
530 (void)sdeepunlink(up->curbootfd, path);
539 markNotBRDefault(up->curbootfd, up->curMount, NULL, true);
579 markNotBRDefault(up->curbootfd, up->curMount, NULL, false);
812 up->curbootfd = -1; // should be -1 or valid descriptor
869 if (up->curbootfd != -1) {
870 close(up->curbootfd);
871 up->curbootfd = -1;
1059 up.curbootfd = -1;
1360 up.curbootfd = -1;
1571 result = schdir(up->curbootfd, up->curMount, &fd);
1650 up.curbootfd = -1;
1685 opres = sunlink(up.curbootfd, path);
1691 opres = sunlink(up.curbootfd, path);
1713 opres = sdeepunlink(up.curbootfd, path);
1721 opres = sdeepunlink(up.curbootfd, path);
1772 (void)sunlink(up->curbootfd, path);
1773 rval |= srename(up->curbootfd, oldpath, path);
1784 (void)sunlink(up->curbootfd, path);
1785 rval |= srename(up->curbootfd, oldpath, path);
2028 if (-1 == (up->curbootfd = open(up->curMount, O_RDONLY, 0))) {
2040 if (fstatfs(up->curbootfd, &bsfs)) {
2094 // clean up curbootfd
2095 if (up->curbootfd != -1) {
2096 close(up->curbootfd);
2097 up->curbootfd = -1;
2168 opres = sdeepmkdir(up->curbootfd, dstparent, kCacheDirMode);
2174 (void)sunlink(up->curbootfd, dstpath);
2175 fd = sopen(up->curbootfd, dstpath, O_WRONLY|O_CREAT, kCacheFileMode);
2217 if (szerofile(up->curbootfd, path))
2221 rval = sdeepunlink(up->curbootfd, toErase);
2337 if ((errnum=writeCSFDEProps(up->curbootfd,up->csfdeprops,csbsd,dstpath))){
2407 if ((bsderr = sdeepmkdir(up->curbootfd, up->dstdir, kCacheDirMode))) {
2448 up->curbootfd,
2505 bsderr=scopyitem(up->caches->cachefd,srcpath,up->curbootfd,dstpath);
2550 bsderr=scopyitem(up->caches->cachefd,srcpath,up->curbootfd,dstpath);
2593 up->curbootfd, dstpath))) {
2646 rval = srename(up->curbootfd, path, newpath);
2650 if (-1 == (fd=sopen(up->curbootfd, newpath, O_RDWR, 0))) goto finish;
2690 opres = sunlink(up->curbootfd, labelp);
2704 opres = sunlink(up->curbootfd, labelp);
2718 opres = sunlink(up->curbootfd, labelp);
2730 opres = sunlink(up->curbootfd, labelp);
2774 (void)sunlink(up->curbootfd, oldpath);
2775 bsderr = srename(up->curbootfd, up->ofdst, oldpath);
2783 up->curbootfd, up->ofdst))) {
2802 (void)sunlink(up->curbootfd, oldpath);
2803 bsderr = srename(up->curbootfd, up->efidst, oldpath);
2811 up->curbootfd, up->efidst))) {
2855 if ((errnum = fcntl(up->curbootfd, F_FULLFSYNC))) {
2865 if (-1==(fd=sopen(up->curbootfd, up->ofdst, O_RDONLY, 0))) {
2875 if (-1 == (fd=sopen(up->curbootfd, parent, O_RDONLY, 0))
2890 if (-1==(fd=sopen(up->curbootfd, up->efidst, O_RDONLY, 0))
2904 if (-1 == (fd=sopen(up->curbootfd, parent, O_RDONLY, 0))
2977 if (srename(up->curbootfd, prevRPS, nextRPS)) goto finish;
2982 if (fcntl(up->curbootfd, F_FULLFSYNC)) goto finish;
3053 if (srename(up->curbootfd, opath, path)) continue;
3066 (void)srename(up->curbootfd, newpath, path);
3071 if (-1 == (fd = sopen(up->curbootfd, path, O_RDWR, 0))) goto finish;
3116 if ((bsderr = sunlink(up->curbootfd, delpath)) && errno != ENOENT) {
3123 if ((bsderr = sunlink(up->curbootfd, delpath)) && errno != ENOENT) {