Skip to content

Commit

Permalink
Follow kernel F_OWNER_{GID -> PGRP} change.
Browse files Browse the repository at this point in the history
But maintain compatiblity for 2.11.
  • Loading branch information
Ulrich Drepper committed Nov 19, 2009
1 parent dfedb12 commit c6e7f16
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 21 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
2009-11-19 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Introduce new symbol
F_OWNER_PGRP and mark F_OWNER_GID obsolete. The kernel people made
this gratuitous change and we have to keep compatibility.
* 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.

2009-11-17 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Change misleading names
Expand Down
7 changes: 4 additions & 3 deletions sysdeps/unix/sysv/linux/i386/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ struct flock64
/* Owner types. */
enum __pid_type
{
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_GID /* Process group. */
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_PGRP, /* Process group. */
F_OWNER_GID = F_OWNER_PGRP /* Alternative, obsolete name. */
};

/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
Expand Down
7 changes: 4 additions & 3 deletions sysdeps/unix/sysv/linux/ia64/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ struct flock64
/* Owner types. */
enum __pid_type
{
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_GID /* Process group. */
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_PGRP, /* Process group. */
F_OWNER_GID = F_OWNER_PGRP /* Alternative, obsolete name. */
};

/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
Expand Down
7 changes: 4 additions & 3 deletions sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ struct flock64
/* Owner types. */
enum __pid_type
{
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_GID /* Process group. */
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_PGRP, /* Process group. */
F_OWNER_GID = F_OWNER_PGRP /* Alternative, obsolete name. */
};

/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
Expand Down
7 changes: 4 additions & 3 deletions sysdeps/unix/sysv/linux/s390/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ struct flock64
/* Owner types. */
enum __pid_type
{
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_GID /* Process group. */
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_PGRP, /* Process group. */
F_OWNER_GID = F_OWNER_PGRP /* Alternative, obsolete name. */
};

/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
Expand Down
7 changes: 4 additions & 3 deletions sysdeps/unix/sysv/linux/sh/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ struct flock64
/* Owner types. */
enum __pid_type
{
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_GID /* Process group. */
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_PGRP, /* Process group. */
F_OWNER_GID = F_OWNER_PGRP /* Alternative, obsolete name. */
};

/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
Expand Down
7 changes: 4 additions & 3 deletions sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,10 @@ struct flock64
/* Owner types. */
enum __pid_type
{
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_GID /* Process group. */
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_PGRP, /* Process group. */
F_OWNER_GID = F_OWNER_PGRP /* Alternative, obsolete name. */
};

/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
Expand Down
7 changes: 4 additions & 3 deletions sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,10 @@ struct flock64
/* Owner types. */
enum __pid_type
{
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_GID /* Process group. */
F_OWNER_TID = 0, /* Kernel thread. */
F_OWNER_PID, /* Process. */
F_OWNER_PGRP, /* Process group. */
F_OWNER_GID = F_OWNER_PGRP /* Alternative, obsolete name. */
};

/* Structure to use with F_GETOWN_EX and F_SETOWN_EX. */
Expand Down

0 comments on commit c6e7f16

Please sign in to comment.