This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Update sys/inotify.h for MIPS (define IN_EXCL_UNLINK)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libc-ports at sourceware dot org
- Date: Thu, 12 Aug 2010 22:08:58 +0000 (UTC)
- Subject: Update sys/inotify.h for MIPS (define IN_EXCL_UNLINK)
I've applied this patch to update the MIPS copy of sys/inotify.h for a
recent libc change.
The Alpha maintainers may wish to make a similar change to the Alpha copy.
The SPARC maintainers (libc) may also wish to update their copy, which was
not updated in the libc change; SPARC sys/inotify.h is out of sync with
the generic version for another change as well that was only made to the
generic copy, and the SPARC copies of sys/epoll.h and sys/eventfd.h are
similarly out of sync for past changes. (If a change as described in
<http://sourceware.org/ml/libc-ports/2010-08/msg00007.html> is done to
avoid the need for multiple copies of these files, that of course avoids
the problem of the files getting out of sync like this.)
diff --git a/ChangeLog.mips b/ChangeLog.mips
index d33ccab..5623642 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,5 +1,10 @@
2010-08-12 Joseph Myers <joseph@codesourcery.com>
+ * sysdeps/unix/sysv/linux/mips/sys/inotify.h (IN_EXCL_UNLINK):
+ Define.
+
+2010-08-12 Joseph Myers <joseph@codesourcery.com>
+
* sysdeps/unix/sysv/linux/mips/bits/resource.h: Declare prlimit
and prlimit64.
* sysdeps/unix/sysv/linux/mips/mips32/syscalls.list,
diff --git a/sysdeps/unix/sysv/linux/mips/sys/inotify.h b/sysdeps/unix/sysv/linux/mips/sys/inotify.h
index 49f3947..d1d0509 100644
--- a/sysdeps/unix/sysv/linux/mips/sys/inotify.h
+++ b/sysdeps/unix/sysv/linux/mips/sys/inotify.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -72,6 +72,8 @@ struct inotify_event
#define IN_ONLYDIR 0x01000000 /* Only watch the path if it is a
directory. */
#define IN_DONT_FOLLOW 0x02000000 /* Do not follow a sym link. */
+#define IN_EXCL_UNLINK 0x04000000 /* Exclude events on unlinked
+ objects. */
#define IN_MASK_ADD 0x20000000 /* Add to the mask of an already
existing watch. */
#define IN_ISDIR 0x40000000 /* Event occurred against dir. */
--
Joseph S. Myers
joseph@codesourcery.com