[Moving from help-hurd to bug-hurd.]
Marcus Brinkmann <[EMAIL PROTECTED]> wrote:
> On Tue, May 14, 2002 at 07:39:16AM +0200, Wolfgang J�hrling wrote:
> > I have created a `mutations.h' file that contains the #defines for
> > FS_NOTIFY_IMPORTS (which is honored, but this isn't surprising) and
> > FS_NOTIFY_{INTRAN,DESTRUCTOR} (which are ignored).
>
> Add a case for them to hurd/hurd_types.h
Ok, here is a patch, which worked for me.
Cheers,
GNU/Wolfgang
2002-05-14 Wolfgang J�hrling <[EMAIL PROTECTED]>
* fs_notify.defs (dir_changed, file_changed): Changed
mach_port_t to fs_notify_t.
* hurd_types.defs (fs_notify_t): New type.
* hurd_types.h (fs_notify_t): Likewise.
--
Wolfgang J�hrling <[EMAIL PROTECTED]> \\ http://stdio.cjb.net/
Debian GNU/Hurd user && Debian GNU/Linux user \\ http://www.gnu.org/
The Hurd Hacking Guide: http://www.gnu.org/software/hurd/hacking-guide/
["We're way ahead of you here. The Hurd has always been on the ]
[ cutting edge of not being good for anything." -- Roland McGrath ]
diff -ru hurd-/fs_notify.defs hurd/fs_notify.defs
--- hurd-/fs_notify.defs Tue May 14 18:12:55 2002
+++ hurd/fs_notify.defs Tue May 14 18:11:17 2002
@@ -31,7 +31,7 @@
CHANGE identifies the sort of change that has occurred (see hurd_types.h);
NAME is the name that was changed. */
routine dir_changed (
- notify_port: mach_port_t;
+ notify_port: fs_notify_t;
change: dir_changed_type_t;
name: string_t);
@@ -40,7 +40,7 @@
CHANGE identifies the sort of change that has occurred (see hurd_types.h);
START and END identify the affected regions of the file's data. */
routine file_changed (
- notify_port: mach_port_t;
+ notify_port: fs_notify_t;
change: file_changed_type_t;
start: off_t;
end: off_t);
diff -ru hurd-/hurd_types.defs hurd/hurd_types.defs
--- hurd-/hurd_types.defs Sun Feb 17 15:23:48 2002
+++ hurd/hurd_types.defs Tue May 14 18:15:46 2002
@@ -34,6 +34,18 @@
#endif
;
+type fs_notify_t = mach_port_copy_send_t
+#ifdef FS_NOTIFY_INTRAN
+intran: FS_NOTIFY_INTRAN
+#endif
+#ifdef FS_NOTIFY_OUTTRAN
+outtran: FS_NOTIFY_OUTTRAN
+#endif
+#ifdef FS_NOTIFY_DESTRUCTOR
+destructor: FS_NOTIFY_DESTRUCTOR
+#endif
+;
+
type fsys_t = mach_port_copy_send_t
#ifdef FSYS_INTRAN
intran: FSYS_INTRAN
diff -ru hurd-/hurd_types.h hurd/hurd_types.h
--- hurd-/hurd_types.h Sun May 12 03:26:33 2002
+++ hurd/hurd_types.h Tue May 14 18:16:37 2002
@@ -36,6 +36,7 @@
/* These types identify certain kinds of ports used by the Hurd. */
typedef mach_port_t file_t;
+typedef mach_port_t fs_notify_t;
typedef mach_port_t fsys_t;
typedef mach_port_t io_t;
typedef mach_port_t process_t;