r1611 - trunk/linux-libc-headers

bdubbs at linuxfromscratch.org bdubbs at linuxfromscratch.org
Sun Jul 30 15:21:33 PDT 2006


Author: bdubbs
Date: 2006-07-30 16:21:30 -0600 (Sun, 30 Jul 2006)
New Revision: 1611

Modified:
   trunk/linux-libc-headers/linux-libc-headers-2.6.12.0-inotify-2.patch
Log:
Use the correct inotify patch

Modified: trunk/linux-libc-headers/linux-libc-headers-2.6.12.0-inotify-2.patch
===================================================================
--- trunk/linux-libc-headers/linux-libc-headers-2.6.12.0-inotify-2.patch	2006-07-30 22:09:08 UTC (rev 1610)
+++ trunk/linux-libc-headers/linux-libc-headers-2.6.12.0-inotify-2.patch	2006-07-30 22:21:30 UTC (rev 1611)
@@ -113,3 +113,38 @@
 +
 +
 +#endif	/* _LINUX_INOTIFY_H */
+diff -urN linux-libc-headers-2.6.12.0.orig/include/sys/inotify.h linux-libc-headers-2.6.12.0/include/sys/inotify.h
+--- linux-libc-headers-2.6.12.0.orig/include/sys/inotify.h	1970-01-01 05:00:00.000000000 +0500
++++ linux-libc-headers-2.6.12.0/include/sys/inotify.h	2006-07-30 13:44:34.000000000 +0600
+@@ -0,0 +1,31 @@
++/*
++ * Inode based directory notification for Linux
++ *
++ * Copyright (C) 2005 John McCutchan
++ */
++
++#ifndef _SYS_INOTIFY_H
++#define _SYS_INOTIFY_H
++
++#include <stdint.h>
++#include <linux/inotify.h>
++#include <asm/unistd.h>
++
++extern long int syscall (long int __sysno, ...) __THROW;
++
++static inline int inotify_init(void)
++{
++	return syscall(__NR_inotify_init);
++}
++	
++static inline int inotify_add_watch(int fd, const char *name, uint32_t mask)
++{
++	return syscall(__NR_inotify_add_watch, fd, name, mask);
++}
++
++static inline int inotify_rm_watch (int fd, uint32_t wd)
++{
++	return syscall(__NR_inotify_rm_watch, fd, wd);
++}
++		
++#endif	/* _SYS_INOTIFY_H */




More information about the patches mailing list