Now includes StorageDefs.h to get B_FILE_NAME_LENGTH, and defines MAX_SYM_LINKS
as SYMLINKS_MAX (limits.h). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@839 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
SubDir OBOS_TOP src kernel core fs ;
|
SubDir OBOS_TOP src kernel core fs ;
|
||||||
|
|
||||||
|
UsePublicHeaders storage ;
|
||||||
|
|
||||||
KernelStaticLibrary libfs :
|
KernelStaticLibrary libfs :
|
||||||
<$(SOURCE_GRIST)>bootfs.c
|
<$(SOURCE_GRIST)>bootfs.c
|
||||||
<$(SOURCE_GRIST)>devfs.c
|
<$(SOURCE_GRIST)>devfs.c
|
||||||
|
|||||||
@@ -42,6 +42,9 @@
|
|||||||
#include <resource.h>
|
#include <resource.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <limits.h>
|
||||||
|
#include <StorageDefs.h>
|
||||||
|
#include <fs_info.h>
|
||||||
|
|
||||||
#ifndef TRACE_VFS
|
#ifndef TRACE_VFS
|
||||||
# define TRACE_VFS 0
|
# define TRACE_VFS 0
|
||||||
@@ -54,13 +57,7 @@
|
|||||||
# define FUNCTION(x) ;
|
# define FUNCTION(x) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ToDo: remove this and include StorageDefs.h once it's there...
|
#define MAX_SYM_LINKS SYMLINKS_MAX
|
||||||
#ifndef B_FILE_NAME_LENGTH
|
|
||||||
# define B_FILE_NAME_LENGTH 256
|
|
||||||
#endif
|
|
||||||
#include <fs_info.h>
|
|
||||||
|
|
||||||
#define MAX_SYM_LINKS 16
|
|
||||||
|
|
||||||
// Passed in buffers from user-space shouldn't be in the kernel
|
// Passed in buffers from user-space shouldn't be in the kernel
|
||||||
#define CHECK_USER_ADDRESS(x) \
|
#define CHECK_USER_ADDRESS(x) \
|
||||||
|
|||||||
Reference in New Issue
Block a user