X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fopenat-proc.c;h=ff2fff0033a7a5cbb4d68e822ef91484a69f66c9;hb=0d0706a5f5e05d18ab61e7f19ca407452db68a31;hp=87293a46f74e0886ae2f578cadb775d10631cb6a;hpb=75ff6c9d9a4d428c44dbbd8778f0e8080a0d3bdc;p=gnulib.git diff --git a/lib/openat-proc.c b/lib/openat-proc.c index 87293a46f..ff2fff003 100644 --- a/lib/openat-proc.c +++ b/lib/openat-proc.c @@ -34,6 +34,11 @@ #include "same-inode.h" #include "xalloc.h" +/* The results of open() in this file are not used with fchdir, + therefore save some unnecessary work in fchdir.c. */ +#undef open +#undef close + #define PROC_SELF_FD_FORMAT "/proc/self/fd/%d/%s" #define PROC_SELF_FD_NAME_SIZE_BOUND(len) \