patch-2.1.77 linux/fs/ntfs/support.h
Next file: linux/fs/proc/array.c
Previous file: linux/fs/ntfs/support.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Fri Jan 2 01:42:59 1998
- Orig file:
v2.1.76/linux/fs/ntfs/support.h
- Orig date:
Sun Dec 21 16:17:45 1997
diff -u --recursive --new-file v2.1.76/linux/fs/ntfs/support.h linux/fs/ntfs/support.h
@@ -10,8 +10,14 @@
#define DEBUG_MALLOC 2
void ntfs_debug(int mask, const char *fmt, ...);
+#ifdef NTFS_IN_LINUX_KERNEL
+#include <linux/slab.h>
+#define ntfs_malloc(size) kmalloc(size,GFP_KERNEL)
+#define ntfs_free(ptr) kfree(ptr)
+#else
void *ntfs_malloc(int size);
void ntfs_free(void *block);
+#endif
void ntfs_bzero(void *s, int n);
void *ntfs_memcpy(void *dest, const void *src, ntfs_size_t n);
void *ntfs_memmove(void *dest, const void *src, ntfs_size_t n);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov