Lines Matching defs:g_dirfd

266 	int	g_dirfd;	/* directory file descriptor */
731 Gen.g_dirfd = -1;
757 Gen.g_dirfd = -1;
765 if (Gen.g_dirfd != -1) {
766 (void) close(Gen.g_dirfd);
768 Gen.g_dirfd = -1;
783 Gen.g_dirfd = -1;
807 if (Gen.g_dirfd != -1) {
808 (void) close(Gen.g_dirfd);
810 Gen.g_dirfd = -1;
2090 (void) fchdir(G_p->g_dirfd);
2776 rstfiles(U_KEEP, G_p->g_dirfd);
2795 rstfiles(U_KEEP, G_p->g_dirfd);
2797 rstfiles(U_OVER, G_p->g_dirfd);
2998 rstfiles(U_KEEP, G_p->g_dirfd);
3235 rstfiles(U_KEEP, G_p->g_dirfd);
3266 if ((Ifile = openat(G_p->g_dirfd, get_component(namep), 0)) < 0) {
3472 (void) creat_lnk(G_p->g_dirfd,
3481 creat_spec(G_p->g_dirfd) > 0) {
3490 (Ofile = openout(G_p->g_dirfd)) < 0) {
3501 if (proc_file != F_SKIP && creat_spec(G_p->g_dirfd) > 0) {
3513 if (proc_file != F_SKIP && creat_spec(G_p->g_dirfd) > 0)
3517 (Ofile = openout(G_p->g_dirfd)) < 0) {
3542 if (creat_spec(G_p->g_dirfd) > 0)
3546 openout(G_p->g_dirfd)) < 0) {
3565 (void) fchdir(G_p->g_dirfd);
3572 (void) creat_lnk(G_p->g_dirfd,
3604 (void) creat_lnk(G_p->g_dirfd,
3608 (void) creat_spec(G_p->g_dirfd);
3613 openout(G_p->g_dirfd)) < 0) {
5046 if (Gen.g_dirfd != -1) {
5047 (void) close(Gen.g_dirfd);
5048 Gen.g_dirfd = -1;
5072 if (Gen.g_dirfd != -1) {
5073 (void) close(Gen.g_dirfd);
5075 Gen.g_dirfd = attropen(Gen.g_attrfnam_p, ".", O_RDONLY);
5076 if (Gen.g_dirfd == -1) {
5089 if (Gen.g_dirfd != -1) {
5090 (void) close(Gen.g_dirfd);
5092 Gen.g_dirfd = open(dir, O_RDONLY);
5093 if (Gen.g_dirfd == -1) {
5104 * to open the dir, but we can use the g_dirfd
5109 Gen.g_dirfd == -1) {
5132 if (Gen.g_dirfd != -1) {
5133 (void) close(Gen.g_dirfd);
5136 Gen.g_dirfd = open(dir, O_RDONLY);
5137 if (Gen.g_dirfd == -1) {
5146 Gen.g_dirfd = -1;
5173 if (!LSTAT(Gen.g_dirfd, Gen.g_nam_p, &SrcSt)) {
5181 if (STAT(Gen.g_dirfd,
6330 set_tym(G_p->g_dirfd, get_component(inam_p),
7789 if (ckname(1) != F_SKIP && creat_spec(G_p->g_dirfd) > 0) {
7799 (Ofile = openout(G_p->g_dirfd)) < 0) {
7810 (void) creat_lnk(G_p->g_dirfd, bar_linkname, G_p->g_nam_p);
7815 (Ofile = openout(G_p->g_dirfd)) < 0) {
7823 if (ckname(1) != F_SKIP && creat_spec(G_p->g_dirfd) > 0) {
8324 Gen.g_dirfd = attropen(filename, ".", O_RDONLY);
8325 if (Gen.g_dirfd == -1) {
8340 if ((dirpfd = dup(Gen.g_dirfd)) == -1) {
8372 if (STAT(Gen.g_dirfd, Gen.g_nam_p, &SrcSt) == -1) {
8434 filefd = openat(Gen.g_dirfd, dp->d_name, O_RDONLY);
8459 int savedirfd = Gen.g_dirfd;
8461 (void) fchdir(Gen.g_dirfd);
8464 Gen.g_dirfd = savedirfd;
8492 (void) close(Gen.g_dirfd);
8495 Gen.g_dirfd = -1;
8720 return (openat(G_p->g_dirfd, G_p->g_attrnam_p, omode));
8722 return (openat(G_p->g_dirfd,
8730 return (openat(G_p->g_dirfd, get_component(G_p->g_nam_p), omode));
8943 G_p->g_attrparent_p, &G_p->g_dirfd, &rw_sysattr);
8950 if ((G_p->g_dirfd == -1) && (Args & (OCi | OCp))) {
8964 G_p->g_dirfd = open_dir(G_p->g_nam_p);
8965 if (G_p->g_dirfd == -1) {
8972 G_p->g_dirfd = -1;
8975 G_p->g_dirfd = -1;
8983 if (G_p->g_dirfd != -1) {
8984 (void) close(G_p->g_dirfd);
8985 G_p->g_dirfd = -1;