* Defining O_PATH
@ 2011-04-01 16:31 Joseph S. Myers
2012-04-27 1:16 ` Matt Turner
0 siblings, 1 reply; 2+ messages in thread
From: Joseph S. Myers @ 2011-04-01 16:31 UTC (permalink / raw)
To: libc-ports
I've applied this patch to add O_PATH definitions for ARM and MIPS,
corresponding to a recent libc change. Other target maintainers will need
to update their targets.
diff --git a/ChangeLog.arm b/ChangeLog.arm
index a55e6a0..60f2c0b 100644
--- a/ChangeLog.arm
+++ b/ChangeLog.arm
@@ -1,5 +1,9 @@
2011-04-01 Joseph Myers <joseph@codesourcery.com>
+ * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_PATH): Define.
+
+2011-04-01 Joseph Myers <joseph@codesourcery.com>
+
* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Define struct
file_handle and MAX_HANDLE_SZ. Declare name_to_handle_at and
open_by_handle. Augment a few comments.
diff --git a/ChangeLog.mips b/ChangeLog.mips
index b88dbca..fd9d992 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,5 +1,9 @@
2011-04-01 Joseph Myers <joseph@codesourcery.com>
+ * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_PATH): Define.
+
+2011-04-01 Joseph Myers <joseph@codesourcery.com>
+
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define struct
file_handle and MAX_HANDLE_SZ. Declare name_to_handle_at and
open_by_handle. Augment a few comments.
diff --git a/sysdeps/unix/sysv/linux/arm/bits/fcntl.h b/sysdeps/unix/sysv/linux/arm/bits/fcntl.h
index 6a5f89a..aa2d36c 100644
--- a/sysdeps/unix/sysv/linux/arm/bits/fcntl.h
+++ b/sysdeps/unix/sysv/linux/arm/bits/fcntl.h
@@ -53,6 +53,7 @@
#ifdef __USE_GNU
# define O_DIRECT 0200000 /* Direct disk access. */
# define O_NOATIME 01000000 /* Do not set atime. */
+# define O_PATH 010000000 /* Resolve pathname but do not open file. */
#endif
/* For now Linux has synchronisity options for data and read operations.
diff --git a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h
index e285567..2edc7a2 100644
--- a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h
+++ b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h
@@ -54,6 +54,7 @@
#ifdef __USE_GNU
# define O_DIRECT 0x8000 /* Direct disk access hint. */
# define O_NOATIME 0x40000 /* Do not set atime. */
+# define O_PATH 010000000 /* Resolve pathname but do not open file. */
#endif
/* For now Linux has no synchronisity options for data and read operations.
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Defining O_PATH
2011-04-01 16:31 Defining O_PATH Joseph S. Myers
@ 2012-04-27 1:16 ` Matt Turner
0 siblings, 0 replies; 2+ messages in thread
From: Matt Turner @ 2012-04-27 1:16 UTC (permalink / raw)
To: Carlos O'Donell; +Cc: libc-ports
On Fri, Apr 1, 2011 at 12:31 PM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> I've applied this patch to add O_PATH definitions for ARM and MIPS,
> corresponding to a recent libc change. Other target maintainers will need
> to update their targets.
>
> diff --git a/ChangeLog.arm b/ChangeLog.arm
> index a55e6a0..60f2c0b 100644
> --- a/ChangeLog.arm
> +++ b/ChangeLog.arm
> @@ -1,5 +1,9 @@
> 2011-04-01 Joseph Myers <joseph@codesourcery.com>
>
> + * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_PATH): Define.
> +
> +2011-04-01 Joseph Myers <joseph@codesourcery.com>
> +
> * sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Define struct
> file_handle and MAX_HANDLE_SZ. Declare name_to_handle_at and
> open_by_handle. Augment a few comments.
> diff --git a/ChangeLog.mips b/ChangeLog.mips
> index b88dbca..fd9d992 100644
> --- a/ChangeLog.mips
> +++ b/ChangeLog.mips
> @@ -1,5 +1,9 @@
> 2011-04-01 Joseph Myers <joseph@codesourcery.com>
>
> + * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_PATH): Define.
> +
> +2011-04-01 Joseph Myers <joseph@codesourcery.com>
> +
> * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define struct
> file_handle and MAX_HANDLE_SZ. Declare name_to_handle_at and
> open_by_handle. Augment a few comments.
> diff --git a/sysdeps/unix/sysv/linux/arm/bits/fcntl.h b/sysdeps/unix/sysv/linux/arm/bits/fcntl.h
> index 6a5f89a..aa2d36c 100644
> --- a/sysdeps/unix/sysv/linux/arm/bits/fcntl.h
> +++ b/sysdeps/unix/sysv/linux/arm/bits/fcntl.h
> @@ -53,6 +53,7 @@
> #ifdef __USE_GNU
> # define O_DIRECT 0200000 /* Direct disk access. */
> # define O_NOATIME 01000000 /* Do not set atime. */
> +# define O_PATH 010000000 /* Resolve pathname but do not open file. */
> #endif
>
> /* For now Linux has synchronisity options for data and read operations.
> diff --git a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h
> index e285567..2edc7a2 100644
> --- a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h
> +++ b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h
> @@ -54,6 +54,7 @@
> #ifdef __USE_GNU
> # define O_DIRECT 0x8000 /* Direct disk access hint. */
> # define O_NOATIME 0x40000 /* Do not set atime. */
> +# define O_PATH 010000000 /* Resolve pathname but do not open file. */
> #endif
>
> /* For now Linux has no synchronisity options for data and read operations.
>
> --
> Joseph S. Myers
> joseph@codesourcery.com
I'm looking through old emails to see about fixing up alpha, and I
noticed that hppa still needs to do this.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-27 1:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-01 16:31 Defining O_PATH Joseph S. Myers
2012-04-27 1:16 ` Matt Turner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).