2005-03-06 08:16:52 +03:00
/*
2006-08-28 02:29:11 +04:00
* wrapping of libc features and kernel interfaces
2005-03-06 08:16:52 +03:00
*
2008-07-30 03:45:23 +04:00
* Copyright ( C ) 2005 - 2008 Kay Sievers < kay . sievers @ vrfy . org >
2005-03-06 08:16:52 +03: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 version 2 of the License .
*
* 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 , write to the Free Software Foundation , Inc . ,
2006-08-28 02:29:11 +04:00
* 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 , USA .
2005-03-06 08:16:52 +03:00
*
*/
2006-08-16 04:04:04 +04:00
# ifndef _UDEV_SYSDEPS_H_
# define _UDEV_SYSDEPS_H_
2005-03-06 08:16:52 +03:00
2005-10-27 23:04:38 +04:00
# include <stdint.h>
2008-07-30 03:45:23 +04:00
/* needed for our signal handlers to work */
# undef asmlinkage
# ifdef __i386__
# define asmlinkage __attribute__((regparm(0)))
2005-10-27 23:04:38 +04:00
# else
2008-07-30 03:45:23 +04:00
# define asmlinkage
# endif /* __i386__ */
2005-10-27 23:04:38 +04:00
2008-07-30 03:45:23 +04:00
# ifndef HAVE_INOTIFY
2005-10-28 04:29:38 +04:00
static inline int inotify_init ( void )
{
return - 1 ;
}
static inline int inotify_add_watch ( int fd , const char * name , uint32_t mask )
{
return - 1 ;
}
2008-08-09 00:36:58 +04:00
# define IN_CREATE 0
# define IN_DELETE 0
# define IN_MOVE 0
# define IN_CLOSE_WRITE 0
2006-02-21 19:01:54 +03:00
# endif
2005-10-11 23:06:50 +04:00
2008-07-30 03:45:23 +04:00
# ifndef HAVE_STRLCPY
2005-03-07 06:29:43 +03:00
extern size_t strlcpy ( char * dst , const char * src , size_t size ) ;
extern size_t strlcat ( char * dst , const char * src , size_t size ) ;
2008-07-30 03:45:23 +04:00
# endif
2005-03-07 06:29:43 +03:00
2006-08-16 04:04:04 +04:00
# endif