X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fopenat-priv.h;h=e0818731f4506c98d25f6bd153d733fe7adc4e27;hb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;hp=53016a14ecad0cdf287c88e2b8efc53d4c3f1760;hpb=c4194dcc56767f8f96bc005088b292f519b13910;p=pspp diff --git a/lib/openat-priv.h b/lib/openat-priv.h index 53016a14ec..e0818731f4 100644 --- a/lib/openat-priv.h +++ b/lib/openat-priv.h @@ -1,6 +1,6 @@ /* Internals for openat-like functions. - Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2006, 2009-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,15 +30,15 @@ char *openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file); /proc support, and even on systems *with* ProcFS support. Return nonzero if the failure may be legitimate, e.g., because /proc is not readable, or the particular .../fd/N directory is not present. */ -#define EXPECTED_ERRNO(Errno) \ - ((Errno) == ENOTDIR || (Errno) == ENOENT \ - || (Errno) == EPERM || (Errno) == EACCES \ - || (Errno) == ENOSYS /* Solaris 8 */ \ +#define EXPECTED_ERRNO(Errno) \ + ((Errno) == ENOTDIR || (Errno) == ENOENT \ + || (Errno) == EPERM || (Errno) == EACCES \ + || (Errno) == ENOSYS /* Solaris 8 */ \ || (Errno) == EOPNOTSUPP /* FreeBSD */) /* Wrapper function shared among linkat and renameat. */ int at_func2 (int fd1, char const *file1, - int fd2, char const *file2, - int (*func) (char const *file1, char const *file2)); + int fd2, char const *file2, + int (*func) (char const *file1, char const *file2)); #endif /* _GL_HEADER_OPENAT_PRIV */