This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Define __have_atfcts global in stub openat implementation.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 1 Oct 2012 13:51:07 -0700 (PDT)
- Subject: [COMMITTED PATCH] Define __have_atfcts global in stub openat implementation.
* io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
diff --git a/io/openat.c b/io/openat.c
index 92a5769..b496539 100644
--- a/io/openat.c
+++ b/io/openat.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,6 +21,13 @@
#include <stddef.h>
#include <stdio.h>
#include <sys/stat.h>
+#include <kernel-features.h>
+
+/* Some mostly-generic code (e.g. sysdeps/posix/getcwd.c) uses this variable
+ if __ASSUME_ATFCTS is not defined. */
+#ifndef __ASSUME_ATFCTS
+int __have_atfcts;
+#endif
/* Open FILE with access OFLAG. Interpret relative paths relative to
the directory associated with FD. If OFLAG includes O_CREAT, a