1 Upstream-Status: Submitted
4 From 4b2716f902c117490285e39deb6ef7925fdc846e Mon Sep 17 00:00:00 2001
5 From: Khem Raj <raj.khem@gmail.com>
6 Date: Sat, 8 Sep 2012 19:54:03 -0700
7 Subject: [PATCH] Add name_to_handle_at, open_by_handle etc. to PowerPC
12 sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h | 28 +++++++++++++++++++++++++-
13 2 files changed, 34 insertions(+), 1 deletion(-)
15 Index: libc/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
16 ===================================================================
17 --- libc.orig/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h 2012-09-08 10:27:08.000000000 -0700
18 +++ libc/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h 2012-09-08 19:57:44.219191560 -0700
20 /* O_*, F_*, FD_* bit values for Linux/PowerPC.
21 - Copyright (C) 1995-1998, 2000, 2003, 2004, 2006, 2007, 2009, 2010, 2011
22 + Copyright (C) 1995-2012
23 Free Software Foundation, Inc.
24 This file is part of the GNU C Library.
27 we splice from/to). */
28 # define SPLICE_F_MORE 4 /* Expect more data. */
29 # define SPLICE_F_GIFT 8 /* Pages passed in are a gift. */
32 +/* File handle structure. */
35 + unsigned int handle_bytes;
37 + /* File identifier. */
38 + unsigned char f_handle[0];
41 +/* Maximum handle size (for now). */
42 +# define MAX_HANDLE_SZ 128
51 +/* Map file name to file handle. */
52 +extern int name_to_handle_at (int __dfd, const char *__name,
53 + struct file_handle *__handle, int *__mnt_id,
54 + int __flags) __THROW;
56 +/* Open file using the file handle.
58 + This function is a possible cancellation point and therefore not
59 + marked with __THROW. */
60 +extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle,