mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Define F_OWNER_* and f_owner_ex for Linux targets.
This commit is contained in:
@ -1,5 +1,14 @@
|
|||||||
2009-10-29 Ulrich Drepper <drepper@redhat.com>
|
2009-10-29 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Define F_OWNER_*
|
||||||
|
and f_owner_ex.
|
||||||
|
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
|
||||||
|
|
||||||
[BZ #10847]
|
[BZ #10847]
|
||||||
* sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
|
* sysdeps/gnu/getutmp.c: Allow compatibility code to play around with
|
||||||
getutmpx symbol.
|
getutmpx symbol.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* O_*, F_*, FD_* bit values for Linux.
|
/* O_*, F_*, FD_* bit values for Linux.
|
||||||
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2004, 2006, 2007
|
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2004, 2006, 2007, 2009
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
@ -168,6 +168,23 @@ struct flock64
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
/* Owner types. */
|
||||||
|
enum __pid_type
|
||||||
|
{
|
||||||
|
F_OWNER_TID = 0, /* Kernel thread. */
|
||||||
|
F_OWNER_PID, /* Process. */
|
||||||
|
F_OWNER_GID /* Process group. */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
|
||||||
|
struct f_owner_ex
|
||||||
|
{
|
||||||
|
enum __pid_type type; /* Owner type of ID. */
|
||||||
|
__pid_t pid; /* ID of owner. */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define some more compatibility macros to be backward compatible with
|
/* Define some more compatibility macros to be backward compatible with
|
||||||
BSD systems which did not managed to hide these kernel macros. */
|
BSD systems which did not managed to hide these kernel macros. */
|
||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* O_*, F_*, FD_* bit values for Linux/IA64.
|
/* O_*, F_*, FD_* bit values for Linux/IA64.
|
||||||
Copyright (C) 1999, 2000, 2004, 2006, 2007 Free Software Foundation, Inc.
|
Copyright (C) 1999,2000,2004,2006,2007,2009 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -161,6 +161,23 @@ struct flock64
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
/* Owner types. */
|
||||||
|
enum __pid_type
|
||||||
|
{
|
||||||
|
F_OWNER_TID = 0, /* Kernel thread. */
|
||||||
|
F_OWNER_PID, /* Process. */
|
||||||
|
F_OWNER_GID /* Process group. */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
|
||||||
|
struct f_owner_ex
|
||||||
|
{
|
||||||
|
enum __pid_type type; /* Owner type of ID. */
|
||||||
|
__pid_t pid; /* ID of owner. */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Define some more compatibility macros to be backward compatible with
|
/* Define some more compatibility macros to be backward compatible with
|
||||||
BSD systems which did not managed to hide these kernel macros. */
|
BSD systems which did not managed to hide these kernel macros. */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* O_*, F_*, FD_* bit values for Linux/PowerPC.
|
/* O_*, F_*, FD_* bit values for Linux/PowerPC.
|
||||||
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2003, 2004, 2006, 2007
|
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2003, 2004, 2006, 2007, 2009
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
@ -168,6 +168,23 @@ struct flock64
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
/* Owner types. */
|
||||||
|
enum __pid_type
|
||||||
|
{
|
||||||
|
F_OWNER_TID = 0, /* Kernel thread. */
|
||||||
|
F_OWNER_PID, /* Process. */
|
||||||
|
F_OWNER_GID /* Process group. */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
|
||||||
|
struct f_owner_ex
|
||||||
|
{
|
||||||
|
enum __pid_type type; /* Owner type of ID. */
|
||||||
|
__pid_t pid; /* ID of owner. */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define some more compatibility macros to be backward compatible with
|
/* Define some more compatibility macros to be backward compatible with
|
||||||
BSD systems which did not managed to hide these kernel macros. */
|
BSD systems which did not managed to hide these kernel macros. */
|
||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* O_*, F_*, FD_* bit values for Linux.
|
/* O_*, F_*, FD_* bit values for Linux.
|
||||||
Copyright (C) 2000,2001,2002,2004,2006,2007 Free Software Foundation, Inc.
|
Copyright (C) 2000,2001,2002,2004,2006,2007,2009 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -183,6 +183,23 @@ struct flock64
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
/* Owner types. */
|
||||||
|
enum __pid_type
|
||||||
|
{
|
||||||
|
F_OWNER_TID = 0, /* Kernel thread. */
|
||||||
|
F_OWNER_PID, /* Process. */
|
||||||
|
F_OWNER_GID /* Process group. */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
|
||||||
|
struct f_owner_ex
|
||||||
|
{
|
||||||
|
enum __pid_type type; /* Owner type of ID. */
|
||||||
|
__pid_t pid; /* ID of owner. */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define some more compatibility macros to be backward compatible with
|
/* Define some more compatibility macros to be backward compatible with
|
||||||
BSD systems which did not managed to hide these kernel macros. */
|
BSD systems which did not managed to hide these kernel macros. */
|
||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* O_*, F_*, FD_* bit values for Linux.
|
/* O_*, F_*, FD_* bit values for Linux.
|
||||||
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2004, 2006, 2007
|
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2004, 2006, 2007, 2009
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
@ -168,6 +168,23 @@ struct flock64
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
/* Owner types. */
|
||||||
|
enum __pid_type
|
||||||
|
{
|
||||||
|
F_OWNER_TID = 0, /* Kernel thread. */
|
||||||
|
F_OWNER_PID, /* Process. */
|
||||||
|
F_OWNER_GID /* Process group. */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
|
||||||
|
struct f_owner_ex
|
||||||
|
{
|
||||||
|
enum __pid_type type; /* Owner type of ID. */
|
||||||
|
__pid_t pid; /* ID of owner. */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define some more compatibility macros to be backward compatible with
|
/* Define some more compatibility macros to be backward compatible with
|
||||||
BSD systems which did not managed to hide these kernel macros. */
|
BSD systems which did not managed to hide these kernel macros. */
|
||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* O_*, F_*, FD_* bit values for Linux/SPARC.
|
/* O_*, F_*, FD_* bit values for Linux/SPARC.
|
||||||
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2003, 2004, 2006, 2007
|
Copyright (C) 1995, 1996, 1997, 1998, 2000, 2003, 2004, 2006, 2007, 2009
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
@ -187,6 +187,23 @@ struct flock64
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
/* Owner types. */
|
||||||
|
enum __pid_type
|
||||||
|
{
|
||||||
|
F_OWNER_TID = 0, /* Kernel thread. */
|
||||||
|
F_OWNER_PID, /* Process. */
|
||||||
|
F_OWNER_GID /* Process group. */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
|
||||||
|
struct f_owner_ex
|
||||||
|
{
|
||||||
|
enum __pid_type type; /* Owner type of ID. */
|
||||||
|
__pid_t pid; /* ID of owner. */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define some more compatibility macros to be backward compatible with
|
/* Define some more compatibility macros to be backward compatible with
|
||||||
BSD systems which did not managed to hide these kernel macros. */
|
BSD systems which did not managed to hide these kernel macros. */
|
||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* O_*, F_*, FD_* bit values for Linux/x86-64.
|
/* O_*, F_*, FD_* bit values for Linux/x86-64.
|
||||||
Copyright (C) 2001, 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
|
Copyright (C) 2001,2002,2004,2006,2007,2009 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -182,6 +182,23 @@ struct flock64
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __USE_GNU
|
||||||
|
/* Owner types. */
|
||||||
|
enum __pid_type
|
||||||
|
{
|
||||||
|
F_OWNER_TID = 0, /* Kernel thread. */
|
||||||
|
F_OWNER_PID, /* Process. */
|
||||||
|
F_OWNER_GID /* Process group. */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
|
||||||
|
struct f_owner_ex
|
||||||
|
{
|
||||||
|
enum __pid_type type; /* Owner type of ID. */
|
||||||
|
__pid_t pid; /* ID of owner. */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define some more compatibility macros to be backward compatible with
|
/* Define some more compatibility macros to be backward compatible with
|
||||||
BSD systems which did not managed to hide these kernel macros. */
|
BSD systems which did not managed to hide these kernel macros. */
|
||||||
#ifdef __USE_BSD
|
#ifdef __USE_BSD
|
||||||
|
Reference in New Issue
Block a user