From 8460299b572eb13e7b97a0956b59c053f9009afa Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 16 Oct 2008 18:13:48 +0200 Subject: rename udev source files --- udev/udev-sysdeps.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 udev/udev-sysdeps.h (limited to 'udev/udev-sysdeps.h') diff --git a/udev/udev-sysdeps.h b/udev/udev-sysdeps.h new file mode 100644 index 0000000000..eaeab86f6b --- /dev/null +++ b/udev/udev-sysdeps.h @@ -0,0 +1,50 @@ +/* + * wrapping of libc features and kernel interfaces + * + * Copyright (C) 2005-2008 Kay Sievers + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef _UDEV_SYSDEPS_H_ +#define _UDEV_SYSDEPS_H_ + +#include + +/* needed for our signal handlers to work */ +#undef asmlinkage +#ifdef __i386__ +#define asmlinkage __attribute__((regparm(0))) +#else +#define asmlinkage +#endif /* __i386__ */ + +#ifndef HAVE_INOTIFY +static inline int inotify_init(void) +{ + return -1; +} + +static inline int inotify_add_watch(int fd, const char *name, uint32_t mask) +{ + return -1; +} + +#define IN_CREATE 0 +#define IN_DELETE 0 +#define IN_MOVE 0 +#define IN_CLOSE_WRITE 0 + +#endif /* HAVE_INOTIFY */ +#endif -- cgit v1.2.3-54-g00ecf