Systemd/udev/udev-sysdeps.h

53 lines
1.3 KiB
C
Raw Normal View History

/*
2006-08-28 00:29:11 +02:00
* wrapping of libc features and kernel interfaces
*
2008-07-30 01:45:23 +02:00
* Copyright (C) 2005-2008 Kay Sievers <kay.sievers@vrfy.org>
*
2008-09-10 02:40:42 +02:00
* 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.
*
2008-09-10 02:40:42 +02:00
* 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 <http://www.gnu.org/licenses/>.
*/
#ifndef _UDEV_SYSDEPS_H_
#define _UDEV_SYSDEPS_H_
#include <stdint.h>
2008-11-21 04:19:11 +01:00
#include <errno.h>
2008-07-30 01:45:23 +02:00
/* needed for our signal handlers to work */
#undef asmlinkage
#ifdef __i386__
#define asmlinkage __attribute__((regparm(0)))
#else
2008-07-30 01:45:23 +02:00
#define asmlinkage
#endif /* __i386__ */
2008-07-30 01:45:23 +02:00
#ifndef HAVE_INOTIFY
static inline int inotify_init(void)
{
2008-11-13 01:52:33 +01:00
errno = ENOSYS;
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
2008-09-10 18:59:42 +02:00
#endif /* HAVE_INOTIFY */
#endif