mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-11 03:40:06 +00:00
m68k: declare name_to_handle_at and open_by_handle_at in bits/fcntl.h
This commit is contained in:
parent
ece7d80e58
commit
91456166c5
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Update comments.
|
* sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Update comments.
|
||||||
(O_PATH): Define.
|
(O_PATH): Define.
|
||||||
|
(struct file_handle, MAX_HANDLE_SZ): Define.
|
||||||
|
(name_to_handle_at, open_by_handle_at): Declare.
|
||||||
|
|
||||||
2011-03-06 Andreas Schwab <schwab@linux-m68k.org>
|
2011-03-06 Andreas Schwab <schwab@linux-m68k.org>
|
||||||
|
|
||||||
|
@ -232,6 +232,19 @@ struct f_owner_ex
|
|||||||
we splice from/to). */
|
we splice from/to). */
|
||||||
# define SPLICE_F_MORE 4 /* Expect more data. */
|
# define SPLICE_F_MORE 4 /* Expect more data. */
|
||||||
# define SPLICE_F_GIFT 8 /* Pages passed in are a gift. */
|
# define SPLICE_F_GIFT 8 /* Pages passed in are a gift. */
|
||||||
|
|
||||||
|
|
||||||
|
/* File handle structure. */
|
||||||
|
struct file_handle
|
||||||
|
{
|
||||||
|
unsigned int handle_bytes;
|
||||||
|
int handle_type;
|
||||||
|
/* File identifier. */
|
||||||
|
unsigned char f_handle[0];
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Maximum handle size (for now). */
|
||||||
|
# define MAX_HANDLE_SZ 128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
@ -290,6 +303,19 @@ extern int fallocate64 (int __fd, int __mode, __off64_t __offset,
|
|||||||
__off64_t __len);
|
__off64_t __len);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
||||||
|
/* Map file name to file handle. */
|
||||||
|
extern int name_to_handle_at (int __dfd, const char *__name,
|
||||||
|
struct file_handle *__handle, int *__mnt_id,
|
||||||
|
int __flags) __THROW;
|
||||||
|
|
||||||
|
/* Open file using the file handle.
|
||||||
|
|
||||||
|
This function is a possible cancellation point and therefore not
|
||||||
|
marked with __THROW. */
|
||||||
|
extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle,
|
||||||
|
int __flags);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
Loading…
Reference in New Issue
Block a user