public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] include/uapi: Define AT_FDNODIR constant as future guarantee
@ 2014-07-05 19:51 Steven Stewart-Gallus
  2014-07-08 12:12 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Stewart-Gallus @ 2014-07-05 19:51 UTC (permalink / raw)
  To: linux-kernel
  Cc: Jeff Layton, J. Bruce Fields, linux-fsdevel, linux-api,
	linux-kernel, Andy Lutomirski

From: Steven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca

This constant means that in the far future it might be possible to
define other AT_FD* constants.

Signed-off-by: Steven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>
---

This is my first kernel patch but this is really trivial so I hope I'm doing
this right.

diff --git a/include/uapi/linux/fcntl.h b/include/uapi/linux/fcntl.h
index 074b886..92223f0 100644
--- a/include/uapi/linux/fcntl.h
+++ b/include/uapi/linux/fcntl.h
@@ -38,9 +38,15 @@
 #define DN_ATTRIB	0x00000020	/* File changed attibutes */
 #define DN_MULTISHOT	0x80000000	/* Don't remove notifier */
 
+#define AT_FDNODDIR		-1      /* Special value used to indicate
+					   openat should not use any directory.
+					   Currently, other values work for this
+					   but in the future that might
+					   change. */
 #define AT_FDCWD		-100    /* Special value used to indicate
-                                           openat should use the current
-                                           working directory. */
+					   openat should use the current
+					   working directory. */
+
 #define AT_SYMLINK_NOFOLLOW	0x100   /* Do not follow symbolic links.  */
 #define AT_REMOVEDIR		0x200   /* Remove directory instead of
                                            unlinking file.  */


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-09 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-05 19:51 [PATCH 1/1] include/uapi: Define AT_FDNODIR constant as future guarantee Steven Stewart-Gallus
2014-07-08 12:12 ` Christoph Hellwig
2014-07-09 23:43   ` Steven Stewart-Gallus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox