aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.h
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2012-12-12 15:53:05 -0600
committerPeter Seebach <peter.seebach@windriver.com>2012-12-12 15:53:05 -0600
commit8b1afe44d92379eb9d01c783b9a396925dcc9193 (patch)
tree2c9b102f1bc1e6b3ed4116d198d80992f77d9af5 /pseudo.h
parent874bea3c664161c2297d5d5f4f93408330e005f5 (diff)
downloadpseudo-8b1afe44d92379eb9d01c783b9a396925dcc9193.tar.gz
pseudo-8b1afe44d92379eb9d01c783b9a396925dcc9193.tar.bz2
pseudo-8b1afe44d92379eb9d01c783b9a396925dcc9193.zip
bitrot and linkat() fixes for Darwin.SEEBS_TESTING
Diffstat (limited to 'pseudo.h')
-rw-r--r--pseudo.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/pseudo.h b/pseudo.h
index 5c3eabe..9d3e43f 100644
--- a/pseudo.h
+++ b/pseudo.h
@@ -93,14 +93,15 @@ extern char *pseudo_version;
* terms of each other, and for instance, open(...) is the same as
* openat(AT_FDCWD, ...). If no AT_FDCWD is provided, any value that can't
* be a valid file descriptor will do. Using -2 because -1 could be
- * mistaken for a failed syscall return. Similarly, any value which isn't
- * zero will do to fake AT_SYMLINK_NOFOLLOW. Finally, if this happened,
- * we set our own flag we can use to indicate that dummy implementations
- * of the _at functions are needed.
+ * mistaken for a failed syscall return. AT_SYMLINK_NOFOLLOW has to be
+ * non-zero; AT_SYMLINK_FOLLOW has to be non-zero and different. Finally,
+ * if this happened, we set our own flag we can use to indicate that dummy
+ * implementations of the _at functions are needed.
*/
#ifndef AT_FDCWD
#define AT_FDCWD -2
#define AT_SYMLINK_NOFOLLOW 1
+#define AT_SYMLINK_FOLLOW 2
#define PSEUDO_NO_REAL_AT_FUNCTIONS
#endif