3 * Header file for specific support.c
5 * Copyright (C) 1997 RĂ©gis Duchesne
10 #define DEBUG_MALLOC 2
16 #define DEBUG_FILE1 128
17 #define DEBUG_FILE2 256
18 #define DEBUG_FILE3 512
19 #define DEBUG_NAME1 1024
20 #define DEBUG_NAME2 2048
22 void ntfs_debug(int mask
, const char *fmt
, ...);
23 #ifdef NTFS_IN_LINUX_KERNEL
24 #include <linux/slab.h>
25 #define ntfs_malloc(size) kmalloc(size,GFP_KERNEL)
26 #define ntfs_free(ptr) kfree(ptr)
28 void *ntfs_malloc(int size
);
29 void ntfs_free(void *block
);
31 void ntfs_bzero(void *s
, int n
);
32 void ntfs_memcpy(void *dest
, const void *src
, ntfs_size_t n
);
33 void ntfs_memmove(void *dest
, const void *src
, ntfs_size_t n
);
34 void ntfs_error(const char *fmt
,...);
35 int ntfs_read_mft_record(ntfs_volume
*vol
, int mftno
, char *buf
);
36 int ntfs_getput_clusters(ntfs_volume
*pvol
, int cluster
, ntfs_size_t offs
,
38 ntfs_time64_t
ntfs_now(void);
39 int ntfs_dupuni2map(ntfs_volume
*vol
, ntfs_u16
*in
, int in_len
, char **out
,
41 int ntfs_dupmap2uni(ntfs_volume
*vol
, char* in
, int in_len
, ntfs_u16
**out
,
46 * c-file-style: "linux"