/* Generated automatically from ./event-core.scm.  DO NOT EDIT */
#include <gauche.h>
#include <gauche/code.h>
#include <gauche/priv/configP.h>
#if defined(HAVE_SYS_INOTIFY_H)
#include <sys/inotify.h>
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
static ScmObj event_2dcoreinotify_init(ScmObj*, int, void*);
static SCM_DEFINE_SUBRX(event_2dcoreinotify_init__STUB, 0, 0,0, SCM_FALSE,SCM_SUBR_IMMEDIATE_ARG, event_2dcoreinotify_init, NULL, NULL);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
static ScmObj event_2dcoreinotify_init1(ScmObj*, int, void*);
static SCM_DEFINE_SUBRX(event_2dcoreinotify_init1__STUB, 1, 0,0, SCM_FALSE,SCM_SUBR_IMMEDIATE_ARG, event_2dcoreinotify_init1, NULL, NULL);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
static ScmObj event_2dcoreinotify_add_watch(ScmObj*, int, void*);
static SCM_DEFINE_SUBRX(event_2dcoreinotify_add_watch__STUB, 3, 0,0, SCM_FALSE,SCM_SUBR_IMMEDIATE_ARG, event_2dcoreinotify_add_watch, NULL, NULL);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
static ScmObj event_2dcoreinotify_rm_watch(ScmObj*, int, void*);
static SCM_DEFINE_SUBRX(event_2dcoreinotify_rm_watch__STUB, 2, 0,0, SCM_FALSE,SCM_SUBR_IMMEDIATE_ARG, event_2dcoreinotify_rm_watch, NULL, NULL);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
static ScmObj event_2dcoreinotify_event_copy(ScmObj*, int, void*);
static SCM_DEFINE_SUBRX(event_2dcoreinotify_event_copy__STUB, 1, 0,0, SCM_FALSE,SCM_SUBR_IMMEDIATE_ARG, event_2dcoreinotify_event_copy, NULL, NULL);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
static ScmObj event_2dcoreinotify_read_events(ScmObj*, int, void*);
static SCM_DEFINE_SUBRX(event_2dcoreinotify_read_events__STUB, 2, 0,0, SCM_FALSE,SCM_SUBR_IMMEDIATE_ARG, event_2dcoreinotify_read_events, NULL, NULL);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_EVENT_H)

#line 159 "./event-core.scm"
#include <sys/event.h>

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)

#line 161 "./event-core.scm"
typedef struct {  SCM_HEADER; struct kevent data; } ScmSysKevent;
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
static ScmObj event_2dcoremake_kevent(ScmObj*, int, void*);
static SCM_DEFINE_SUBRX(event_2dcoremake_kevent__STUB, 5, 0,0, SCM_FALSE,SCM_SUBR_IMMEDIATE_ARG, event_2dcoremake_kevent, NULL, NULL);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
static struct kevent* list_TOkeventArray(ScmObj lis,int* nelts);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
static ScmObj event_2dcorekevent(ScmObj*, int, void*);
static SCM_DEFINE_SUBR(event_2dcorekevent__STUB, 3, 0,SCM_FALSE,event_2dcorekevent, NULL, NULL);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if (defined(__APPLE__))&&(defined(__MACH__))

#line 269 "./event-core.scm"
#include <CoreServices/CoreServices.h>

#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))

#line 271 "./event-core.scm"
typedef struct {  SCM_HEADER; FSEventStreamRef data; ScmObj queue; int closed; } ScmSysFileSystemEventStream;
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))

#line 278 "./event-core.scm"
typedef struct {  SCM_HEADER; ScmObj name; ScmObj flags; ScmObj id; } ScmSysFileSystemEvent;
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
static void fsestream_cleanup(ScmSysFileSystemEventStream* stream);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
static void fsestream_finalize(ScmObj stream,void* G2217 SCM_UNUSED);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))

#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
static void fsestream_callback(ConstFSEventStreamRef G2219 SCM_UNUSED,void* streamobj,size_t num_events,void* event_paths,const FSEventStreamEventFlags* event_flags,const FSEventStreamEventId* event_ids);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
static ScmObj event_2dcoremake_file_system_event_stream(ScmObj*, int, void*);
static SCM_DEFINE_SUBRX(event_2dcoremake_file_system_event_stream__STUB, 4, 0,0, SCM_FALSE,SCM_SUBR_IMMEDIATE_ARG, event_2dcoremake_file_system_event_stream, NULL, NULL);

#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
static ScmObj event_2dcoreclose_file_system_event_stream(ScmObj*, int, void*);
static SCM_DEFINE_SUBRX(event_2dcoreclose_file_system_event_stream__STUB, 1, 0,0, SCM_FALSE,SCM_SUBR_IMMEDIATE_ARG, event_2dcoreclose_file_system_event_stream, NULL, NULL);

#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if defined(__CYGWIN__) || defined(GAUCHE_WINDOWS)
#define SCM_CGEN_CONST /*empty*/
#else
#define SCM_CGEN_CONST const
#endif
static SCM_CGEN_CONST struct scm__scRec {
#if (defined(__APPLE__))&&(defined(__MACH__))
  ScmString d2221[18];
#endif /*(defined(__APPLE__))&&(defined(__MACH__))*/
#if defined(HAVE_SYS_EVENT_H)
  ScmString d2215[38];
#endif /*defined(HAVE_SYS_EVENT_H)*/
#if defined(HAVE_SYS_INOTIFY_H)
  ScmString d2212[51];
#endif /*defined(HAVE_SYS_INOTIFY_H)*/
  ScmString d2201[1];
} scm__sc SCM_UNUSED = {
#if (defined(__APPLE__))&&(defined(__MACH__))
  {   /* ScmString d2221 */
      SCM_STRING_CONST_INITIALIZER("make-file-system-event-stream", 29, 29),
      SCM_STRING_CONST_INITIALIZER("path", 4, 4),
      SCM_STRING_CONST_INITIALIZER("flags", 5, 5),
      SCM_STRING_CONST_INITIALIZER("id", 2, 2),
      SCM_STRING_CONST_INITIALIZER("latency", 7, 7),
      SCM_STRING_CONST_INITIALIZER("source-info", 11, 11),
      SCM_STRING_CONST_INITIALIZER("./event-core.scm", 16, 16),
      SCM_STRING_CONST_INITIALIZER("bind-info", 9, 9),
      SCM_STRING_CONST_INITIALIZER("file.event", 10, 10),
      SCM_STRING_CONST_INITIALIZER("<const-cstring>", 15, 15),
      SCM_STRING_CONST_INITIALIZER("<uint64>", 8, 8),
      SCM_STRING_CONST_INITIALIZER("<double>", 8, 8),
      SCM_STRING_CONST_INITIALIZER("->", 2, 2),
      SCM_STRING_CONST_INITIALIZER("<top>", 5, 5),
      SCM_STRING_CONST_INITIALIZER("close-file-system-event-stream", 30, 30),
      SCM_STRING_CONST_INITIALIZER("stream", 6, 6),
      SCM_STRING_CONST_INITIALIZER("<file-system-event-stream>", 26, 26),
      SCM_STRING_CONST_INITIALIZER("<void>", 6, 6),
  },
#endif /*(defined(__APPLE__))&&(defined(__MACH__))*/
#if defined(HAVE_SYS_EVENT_H)
  {   /* ScmString d2215 */
      SCM_STRING_CONST_INITIALIZER("EV_ADD", 6, 6),
      SCM_STRING_CONST_INITIALIZER("EV_ENABLE", 9, 9),
      SCM_STRING_CONST_INITIALIZER("EV_DISABLE", 10, 10),
      SCM_STRING_CONST_INITIALIZER("EV_DISPATCH", 11, 11),
      SCM_STRING_CONST_INITIALIZER("EV_DELETE", 9, 9),
      SCM_STRING_CONST_INITIALIZER("EV_RECEIPT", 10, 10),
      SCM_STRING_CONST_INITIALIZER("EV_ONESHOT", 10, 10),
      SCM_STRING_CONST_INITIALIZER("EV_CLEAR", 8, 8),
      SCM_STRING_CONST_INITIALIZER("EV_EOF", 6, 6),
      SCM_STRING_CONST_INITIALIZER("EV_ERROR", 8, 8),
      SCM_STRING_CONST_INITIALIZER("EVFILT_VNODE", 12, 12),
      SCM_STRING_CONST_INITIALIZER("NOTE_ATTRIB", 11, 11),
      SCM_STRING_CONST_INITIALIZER("NOTE_DELETE", 11, 11),
      SCM_STRING_CONST_INITIALIZER("NOTE_LINK", 9, 9),
      SCM_STRING_CONST_INITIALIZER("NOTE_RENAME", 11, 11),
      SCM_STRING_CONST_INITIALIZER("NOTE_REVOKE", 11, 11),
      SCM_STRING_CONST_INITIALIZER("NOTE_WRITE", 10, 10),
      SCM_STRING_CONST_INITIALIZER("make-kevent", 11, 11),
      SCM_STRING_CONST_INITIALIZER("fd", 2, 2),
      SCM_STRING_CONST_INITIALIZER("filter", 6, 6),
      SCM_STRING_CONST_INITIALIZER("flags", 5, 5),
      SCM_STRING_CONST_INITIALIZER("fflags", 6, 6),
      SCM_STRING_CONST_INITIALIZER("data", 4, 4),
      SCM_STRING_CONST_INITIALIZER("source-info", 11, 11),
      SCM_STRING_CONST_INITIALIZER("./event-core.scm", 16, 16),
      SCM_STRING_CONST_INITIALIZER("bind-info", 9, 9),
      SCM_STRING_CONST_INITIALIZER("file.event", 10, 10),
      SCM_STRING_CONST_INITIALIZER("<int>", 5, 5),
      SCM_STRING_CONST_INITIALIZER("<short>", 7, 7),
      SCM_STRING_CONST_INITIALIZER("<ushort>", 8, 8),
      SCM_STRING_CONST_INITIALIZER("<uint>", 6, 6),
      SCM_STRING_CONST_INITIALIZER("<int64>", 7, 7),
      SCM_STRING_CONST_INITIALIZER("->", 2, 2),
      SCM_STRING_CONST_INITIALIZER("<top>", 5, 5),
      SCM_STRING_CONST_INITIALIZER("kevent", 6, 6),
      SCM_STRING_CONST_INITIALIZER("kq", 2, 2),
      SCM_STRING_CONST_INITIALIZER("changeList", 10, 10),
      SCM_STRING_CONST_INITIALIZER("timeout", 7, 7),
  },
#endif /*defined(HAVE_SYS_EVENT_H)*/
#if defined(HAVE_SYS_INOTIFY_H)
  {   /* ScmString d2212 */
      SCM_STRING_CONST_INITIALIZER("IN_ACCESS", 9, 9),
      SCM_STRING_CONST_INITIALIZER("IN_ATTRIB", 9, 9),
      SCM_STRING_CONST_INITIALIZER("IN_CLOSE_WRITE", 14, 14),
      SCM_STRING_CONST_INITIALIZER("IN_CLOSE_NOWRITE", 16, 16),
      SCM_STRING_CONST_INITIALIZER("IN_CREATE", 9, 9),
      SCM_STRING_CONST_INITIALIZER("IN_DELETE", 9, 9),
      SCM_STRING_CONST_INITIALIZER("IN_DELETE_SELF", 14, 14),
      SCM_STRING_CONST_INITIALIZER("IN_MODIFY", 9, 9),
      SCM_STRING_CONST_INITIALIZER("IN_MOVE_SELF", 12, 12),
      SCM_STRING_CONST_INITIALIZER("IN_MOVED_FROM", 13, 13),
      SCM_STRING_CONST_INITIALIZER("IN_MOVED_TO", 11, 11),
      SCM_STRING_CONST_INITIALIZER("IN_OPEN", 7, 7),
      SCM_STRING_CONST_INITIALIZER("IN_ALL_EVENTS", 13, 13),
      SCM_STRING_CONST_INITIALIZER("IN_MOVE", 7, 7),
      SCM_STRING_CONST_INITIALIZER("IN_CLOSE", 8, 8),
      SCM_STRING_CONST_INITIALIZER("IN_DONT_FOLLOW", 14, 14),
      SCM_STRING_CONST_INITIALIZER("IN_EXCL_UNLINK", 14, 14),
      SCM_STRING_CONST_INITIALIZER("IN_MASK_ADD", 11, 11),
      SCM_STRING_CONST_INITIALIZER("IN_ONESHOT", 10, 10),
      SCM_STRING_CONST_INITIALIZER("IN_ONLYDIR", 10, 10),
      SCM_STRING_CONST_INITIALIZER("IN_IGNORED", 10, 10),
      SCM_STRING_CONST_INITIALIZER("IN_ISDIR", 8, 8),
      SCM_STRING_CONST_INITIALIZER("IN_Q_OVERFLOW", 13, 13),
      SCM_STRING_CONST_INITIALIZER("IN_UNMOUNT", 10, 10),
      SCM_STRING_CONST_INITIALIZER("IN_NONBLOCK", 11, 11),
      SCM_STRING_CONST_INITIALIZER("IN_CLOEXEC", 10, 10),
      SCM_STRING_CONST_INITIALIZER("inotify-init", 12, 12),
      SCM_STRING_CONST_INITIALIZER("source-info", 11, 11),
      SCM_STRING_CONST_INITIALIZER("./event-core.scm", 16, 16),
      SCM_STRING_CONST_INITIALIZER("bind-info", 9, 9),
      SCM_STRING_CONST_INITIALIZER("file.event", 10, 10),
      SCM_STRING_CONST_INITIALIZER("->", 2, 2),
      SCM_STRING_CONST_INITIALIZER("<int>", 5, 5),
      SCM_STRING_CONST_INITIALIZER("inotify-init1", 13, 13),
      SCM_STRING_CONST_INITIALIZER("flags", 5, 5),
      SCM_STRING_CONST_INITIALIZER("inotify-add-watch", 17, 17),
      SCM_STRING_CONST_INITIALIZER("fd", 2, 2),
      SCM_STRING_CONST_INITIALIZER("pathname", 8, 8),
      SCM_STRING_CONST_INITIALIZER("mask", 4, 4),
      SCM_STRING_CONST_INITIALIZER("<const-cstring>", 15, 15),
      SCM_STRING_CONST_INITIALIZER("<uint32>", 8, 8),
      SCM_STRING_CONST_INITIALIZER("inotify-rm-watch", 16, 16),
      SCM_STRING_CONST_INITIALIZER("wd", 2, 2),
      SCM_STRING_CONST_INITIALIZER("<void>", 6, 6),
      SCM_STRING_CONST_INITIALIZER("inotify-event-copy", 18, 18),
      SCM_STRING_CONST_INITIALIZER("ev", 2, 2),
      SCM_STRING_CONST_INITIALIZER("<inotify-event>", 15, 15),
      SCM_STRING_CONST_INITIALIZER("<top>", 5, 5),
      SCM_STRING_CONST_INITIALIZER("inotify-read-events", 19, 19),
      SCM_STRING_CONST_INITIALIZER("buf", 3, 3),
      SCM_STRING_CONST_INITIALIZER("<u8vector>", 10, 10),
  },
#endif /*defined(HAVE_SYS_INOTIFY_H)*/
  {   /* ScmString d2201 */
      SCM_STRING_CONST_INITIALIZER("file.event", 10, 10),
  },
};
static struct scm__rcRec {
#if (defined(__APPLE__))&&(defined(__MACH__))
  ScmPair d2223[22] SCM_ALIGN_PAIR;
#endif /*(defined(__APPLE__))&&(defined(__MACH__))*/
#if (defined(__APPLE__))&&(defined(__MACH__))
  ScmObj d2222[36];
#endif /*(defined(__APPLE__))&&(defined(__MACH__))*/
#if defined(HAVE_SYS_EVENT_H)
  ScmPair d2216[25] SCM_ALIGN_PAIR;
#endif /*defined(HAVE_SYS_EVENT_H)*/
#if defined(HAVE_SYS_EVENT_H)
  ScmObj d2214[59];
#endif /*defined(HAVE_SYS_EVENT_H)*/
#if defined(HAVE_SYS_INOTIFY_H)
  ScmPair d2213[58] SCM_ALIGN_PAIR;
#endif /*defined(HAVE_SYS_INOTIFY_H)*/
#if defined(HAVE_SYS_INOTIFY_H)
  ScmObj d2211[101];
#endif /*defined(HAVE_SYS_INOTIFY_H)*/
  ScmObj d2200[2];
} scm__rc SCM_UNUSED = {
#if (defined(__APPLE__))&&(defined(__MACH__))
  {   /* ScmPair d2223 */
       { SCM_NIL, SCM_NIL },
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2223[1])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2223[2])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2223[3])},
       { SCM_MAKE_INT(336U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d2221[6]), SCM_OBJ(&scm__rc.d2223[5])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2223[6])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2223[8])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2223[9])},
       { SCM_OBJ(&scm__rc.d2223[10]), SCM_NIL},
       { SCM_OBJ(&scm__rc.d2223[7]), SCM_OBJ(&scm__rc.d2223[11])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_MAKE_INT(366U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d2221[6]), SCM_OBJ(&scm__rc.d2223[14])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2223[15])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2223[17])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2223[18])},
       { SCM_OBJ(&scm__rc.d2223[19]), SCM_NIL},
       { SCM_OBJ(&scm__rc.d2223[16]), SCM_OBJ(&scm__rc.d2223[20])},
  },
#endif /*(defined(__APPLE__))&&(defined(__MACH__))*/
#if (defined(__APPLE__))&&(defined(__MACH__))
  {   /* ScmObj d2222 */
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_OBJ(SCM_CLASS_STATIC_TAG(Scm_VectorClass)) /* <vector> */,
    SCM_VECTOR_SIZE_SLOT_INITIALIZER(8, FALSE),
    SCM_MAKE_INT(1U),
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_OBJ(SCM_CLASS_STATIC_TAG(Scm_VectorClass)) /* <vector> */,
    SCM_VECTOR_SIZE_SLOT_INITIALIZER(5, FALSE),
    SCM_MAKE_INT(1U),
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
  },
#endif /*(defined(__APPLE__))&&(defined(__MACH__))*/
#if defined(HAVE_SYS_EVENT_H)
  {   /* ScmPair d2216 */
       { SCM_NIL, SCM_NIL },
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[1])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[2])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[3])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[4])},
       { SCM_MAKE_INT(195U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d2215[24]), SCM_OBJ(&scm__rc.d2216[6])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[7])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[9])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[10])},
       { SCM_OBJ(&scm__rc.d2216[11]), SCM_NIL},
       { SCM_OBJ(&scm__rc.d2216[8]), SCM_OBJ(&scm__rc.d2216[12])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[14])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[15])},
       { SCM_MAKE_INT(245U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d2215[24]), SCM_OBJ(&scm__rc.d2216[17])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[18])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[20])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2216[21])},
       { SCM_OBJ(&scm__rc.d2216[22]), SCM_NIL},
       { SCM_OBJ(&scm__rc.d2216[19]), SCM_OBJ(&scm__rc.d2216[23])},
  },
#endif /*defined(HAVE_SYS_EVENT_H)*/
#if defined(HAVE_SYS_EVENT_H)
  {   /* ScmObj d2214 */
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_OBJ(SCM_CLASS_STATIC_TAG(Scm_VectorClass)) /* <vector> */,
    SCM_VECTOR_SIZE_SLOT_INITIALIZER(9, FALSE),
    SCM_MAKE_INT(1U),
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_OBJ(SCM_CLASS_STATIC_TAG(Scm_VectorClass)) /* <vector> */,
    SCM_VECTOR_SIZE_SLOT_INITIALIZER(7, FALSE),
    SCM_MAKE_INT(1U),
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
  },
#endif /*defined(HAVE_SYS_EVENT_H)*/
#if defined(HAVE_SYS_INOTIFY_H)
  {   /* ScmPair d2213 */
       { SCM_NIL, SCM_NIL },
       { SCM_MAKE_INT(97U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d2212[28]), SCM_OBJ(&scm__rc.d2213[1])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[2])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[4])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[5])},
       { SCM_OBJ(&scm__rc.d2213[6]), SCM_NIL},
       { SCM_OBJ(&scm__rc.d2213[3]), SCM_OBJ(&scm__rc.d2213[7])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_MAKE_INT(102U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d2212[28]), SCM_OBJ(&scm__rc.d2213[10])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[11])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[13])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[14])},
       { SCM_OBJ(&scm__rc.d2213[15]), SCM_NIL},
       { SCM_OBJ(&scm__rc.d2213[12]), SCM_OBJ(&scm__rc.d2213[16])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[18])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[19])},
       { SCM_MAKE_INT(107U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d2212[28]), SCM_OBJ(&scm__rc.d2213[21])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[22])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[24])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[25])},
       { SCM_OBJ(&scm__rc.d2213[26]), SCM_NIL},
       { SCM_OBJ(&scm__rc.d2213[23]), SCM_OBJ(&scm__rc.d2213[27])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[29])},
       { SCM_MAKE_INT(115U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d2212[28]), SCM_OBJ(&scm__rc.d2213[31])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[32])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[34])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[35])},
       { SCM_OBJ(&scm__rc.d2213[36]), SCM_NIL},
       { SCM_OBJ(&scm__rc.d2213[33]), SCM_OBJ(&scm__rc.d2213[37])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_MAKE_INT(126U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d2212[28]), SCM_OBJ(&scm__rc.d2213[40])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[41])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[43])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[44])},
       { SCM_OBJ(&scm__rc.d2213[45]), SCM_NIL},
       { SCM_OBJ(&scm__rc.d2213[42]), SCM_OBJ(&scm__rc.d2213[46])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[48])},
       { SCM_MAKE_INT(136U), SCM_NIL},
       { SCM_OBJ(&scm__sc.d2212[28]), SCM_OBJ(&scm__rc.d2213[50])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[51])},
       { SCM_UNDEFINED, SCM_NIL},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[53])},
       { SCM_UNDEFINED, SCM_OBJ(&scm__rc.d2213[54])},
       { SCM_OBJ(&scm__rc.d2213[55]), SCM_NIL},
       { SCM_OBJ(&scm__rc.d2213[52]), SCM_OBJ(&scm__rc.d2213[56])},
  },
#endif /*defined(HAVE_SYS_INOTIFY_H)*/
#if defined(HAVE_SYS_INOTIFY_H)
  {   /* ScmObj d2211 */
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_OBJ(SCM_CLASS_STATIC_TAG(Scm_VectorClass)) /* <vector> */,
    SCM_VECTOR_SIZE_SLOT_INITIALIZER(4, FALSE),
    SCM_MAKE_INT(1U),
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_OBJ(SCM_CLASS_STATIC_TAG(Scm_VectorClass)) /* <vector> */,
    SCM_VECTOR_SIZE_SLOT_INITIALIZER(5, FALSE),
    SCM_MAKE_INT(1U),
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_OBJ(SCM_CLASS_STATIC_TAG(Scm_VectorClass)) /* <vector> */,
    SCM_VECTOR_SIZE_SLOT_INITIALIZER(7, FALSE),
    SCM_MAKE_INT(1U),
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_OBJ(SCM_CLASS_STATIC_TAG(Scm_VectorClass)) /* <vector> */,
    SCM_VECTOR_SIZE_SLOT_INITIALIZER(6, FALSE),
    SCM_MAKE_INT(1U),
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_OBJ(SCM_CLASS_STATIC_TAG(Scm_VectorClass)) /* <vector> */,
    SCM_VECTOR_SIZE_SLOT_INITIALIZER(5, FALSE),
    SCM_MAKE_INT(1U),
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_UNBOUND,
    SCM_OBJ(SCM_CLASS_STATIC_TAG(Scm_VectorClass)) /* <vector> */,
    SCM_VECTOR_SIZE_SLOT_INITIALIZER(6, FALSE),
    SCM_MAKE_INT(1U),
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
    SCM_UNDEFINED,
  },
#endif /*defined(HAVE_SYS_INOTIFY_H)*/
  {   /* ScmObj d2200 */
    SCM_UNBOUND,
    SCM_UNBOUND,
  },
};
#if defined(HAVE_SYS_INOTIFY_H)
typedef struct {  SCM_HEADER; struct inotify_event * data; } ScmSysInotifyEvent;
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
SCM_CLASS_DECL(Scm_SysInotifyEventClass);
#define SCM_INOTIFY_EVENT(obj) ((ScmSysInotifyEvent*)obj)
#define SCM_INOTIFY_EVENT_P(obj) SCM_ISA(obj, (&Scm_SysInotifyEventClass))
SCM_DEFINE_BUILTIN_CLASS(Scm_SysInotifyEventClass, NULL, NULL, NULL, NULL, SCM_CLASS_DEFAULT_CPL);

static ScmObj Scm_SysInotifyEventClass_wd_GET(ScmObj OBJARG)
{
  ScmSysInotifyEvent* obj = SCM_INOTIFY_EVENT(OBJARG);
  return Scm_MakeInteger(obj->data->wd);
}

static void Scm_SysInotifyEventClass_wd_SET(ScmObj OBJARG, ScmObj value)
{
  ScmSysInotifyEvent* obj = SCM_INOTIFY_EVENT(OBJARG);
  if (!SCM_INTEGERP(value)) Scm_Error("int required, but got %S", value);
  obj->data->wd = Scm_GetInteger(value);
}

static ScmObj Scm_SysInotifyEventClass_mask_GET(ScmObj OBJARG)
{
  ScmSysInotifyEvent* obj = SCM_INOTIFY_EVENT(OBJARG);
  return Scm_MakeIntegerU(obj->data->mask);
}

static void Scm_SysInotifyEventClass_mask_SET(ScmObj OBJARG, ScmObj value)
{
  ScmSysInotifyEvent* obj = SCM_INOTIFY_EVENT(OBJARG);
  if (!SCM_UINTEGERP(value)) Scm_Error("uint32_t required, but got %S", value);
  obj->data->mask = Scm_GetIntegerU32(value);
}

static ScmObj Scm_SysInotifyEventClass_cookie_GET(ScmObj OBJARG)
{
  ScmSysInotifyEvent* obj = SCM_INOTIFY_EVENT(OBJARG);
  return Scm_MakeIntegerU(obj->data->cookie);
}

static void Scm_SysInotifyEventClass_cookie_SET(ScmObj OBJARG, ScmObj value)
{
  ScmSysInotifyEvent* obj = SCM_INOTIFY_EVENT(OBJARG);
  if (!SCM_UINTEGERP(value)) Scm_Error("uint32_t required, but got %S", value);
  obj->data->cookie = Scm_GetIntegerU32(value);
}

static ScmObj Scm_SysInotifyEventClass_name_GET(ScmObj OBJARG)
{
  ScmSysInotifyEvent* obj = SCM_INOTIFY_EVENT(OBJARG);
if (obj->data->len) {return SCM_MAKE_STR_IMMUTABLE(obj->data->name);} else {return SCM_FALSE;}
}

static ScmClassStaticSlotSpec Scm_SysInotifyEventClass__SLOTS[] = {
  SCM_CLASS_SLOT_SPEC("wd", Scm_SysInotifyEventClass_wd_GET, Scm_SysInotifyEventClass_wd_SET),
  SCM_CLASS_SLOT_SPEC("mask", Scm_SysInotifyEventClass_mask_GET, Scm_SysInotifyEventClass_mask_SET),
  SCM_CLASS_SLOT_SPEC("cookie", Scm_SysInotifyEventClass_cookie_GET, Scm_SysInotifyEventClass_cookie_SET),
  SCM_CLASS_SLOT_SPEC("name", Scm_SysInotifyEventClass_name_GET, NULL),
  SCM_CLASS_SLOT_SPEC_END()
};

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)

static ScmObj event_2dcoreinotify_init(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  SCM_ENTER_SUBR("inotify-init");
  {
{
int SCM_RESULT;

#line 98 "./event-core.scm"
{int r=inotify_init();
if ((r)<(0)){{Scm_SysError("inotify_init failed");}}
{SCM_RESULT=(r);goto SCM_STUB_RETURN;}}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(Scm_MakeInteger(SCM_RESULT));
}
  }
}

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)

static ScmObj event_2dcoreinotify_init1(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj flags_scm;
  int flags;
  ScmObj SCM_SUBRARGS[1];
  SCM_ENTER_SUBR("inotify-init1");
  for (int SCM_i=0; SCM_i<1; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  flags_scm = SCM_SUBRARGS[0];
  if (!SCM_INTEGERP(flags_scm)) Scm_Error("int required, but got %S", flags_scm);
  flags = Scm_GetInteger(flags_scm);
  {
{
int SCM_RESULT;

#line 103 "./event-core.scm"
{int r=inotify_init1(flags);
if ((r)<(0)){{Scm_SysError("inotify_init1 failed");}}
{SCM_RESULT=(r);goto SCM_STUB_RETURN;}}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(Scm_MakeInteger(SCM_RESULT));
}
  }
}

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)

static ScmObj event_2dcoreinotify_add_watch(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj fd_scm;
  int fd;
  ScmObj pathname_scm;
  const char* pathname;
  ScmObj mask_scm;
  uint32_t mask;
  ScmObj SCM_SUBRARGS[3];
  SCM_ENTER_SUBR("inotify-add-watch");
  for (int SCM_i=0; SCM_i<3; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  fd_scm = SCM_SUBRARGS[0];
  if (!SCM_INTEGERP(fd_scm)) Scm_Error("int required, but got %S", fd_scm);
  fd = Scm_GetInteger(fd_scm);
  pathname_scm = SCM_SUBRARGS[1];
  if (!SCM_STRINGP(pathname_scm)) Scm_Error("const char* required, but got %S", pathname_scm);
  pathname = SCM_STRING_CONST_CSTRING(pathname_scm);
  mask_scm = SCM_SUBRARGS[2];
  if (!SCM_UINTEGERP(mask_scm)) Scm_Error("uint32_t required, but got %S", mask_scm);
  mask = Scm_GetIntegerU32(mask_scm);
  {
{
int SCM_RESULT;

#line 111 "./event-core.scm"
{int r=inotify_add_watch(fd,pathname,mask);
if ((r)<(0)){{Scm_SysError("inotify_add_watch failed");}}
{SCM_RESULT=(r);goto SCM_STUB_RETURN;}}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(Scm_MakeInteger(SCM_RESULT));
}
  }
}

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)

static ScmObj event_2dcoreinotify_rm_watch(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj fd_scm;
  int fd;
  ScmObj wd_scm;
  int wd;
  ScmObj SCM_SUBRARGS[2];
  SCM_ENTER_SUBR("inotify-rm-watch");
  for (int SCM_i=0; SCM_i<2; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  fd_scm = SCM_SUBRARGS[0];
  if (!SCM_INTEGERP(fd_scm)) Scm_Error("int required, but got %S", fd_scm);
  fd = Scm_GetInteger(fd_scm);
  wd_scm = SCM_SUBRARGS[1];
  if (!SCM_INTEGERP(wd_scm)) Scm_Error("int required, but got %S", wd_scm);
  wd = Scm_GetInteger(wd_scm);
  {

#line 117 "./event-core.scm"
{int r=inotify_rm_watch(fd,wd);
if ((r)<(0)){{Scm_SysError("inotify_rm_watch failed");}}}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(SCM_UNDEFINED);
  }
}

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
 ScmObj inotify_event_extract(struct inotify_event* buf){{
#line 121 "./event-core.scm"
{ScmSysInotifyEvent* z=SCM_NEW(ScmSysInotifyEvent);
SCM_SET_CLASS(z,&(Scm_SysInotifyEventClass));
(z)->data=(((struct inotify_event* )(buf)));
return (SCM_OBJ(z));}}}
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)

static ScmObj event_2dcoreinotify_event_copy(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj ev_scm;
  ScmSysInotifyEvent* ev;
  ScmObj SCM_SUBRARGS[1];
  SCM_ENTER_SUBR("inotify-event-copy");
  for (int SCM_i=0; SCM_i<1; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  ev_scm = SCM_SUBRARGS[0];
  if (!SCM_INOTIFY_EVENT_P(ev_scm)) Scm_Error("<inotify-event> required, but got %S", ev_scm);
  ev = SCM_INOTIFY_EVENT(ev_scm);
  {
{
ScmObj SCM_RESULT;

#line 127 "./event-core.scm"
{struct inotify_event* dst=
SCM_NEW2(struct inotify_event* ,
(sizeof(struct inotify_event ))+(
(ev)->data->len));
*(dst)=(*((ev)->data));
{SCM_RESULT=(inotify_event_extract(dst));goto SCM_STUB_RETURN;}}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(SCM_OBJ_SAFE(SCM_RESULT));
}
  }
}

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)

static ScmObj event_2dcoreinotify_read_events(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj fd_scm;
  int fd;
  ScmObj buf_scm;
  ScmUVector* buf;
  ScmObj SCM_SUBRARGS[2];
  SCM_ENTER_SUBR("inotify-read-events");
  for (int SCM_i=0; SCM_i<2; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  fd_scm = SCM_SUBRARGS[0];
  if (!SCM_INTEGERP(fd_scm)) Scm_Error("int required, but got %S", fd_scm);
  fd = Scm_GetInteger(fd_scm);
  buf_scm = SCM_SUBRARGS[1];
  if (!SCM_U8VECTORP(buf_scm)) Scm_Error("<u8vector> required, but got %S", buf_scm);
  buf = SCM_U8VECTOR(buf_scm);
  {
{
ScmObj SCM_RESULT;

#line 137 "./event-core.scm"
{char* buffer=((char* )(SCM_U8VECTOR_ELEMENTS(buf)));ssize_t len=
read(fd,buffer,SCM_U8VECTOR_SIZE(buf));ScmObj h=SCM_NIL;ScmObj t=SCM_NIL;char* p=buffer;
#line 140 "./event-core.scm"
if ((len)<(0)){{Scm_SysError("reading inotify events failed");}}
while((p)<((buffer)+(len))){
{ScmObj ev=inotify_event_extract(((struct inotify_event* )(p)));
SCM_APPEND1(h,t,ev);
p=(((p)+(
sizeof(struct inotify_event )))+(
(SCM_INOTIFY_EVENT(ev))->data->len));}}
{SCM_RESULT=(h);goto SCM_STUB_RETURN;}}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(SCM_OBJ_SAFE(SCM_RESULT));
}
  }
}

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_EVENT_H)
SCM_CLASS_DECL(Scm_SysKeventClass);
#define SCM_SYS_KEVENT(obj) ((ScmSysKevent*)obj)
#define SCM_SYS_KEVENT_P(obj) SCM_ISA(obj, (&Scm_SysKeventClass))
SCM_DEFINE_BUILTIN_CLASS(Scm_SysKeventClass, NULL, NULL, NULL, NULL, SCM_CLASS_DEFAULT_CPL);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)

static ScmObj event_2dcoremake_kevent(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj fd_scm;
  int fd;
  ScmObj filter_scm;
  short filter;
  ScmObj flags_scm;
  u_short flags;
  ScmObj fflags_scm;
  u_int fflags;
  ScmObj data_scm;
  int64_t data;
  ScmObj SCM_SUBRARGS[5];
  SCM_ENTER_SUBR("make-kevent");
  for (int SCM_i=0; SCM_i<5; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  fd_scm = SCM_SUBRARGS[0];
  if (!SCM_INTEGERP(fd_scm)) Scm_Error("int required, but got %S", fd_scm);
  fd = Scm_GetInteger(fd_scm);
  filter_scm = SCM_SUBRARGS[1];
  if (!SCM_INTP(filter_scm)) Scm_Error("short required, but got %S", filter_scm);
  filter = (short)SCM_INT_VALUE(filter_scm);
  flags_scm = SCM_SUBRARGS[2];
  if (!SCM_UINTEGERP(flags_scm)) Scm_Error("u_short required, but got %S", flags_scm);
  flags = (unsigned short)Scm_GetIntegerU(flags_scm);
  fflags_scm = SCM_SUBRARGS[3];
  if (!SCM_UINTEGERP(fflags_scm)) Scm_Error("u_int required, but got %S", fflags_scm);
  fflags = Scm_GetIntegerU(fflags_scm);
  data_scm = SCM_SUBRARGS[4];
  if (!SCM_INTEGERP(data_scm)) Scm_Error("int64_t required, but got %S", data_scm);
  data = Scm_GetInteger64(data_scm);
  {
{
ScmObj SCM_RESULT;

#line 200 "./event-core.scm"
{ScmSysKevent* kev=SCM_NEW(ScmSysKevent);
SCM_SET_CLASS(kev,&(Scm_SysKeventClass));
EV_SET(&((kev)->data),fd,filter,flags,fflags,data,
((void* )(kev)));
{SCM_RESULT=(SCM_OBJ(kev));goto SCM_STUB_RETURN;}}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(SCM_OBJ_SAFE(SCM_RESULT));
}
  }
}

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
static struct kevent* list_TOkeventArray(ScmObj lis,int* nelts){{
#line 208 "./event-core.scm"
{ScmSmallInt n=Scm_Length(lis);
if ((n)<(0)){{
Scm_Error("list of <sys-kevent> required, but got: %S",lis);}}
{struct kevent* p=
((n)?(SCM_NEW_ATOMIC_ARRAY(struct kevent ,n)):(NULL));ScmSmallInt i=0;
#line 214 "./event-core.scm"
while((i)<(n)){
if (!(SCM_SYS_KEVENT_P(SCM_CAR(lis)))){{
Scm_Error("<sys-kevent> required, but got: %S",SCM_CAR(lis));}}
{ScmSysKevent* kev=SCM_SYS_KEVENT(SCM_CAR(lis));
EV_SET((p)+(i),
((kev)->data).ident,
((kev)->data).filter,
((kev)->data).flags,
((kev)->data).fflags,
((kev)->data).data,
((void* )(kev)));}
++(i);
lis=(SCM_CDR(lis));}
*(nelts)=(((int )(n)));
return (p);}}}}
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
 ScmObj keventArray_TOlist(struct kevent* p,int nelts){{
#line 231 "./event-core.scm"
{ScmObj h=SCM_NIL;ScmObj t=SCM_NIL;int i=0;
while((i)<(nelts)){
{ScmSysKevent* kev=SCM_NEW(ScmSysKevent);
EV_SET(&((kev)->data),
(p)->ident,
(p)->filter,
(p)->flags,
(p)->fflags,
(p)->data,kev);
#line 241 "./event-core.scm"
SCM_SET_CLASS(kev,&(Scm_SysKeventClass));
SCM_APPEND1(h,t,SCM_OBJ(kev));}}
return (h);}}}
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)

static ScmObj event_2dcorekevent(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj kq_scm;
  int kq;
  ScmObj changeList_scm;
  ScmObj changeList;
  ScmObj timeout_scm;
  ScmObj timeout;
  ScmObj SCM_SUBRARGS[3];
  SCM_ENTER_SUBR("kevent");
  for (int SCM_i=0; SCM_i<3; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  kq_scm = SCM_SUBRARGS[0];
  if (!SCM_INTEGERP(kq_scm)) Scm_Error("int required, but got %S", kq_scm);
  kq = Scm_GetInteger(kq_scm);
  changeList_scm = SCM_SUBRARGS[1];
  if (!(changeList_scm)) Scm_Error("scheme object required, but got %S", changeList_scm);
  changeList = (changeList_scm);
  timeout_scm = SCM_SUBRARGS[2];
  if (!(timeout_scm)) Scm_Error("scheme object required, but got %S", timeout_scm);
  timeout = (timeout_scm);
  {
{
ScmObj SCM_RESULT;

#line 248 "./event-core.scm"
{ScmTimeSpec ts;ScmTimeSpec* pts=
Scm_GetTimeSpec(timeout,&(ts));int ncl;struct kevent* pcl=
#line 251 "./event-core.scm"
list_TOkeventArray(changeList,&(ncl));struct kevent res[128];int r=0;
#line 254 "./event-core.scm"
SCM_SYSCALL(r,kevent(kq,pcl,ncl,res,128,pts));
if ((r)<(0)){Scm_SysError("kqueue failed",r);}else if(
(r)==(0)){{SCM_RESULT=(SCM_NIL);goto SCM_STUB_RETURN;}} else {
{SCM_RESULT=(keventArray_TOlist(res,r));goto SCM_STUB_RETURN;}}}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(SCM_OBJ_SAFE(SCM_RESULT));
}
  }
}

#endif /* defined(HAVE_SYS_EVENT_H) */
#if (defined(__APPLE__))&&(defined(__MACH__))
SCM_CLASS_DECL(Scm_SysFileSystemEventStreamClass);
#define SCM_FILE_SYSTEM_EVENT_STREAM(obj) ((ScmSysFileSystemEventStream*)obj)
#define SCM_FILE_SYSTEM_EVENT_STREAM_P(obj) SCM_ISA(obj, (&Scm_SysFileSystemEventStreamClass))
SCM_DEFINE_BUILTIN_CLASS(Scm_SysFileSystemEventStreamClass, NULL, NULL, NULL, NULL, SCM_CLASS_DEFAULT_CPL);

#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
SCM_CLASS_DECL(Scm_SysFileSystemEventClass);
#define SCM_FILE_SYSTEM_EVENT(obj) ((ScmSysFileSystemEvent*)obj)
#define SCM_FILE_SYSTEM_EVENT_P(obj) SCM_ISA(obj, (&Scm_SysFileSystemEventClass))
SCM_DEFINE_BUILTIN_CLASS(Scm_SysFileSystemEventClass, NULL, NULL, NULL, NULL, SCM_CLASS_DEFAULT_CPL);

static ScmObj Scm_SysFileSystemEventClass_name_GET(ScmObj OBJARG)
{
  ScmSysFileSystemEvent* obj = SCM_FILE_SYSTEM_EVENT(OBJARG);
  return SCM_OBJ_SAFE(obj->name);
}

static void Scm_SysFileSystemEventClass_name_SET(ScmObj OBJARG, ScmObj value)
{
  ScmSysFileSystemEvent* obj = SCM_FILE_SYSTEM_EVENT(OBJARG);
  obj->name = (value);
}

static ScmObj Scm_SysFileSystemEventClass_flags_GET(ScmObj OBJARG)
{
  ScmSysFileSystemEvent* obj = SCM_FILE_SYSTEM_EVENT(OBJARG);
  return SCM_OBJ_SAFE(obj->flags);
}

static void Scm_SysFileSystemEventClass_flags_SET(ScmObj OBJARG, ScmObj value)
{
  ScmSysFileSystemEvent* obj = SCM_FILE_SYSTEM_EVENT(OBJARG);
  obj->flags = (value);
}

static ScmObj Scm_SysFileSystemEventClass_id_GET(ScmObj OBJARG)
{
  ScmSysFileSystemEvent* obj = SCM_FILE_SYSTEM_EVENT(OBJARG);
  return SCM_OBJ_SAFE(obj->id);
}

static void Scm_SysFileSystemEventClass_id_SET(ScmObj OBJARG, ScmObj value)
{
  ScmSysFileSystemEvent* obj = SCM_FILE_SYSTEM_EVENT(OBJARG);
  obj->id = (value);
}

static ScmClassStaticSlotSpec Scm_SysFileSystemEventClass__SLOTS[] = {
  SCM_CLASS_SLOT_SPEC("name", Scm_SysFileSystemEventClass_name_GET, Scm_SysFileSystemEventClass_name_SET),
  SCM_CLASS_SLOT_SPEC("flags", Scm_SysFileSystemEventClass_flags_GET, Scm_SysFileSystemEventClass_flags_SET),
  SCM_CLASS_SLOT_SPEC("id", Scm_SysFileSystemEventClass_id_GET, Scm_SysFileSystemEventClass_id_SET),
  SCM_CLASS_SLOT_SPEC_END()
};

#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
static void fsestream_cleanup(ScmSysFileSystemEventStream* stream){{
#line 298 "./event-core.scm"
if (!((stream)->closed)){{
FSEventStreamStop((stream)->data);
FSEventStreamInvalidate((stream)->data);
FSEventStreamRelease((stream)->data);
(stream)->closed=(TRUE);}}}}
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
static void fsestream_finalize(ScmObj stream,void* G2218 SCM_UNUSED){{
#line 305 "./event-core.scm"
fsestream_cleanup(((ScmSysFileSystemEventStream* )(stream)));}}
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
 ScmObj make_fsevent(char* path,uint64_t flags,uint64_t id){{
#line 308 "./event-core.scm"
{ScmSysFileSystemEvent* z=SCM_NEW(ScmSysFileSystemEvent);
SCM_SET_CLASS(z,&(Scm_SysFileSystemEventClass));
(z)->name=(SCM_MAKE_STR_COPYING(path));
(z)->flags=(Scm_MakeIntegerU64(flags));
(z)->id=(Scm_MakeIntegerU64(id));
return (SCM_OBJ(z));}}}
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
static void fsestream_callback(ConstFSEventStreamRef G2220 SCM_UNUSED,void* streamobj,size_t num_events,void* event_paths,const FSEventStreamEventFlags* event_flags,const FSEventStreamEventId* event_ids){{
#line 322 "./event-core.scm"
{ScmSysFileSystemEventStream* stream=
((ScmSysFileSystemEventStream* )(streamobj));char** paths=
((char** )(event_paths));ScmObj h=
(stream)->queue;ScmObj t=
((SCM_PAIRP(h))?(Scm_LastPair(h)):(SCM_NIL));size_t i=0;
#line 328 "./event-core.scm"
while((i)<(num_events)){
{ScmObj ev=make_fsevent((paths)[i],
(event_flags)[i],
(event_ids)[i]);
SCM_APPEND1(h,t,ev);}
++(i);}
(stream)->queue=(h);}}}
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))

static ScmObj event_2dcoremake_file_system_event_stream(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj path_scm;
  const char* path;
  ScmObj flags_scm;
  uint64_t flags;
  ScmObj id_scm;
  uint64_t id;
  ScmObj latency_scm;
  double latency;
  ScmObj SCM_SUBRARGS[4];
  SCM_ENTER_SUBR("make-file-system-event-stream");
  for (int SCM_i=0; SCM_i<4; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  path_scm = SCM_SUBRARGS[0];
  if (!SCM_STRINGP(path_scm)) Scm_Error("const char* required, but got %S", path_scm);
  path = SCM_STRING_CONST_CSTRING(path_scm);
  flags_scm = SCM_SUBRARGS[1];
  if (!SCM_UINTEGERP(flags_scm)) Scm_Error("uint64_t required, but got %S", flags_scm);
  flags = Scm_GetIntegerU64(flags_scm);
  id_scm = SCM_SUBRARGS[2];
  if (!SCM_UINTEGERP(id_scm)) Scm_Error("uint64_t required, but got %S", id_scm);
  id = Scm_GetIntegerU64(id_scm);
  latency_scm = SCM_SUBRARGS[3];
  if (!SCM_REALP(latency_scm)) Scm_Error("double required, but got %S", latency_scm);
  latency = Scm_GetDouble(latency_scm);
  {
{
ScmObj SCM_RESULT;

#line 340 "./event-core.scm"
{CFStringRef cfpath=
CFStringCreateWithCString(kCFAllocatorDefault,path,kCFStringEncodingUTF8);CFArrayRef cfpatharray=
#line 345 "./event-core.scm"
CFArrayCreate(NULL,
((const void** )(cfpath)),1,NULL);ScmSysFileSystemEventStream* stream=
#line 349 "./event-core.scm"
SCM_NEW(ScmSysFileSystemEventStream);
SCM_SET_CLASS(stream,&(Scm_SysFileSystemEventStreamClass));
(stream)->data=(NULL),
(stream)->queue=(SCM_NIL),
(stream)->closed=(FALSE);
Scm_RegisterFinalizer(SCM_OBJ(stream),fsestream_finalize,NULL);
(stream)->data=(
FSEventStreamCreate(NULL,
&(fsestream_callback),
((void* )(stream)),cfpatharray,id,latency,flags));
#line 364 "./event-core.scm"
{SCM_RESULT=(SCM_OBJ(stream));goto SCM_STUB_RETURN;}}
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(SCM_OBJ_SAFE(SCM_RESULT));
}
  }
}

#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))

static ScmObj event_2dcoreclose_file_system_event_stream(ScmObj *SCM_FP SCM_UNUSED, int SCM_ARGCNT SCM_UNUSED, void *data_ SCM_UNUSED)
{
  ScmObj stream_scm;
  ScmSysFileSystemEventStream* stream;
  ScmObj SCM_SUBRARGS[1];
  SCM_ENTER_SUBR("close-file-system-event-stream");
  for (int SCM_i=0; SCM_i<1; SCM_i++) {
    SCM_SUBRARGS[SCM_i] = SCM_ARGREF(SCM_i);
  }
  stream_scm = SCM_SUBRARGS[0];
  if (!SCM_FILE_SYSTEM_EVENT_STREAM_P(stream_scm)) Scm_Error("<file-system-event-stream> required, but got %S", stream_scm);
  stream = SCM_FILE_SYSTEM_EVENT_STREAM(stream_scm);
  {

#line 368 "./event-core.scm"
fsestream_cleanup(stream);
goto SCM_STUB_RETURN;
SCM_STUB_RETURN:
SCM_RETURN(SCM_UNDEFINED);
  }
}

#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
static ScmCompiledCode *toplevels[] = {
 NULL /*termination*/
};
void Scm_Init_event_core() {
   Scm_SelectModule(SCM_MODULE(SCM_OBJ(Scm_GaucheModule())));
  scm__rc.d2200[1] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2201[0])),TRUE); /* file.event */
  scm__rc.d2200[0] = SCM_OBJ(Scm_FindModule(SCM_SYMBOL(scm__rc.d2200[1]), SCM_FIND_MODULE_CREATE)); /* module file.event */
   Scm_SelectModule(SCM_MODULE(scm__rc.d2200[0]));
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_InitStaticClassWithMeta(&Scm_SysInotifyEventClass, "<inotify-event>", SCM_MODULE(scm__rc.d2200[0]), NULL, SCM_FALSE, Scm_SysInotifyEventClass__SLOTS, 0);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[0] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[0])),TRUE); /* IN_ACCESS */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[0]), Scm_MakeInteger(IN_ACCESS), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[1] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[1])),TRUE); /* IN_ATTRIB */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[1]), Scm_MakeInteger(IN_ATTRIB), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[2] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[2])),TRUE); /* IN_CLOSE_WRITE */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[2]), Scm_MakeInteger(IN_CLOSE_WRITE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[3] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[3])),TRUE); /* IN_CLOSE_NOWRITE */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[3]), Scm_MakeInteger(IN_CLOSE_NOWRITE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[4] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[4])),TRUE); /* IN_CREATE */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[4]), Scm_MakeInteger(IN_CREATE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[5] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[5])),TRUE); /* IN_DELETE */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[5]), Scm_MakeInteger(IN_DELETE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[6] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[6])),TRUE); /* IN_DELETE_SELF */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[6]), Scm_MakeInteger(IN_DELETE_SELF), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[7] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[7])),TRUE); /* IN_MODIFY */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[7]), Scm_MakeInteger(IN_MODIFY), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[8] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[8])),TRUE); /* IN_MOVE_SELF */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[8]), Scm_MakeInteger(IN_MOVE_SELF), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[9] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[9])),TRUE); /* IN_MOVED_FROM */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[9]), Scm_MakeInteger(IN_MOVED_FROM), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[10] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[10])),TRUE); /* IN_MOVED_TO */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[10]), Scm_MakeInteger(IN_MOVED_TO), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[11] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[11])),TRUE); /* IN_OPEN */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[11]), Scm_MakeInteger(IN_OPEN), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[12] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[12])),TRUE); /* IN_ALL_EVENTS */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[12]), Scm_MakeInteger(IN_ALL_EVENTS), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[13] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[13])),TRUE); /* IN_MOVE */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[13]), Scm_MakeInteger(IN_MOVE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[14] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[14])),TRUE); /* IN_CLOSE */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[14]), Scm_MakeInteger(IN_CLOSE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[15] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[15])),TRUE); /* IN_DONT_FOLLOW */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[15]), Scm_MakeInteger(IN_DONT_FOLLOW), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[16] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[16])),TRUE); /* IN_EXCL_UNLINK */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[16]), Scm_MakeInteger(IN_EXCL_UNLINK), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[17] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[17])),TRUE); /* IN_MASK_ADD */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[17]), Scm_MakeInteger(IN_MASK_ADD), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[18] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[18])),TRUE); /* IN_ONESHOT */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[18]), Scm_MakeInteger(IN_ONESHOT), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[19] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[19])),TRUE); /* IN_ONLYDIR */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[19]), Scm_MakeInteger(IN_ONLYDIR), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[20] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[20])),TRUE); /* IN_IGNORED */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[20]), Scm_MakeInteger(IN_IGNORED), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[21] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[21])),TRUE); /* IN_ISDIR */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[21]), Scm_MakeInteger(IN_ISDIR), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[22] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[22])),TRUE); /* IN_Q_OVERFLOW */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[22]), Scm_MakeInteger(IN_Q_OVERFLOW), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[23] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[23])),TRUE); /* IN_UNMOUNT */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[23]), Scm_MakeInteger(IN_UNMOUNT), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[24] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[24])),TRUE); /* IN_NONBLOCK */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[24]), Scm_MakeInteger(IN_NONBLOCK), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[25] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[25])),TRUE); /* IN_CLOEXEC */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2211[25]), Scm_MakeInteger(IN_CLOEXEC), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[26] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[26])),TRUE); /* inotify-init */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[27] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[27])),TRUE); /* source-info */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[3]), scm__rc.d2211[27]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[28] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[29])),TRUE); /* bind-info */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[29] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[30])),TRUE); /* file.event */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[4]), scm__rc.d2211[26]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[5]), scm__rc.d2211[29]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[6]), scm__rc.d2211[28]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[30] = Scm_MakeExtendedPair(scm__rc.d2211[26], SCM_NIL, SCM_OBJ(&scm__rc.d2213[8]));
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[31] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[31])),TRUE); /* -> */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[32] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[32])),TRUE); /* <int> */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[33]))[3] = scm__rc.d2211[29];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[33]))[4] = scm__rc.d2211[31];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[33]))[5] = scm__rc.d2211[32];
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(SCM_INTERN("inotify-init")), SCM_OBJ(&event_2dcoreinotify_init__STUB), 0);
  event_2dcoreinotify_init__STUB.common.info = scm__rc.d2211[30];
  event_2dcoreinotify_init__STUB.common.typeHint = SCM_OBJ(&scm__rc.d2211[33]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[39] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[33])),TRUE); /* inotify-init1 */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[40] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[34])),TRUE); /* flags */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[9]), scm__rc.d2211[40]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[12]), scm__rc.d2211[27]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[13]), scm__rc.d2211[39]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[14]), scm__rc.d2211[29]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[15]), scm__rc.d2211[28]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[41] = Scm_MakeExtendedPair(scm__rc.d2211[39], SCM_OBJ(&scm__rc.d2213[9]), SCM_OBJ(&scm__rc.d2213[17]));
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[42]))[3] = scm__rc.d2211[29];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[42]))[4] = scm__rc.d2211[32];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[42]))[5] = scm__rc.d2211[31];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[42]))[6] = scm__rc.d2211[32];
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(SCM_INTERN("inotify-init1")), SCM_OBJ(&event_2dcoreinotify_init1__STUB), 0);
  event_2dcoreinotify_init1__STUB.common.info = scm__rc.d2211[41];
  event_2dcoreinotify_init1__STUB.common.typeHint = SCM_OBJ(&scm__rc.d2211[42]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[49] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[35])),TRUE); /* inotify-add-watch */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[50] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[36])),TRUE); /* fd */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[51] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[37])),TRUE); /* pathname */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[52] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[38])),TRUE); /* mask */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[18]), scm__rc.d2211[52]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[19]), scm__rc.d2211[51]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[20]), scm__rc.d2211[50]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[23]), scm__rc.d2211[27]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[24]), scm__rc.d2211[49]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[25]), scm__rc.d2211[29]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[26]), scm__rc.d2211[28]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[53] = Scm_MakeExtendedPair(scm__rc.d2211[49], SCM_OBJ(&scm__rc.d2213[20]), SCM_OBJ(&scm__rc.d2213[28]));
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[54] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[39])),TRUE); /* <const-cstring> */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[55] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[40])),TRUE); /* <uint32> */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[56]))[3] = scm__rc.d2211[29];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[56]))[4] = scm__rc.d2211[32];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[56]))[5] = scm__rc.d2211[54];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[56]))[6] = scm__rc.d2211[55];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[56]))[7] = scm__rc.d2211[31];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[56]))[8] = scm__rc.d2211[32];
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(SCM_INTERN("inotify-add-watch")), SCM_OBJ(&event_2dcoreinotify_add_watch__STUB), 0);
  event_2dcoreinotify_add_watch__STUB.common.info = scm__rc.d2211[53];
  event_2dcoreinotify_add_watch__STUB.common.typeHint = SCM_OBJ(&scm__rc.d2211[56]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[65] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[41])),TRUE); /* inotify-rm-watch */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[66] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[42])),TRUE); /* wd */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[29]), scm__rc.d2211[66]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[30]), scm__rc.d2211[50]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[33]), scm__rc.d2211[27]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[34]), scm__rc.d2211[65]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[35]), scm__rc.d2211[29]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[36]), scm__rc.d2211[28]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[67] = Scm_MakeExtendedPair(scm__rc.d2211[65], SCM_OBJ(&scm__rc.d2213[30]), SCM_OBJ(&scm__rc.d2213[38]));
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[68] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[43])),TRUE); /* <void> */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[69]))[3] = scm__rc.d2211[29];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[69]))[4] = scm__rc.d2211[32];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[69]))[5] = scm__rc.d2211[32];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[69]))[6] = scm__rc.d2211[31];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[69]))[7] = scm__rc.d2211[68];
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(SCM_INTERN("inotify-rm-watch")), SCM_OBJ(&event_2dcoreinotify_rm_watch__STUB), 0);
  event_2dcoreinotify_rm_watch__STUB.common.info = scm__rc.d2211[67];
  event_2dcoreinotify_rm_watch__STUB.common.typeHint = SCM_OBJ(&scm__rc.d2211[69]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[77] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[44])),TRUE); /* inotify-event-copy */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[78] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[45])),TRUE); /* ev */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[39]), scm__rc.d2211[78]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[42]), scm__rc.d2211[27]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[43]), scm__rc.d2211[77]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[44]), scm__rc.d2211[29]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[45]), scm__rc.d2211[28]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[79] = Scm_MakeExtendedPair(scm__rc.d2211[77], SCM_OBJ(&scm__rc.d2213[39]), SCM_OBJ(&scm__rc.d2213[47]));
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[80] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[46])),TRUE); /* <inotify-event> */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[81] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[47])),TRUE); /* <top> */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[82]))[3] = scm__rc.d2211[29];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[82]))[4] = scm__rc.d2211[80];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[82]))[5] = scm__rc.d2211[31];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[82]))[6] = scm__rc.d2211[81];
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(SCM_INTERN("inotify-event-copy")), SCM_OBJ(&event_2dcoreinotify_event_copy__STUB), 0);
  event_2dcoreinotify_event_copy__STUB.common.info = scm__rc.d2211[79];
  event_2dcoreinotify_event_copy__STUB.common.typeHint = SCM_OBJ(&scm__rc.d2211[82]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[89] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[48])),TRUE); /* inotify-read-events */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[90] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[49])),TRUE); /* buf */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[48]), scm__rc.d2211[90]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[49]), scm__rc.d2211[50]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[52]), scm__rc.d2211[27]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[53]), scm__rc.d2211[89]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[54]), scm__rc.d2211[29]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2213[55]), scm__rc.d2211[28]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[91] = Scm_MakeExtendedPair(scm__rc.d2211[89], SCM_OBJ(&scm__rc.d2213[49]), SCM_OBJ(&scm__rc.d2213[57]));
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  scm__rc.d2211[92] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2212[50])),TRUE); /* <u8vector> */
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[93]))[3] = scm__rc.d2211[29];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[93]))[4] = scm__rc.d2211[32];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[93]))[5] = scm__rc.d2211[92];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[93]))[6] = scm__rc.d2211[31];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2211[93]))[7] = scm__rc.d2211[81];
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(SCM_INTERN("inotify-read-events")), SCM_OBJ(&event_2dcoreinotify_read_events__STUB), 0);
  event_2dcoreinotify_read_events__STUB.common.info = scm__rc.d2211[91];
  event_2dcoreinotify_read_events__STUB.common.typeHint = SCM_OBJ(&scm__rc.d2211[93]);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_INOTIFY_H)

#line 150 "./event-core.scm"
Scm_AddFeature("gauche.sys.inotify",NULL);
#endif /* defined(HAVE_SYS_INOTIFY_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_InitStaticClassWithMeta(&Scm_SysKeventClass, "<sys-kevent>", SCM_MODULE(scm__rc.d2200[0]), NULL, SCM_FALSE, NULL, 0);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[0] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[0])),TRUE); /* EV_ADD */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[0]), Scm_MakeInteger(EV_ADD), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[1] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[1])),TRUE); /* EV_ENABLE */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[1]), Scm_MakeInteger(EV_ENABLE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[2] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[2])),TRUE); /* EV_DISABLE */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[2]), Scm_MakeInteger(EV_DISABLE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[3] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[3])),TRUE); /* EV_DISPATCH */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[3]), Scm_MakeInteger(EV_DISPATCH), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[4] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[4])),TRUE); /* EV_DELETE */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[4]), Scm_MakeInteger(EV_DELETE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[5] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[5])),TRUE); /* EV_RECEIPT */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[5]), Scm_MakeInteger(EV_RECEIPT), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[6] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[6])),TRUE); /* EV_ONESHOT */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[6]), Scm_MakeInteger(EV_ONESHOT), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[7] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[7])),TRUE); /* EV_CLEAR */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[7]), Scm_MakeInteger(EV_CLEAR), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[8] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[8])),TRUE); /* EV_EOF */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[8]), Scm_MakeInteger(EV_EOF), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[9] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[9])),TRUE); /* EV_ERROR */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[9]), Scm_MakeInteger(EV_ERROR), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[10] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[10])),TRUE); /* EVFILT_VNODE */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[10]), Scm_MakeInteger(EVFILT_VNODE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[11] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[11])),TRUE); /* NOTE_ATTRIB */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[11]), Scm_MakeInteger(NOTE_ATTRIB), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[12] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[12])),TRUE); /* NOTE_DELETE */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[12]), Scm_MakeInteger(NOTE_DELETE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[13] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[13])),TRUE); /* NOTE_LINK */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[13]), Scm_MakeInteger(NOTE_LINK), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[14] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[14])),TRUE); /* NOTE_RENAME */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[14]), Scm_MakeInteger(NOTE_RENAME), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[15] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[15])),TRUE); /* NOTE_REVOKE */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[15]), Scm_MakeInteger(NOTE_REVOKE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[16] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[16])),TRUE); /* NOTE_WRITE */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(scm__rc.d2214[16]), Scm_MakeInteger(NOTE_WRITE), SCM_BINDING_CONST);

#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[17] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[17])),TRUE); /* make-kevent */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[18] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[18])),TRUE); /* fd */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[19] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[19])),TRUE); /* filter */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[20] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[20])),TRUE); /* flags */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[21] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[21])),TRUE); /* fflags */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[22] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[22])),TRUE); /* data */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[1]), scm__rc.d2214[22]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[2]), scm__rc.d2214[21]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[3]), scm__rc.d2214[20]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[4]), scm__rc.d2214[19]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[5]), scm__rc.d2214[18]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[23] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[23])),TRUE); /* source-info */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[8]), scm__rc.d2214[23]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[24] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[25])),TRUE); /* bind-info */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[25] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[26])),TRUE); /* file.event */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[9]), scm__rc.d2214[17]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[10]), scm__rc.d2214[25]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[11]), scm__rc.d2214[24]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[26] = Scm_MakeExtendedPair(scm__rc.d2214[17], SCM_OBJ(&scm__rc.d2216[5]), SCM_OBJ(&scm__rc.d2216[13]));
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[27] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[27])),TRUE); /* <int> */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[28] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[28])),TRUE); /* <short> */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[29] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[29])),TRUE); /* <ushort> */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[30] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[30])),TRUE); /* <uint> */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[31] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[31])),TRUE); /* <int64> */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[32] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[32])),TRUE); /* -> */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[33] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[33])),TRUE); /* <top> */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[34]))[3] = scm__rc.d2214[25];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[34]))[4] = scm__rc.d2214[27];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[34]))[5] = scm__rc.d2214[28];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[34]))[6] = scm__rc.d2214[29];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[34]))[7] = scm__rc.d2214[30];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[34]))[8] = scm__rc.d2214[31];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[34]))[9] = scm__rc.d2214[32];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[34]))[10] = scm__rc.d2214[33];
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(SCM_INTERN("make-kevent")), SCM_OBJ(&event_2dcoremake_kevent__STUB), 0);
  event_2dcoremake_kevent__STUB.common.info = scm__rc.d2214[26];
  event_2dcoremake_kevent__STUB.common.typeHint = SCM_OBJ(&scm__rc.d2214[34]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[45] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[34])),TRUE); /* kevent */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[46] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[35])),TRUE); /* kq */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[47] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[36])),TRUE); /* changeList */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[48] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2215[37])),TRUE); /* timeout */
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[14]), scm__rc.d2214[48]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[15]), scm__rc.d2214[47]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[16]), scm__rc.d2214[46]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[19]), scm__rc.d2214[23]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[20]), scm__rc.d2214[45]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[21]), scm__rc.d2214[25]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2216[22]), scm__rc.d2214[24]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  scm__rc.d2214[49] = Scm_MakeExtendedPair(scm__rc.d2214[45], SCM_OBJ(&scm__rc.d2216[16]), SCM_OBJ(&scm__rc.d2216[24]));
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[50]))[3] = scm__rc.d2214[25];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[50]))[4] = scm__rc.d2214[27];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[50]))[5] = scm__rc.d2214[33];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[50]))[6] = scm__rc.d2214[33];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[50]))[7] = scm__rc.d2214[32];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2214[50]))[8] = scm__rc.d2214[33];
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(SCM_INTERN("kevent")), SCM_OBJ(&event_2dcorekevent__STUB), 0);
  event_2dcorekevent__STUB.common.info = scm__rc.d2214[49];
  event_2dcorekevent__STUB.common.typeHint = SCM_OBJ(&scm__rc.d2214[50]);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if defined(HAVE_SYS_EVENT_H)

#line 260 "./event-core.scm"
Scm_AddFeature("gauche.sys.kqueue",NULL);
#endif /* defined(HAVE_SYS_EVENT_H) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  Scm_InitStaticClassWithMeta(&Scm_SysFileSystemEventStreamClass, "<file-system-event-stream>", SCM_MODULE(scm__rc.d2200[0]), NULL, SCM_FALSE, NULL, 0);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  Scm_InitStaticClassWithMeta(&Scm_SysFileSystemEventClass, "<file-system-event>", SCM_MODULE(scm__rc.d2200[0]), NULL, SCM_FALSE, Scm_SysFileSystemEventClass__SLOTS, 0);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[0] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[0])),TRUE); /* make-file-system-event-stream */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[1] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[1])),TRUE); /* path */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[2] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[2])),TRUE); /* flags */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[3] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[3])),TRUE); /* id */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[4] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[4])),TRUE); /* latency */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[1]), scm__rc.d2222[4]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[2]), scm__rc.d2222[3]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[3]), scm__rc.d2222[2]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[4]), scm__rc.d2222[1]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[5] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[5])),TRUE); /* source-info */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[7]), scm__rc.d2222[5]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[6] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[7])),TRUE); /* bind-info */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[7] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[8])),TRUE); /* file.event */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[8]), scm__rc.d2222[0]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[9]), scm__rc.d2222[7]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[10]), scm__rc.d2222[6]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[8] = Scm_MakeExtendedPair(scm__rc.d2222[0], SCM_OBJ(&scm__rc.d2223[4]), SCM_OBJ(&scm__rc.d2223[12]));
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[9] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[9])),TRUE); /* <const-cstring> */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[10] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[10])),TRUE); /* <uint64> */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[11] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[11])),TRUE); /* <double> */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[12] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[12])),TRUE); /* -> */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[13] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[13])),TRUE); /* <top> */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[14]))[3] = scm__rc.d2222[7];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[14]))[4] = scm__rc.d2222[9];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[14]))[5] = scm__rc.d2222[10];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[14]))[6] = scm__rc.d2222[10];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[14]))[7] = scm__rc.d2222[11];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[14]))[8] = scm__rc.d2222[12];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[14]))[9] = scm__rc.d2222[13];
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(SCM_INTERN("make-file-system-event-stream")), SCM_OBJ(&event_2dcoremake_file_system_event_stream__STUB), 0);
  event_2dcoremake_file_system_event_stream__STUB.common.info = scm__rc.d2222[8];
  event_2dcoremake_file_system_event_stream__STUB.common.typeHint = SCM_OBJ(&scm__rc.d2222[14]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[24] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[14])),TRUE); /* close-file-system-event-stream */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[25] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[15])),TRUE); /* stream */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[13]), scm__rc.d2222[25]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[16]), scm__rc.d2222[5]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[17]), scm__rc.d2222[24]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[18]), scm__rc.d2222[7]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  SCM_SET_CAR(SCM_OBJ(&scm__rc.d2223[19]), scm__rc.d2222[6]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[26] = Scm_MakeExtendedPair(scm__rc.d2222[24], SCM_OBJ(&scm__rc.d2223[13]), SCM_OBJ(&scm__rc.d2223[21]));
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[27] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[16])),TRUE); /* <file-system-event-stream> */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  scm__rc.d2222[28] = Scm_MakeSymbol(SCM_STRING(SCM_OBJ(&scm__sc.d2221[17])),TRUE); /* <void> */
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[29]))[3] = scm__rc.d2222[7];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[29]))[4] = scm__rc.d2222[27];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[29]))[5] = scm__rc.d2222[12];
  ((ScmObj*)SCM_OBJ(&scm__rc.d2222[29]))[6] = scm__rc.d2222[28];
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
#if (defined(__APPLE__))&&(defined(__MACH__))
  Scm_MakeBinding(SCM_MODULE(scm__rc.d2200[0]), SCM_SYMBOL(SCM_INTERN("close-file-system-event-stream")), SCM_OBJ(&event_2dcoreclose_file_system_event_stream__STUB), 0);
  event_2dcoreclose_file_system_event_stream__STUB.common.info = scm__rc.d2222[26];
  event_2dcoreclose_file_system_event_stream__STUB.common.typeHint = SCM_OBJ(&scm__rc.d2222[29]);
#endif /* (defined(__APPLE__))&&(defined(__MACH__)) */
  Scm_VMExecuteToplevels(toplevels);
}
