Author: bonefish Date: 2009-11-25 22:21:58 +0100 (Wed, 25 Nov 2009) New Revision: 34256 Changeset: http://dev.haiku-os.org/changeset/34256/haiku Modified: haiku/trunk/headers/private/fs_shell/fssh_api_wrapper.h haiku/trunk/headers/private/fs_shell/fssh_defs.h Log: Added new [FSSH]_B_HAIKU_{32,64}_BIT macros. Modified: haiku/trunk/headers/private/fs_shell/fssh_api_wrapper.h =================================================================== --- haiku/trunk/headers/private/fs_shell/fssh_api_wrapper.h 2009-11-25 21:17:19 UTC (rev 34255) +++ haiku/trunk/headers/private/fs_shell/fssh_api_wrapper.h 2009-11-25 21:21:58 UTC (rev 34256) @@ -127,6 +127,14 @@ //////////////////////////////////////////////////////////////////////////////// // #pragma mark - fssh_defs.h +// 32/64 bitness +#ifdef FSSH_B_HAIKU_64_BIT +# define B_HAIKU_64_BIT FSSH_B_HAIKU_64_BIT +#endif +#ifdef FSSH_B_HAIKU_32_BIT +# define B_HAIKU_32_BIT FSSH_B_HAIKU_32_BIT +#endif + // Limits #define B_DEV_NAME_LENGTH FSSH_B_DEV_NAME_LENGTH #define B_FILE_NAME_LENGTH FSSH_B_FILE_NAME_LENGTH Modified: haiku/trunk/headers/private/fs_shell/fssh_defs.h =================================================================== --- haiku/trunk/headers/private/fs_shell/fssh_defs.h 2009-11-25 21:17:19 UTC (rev 34255) +++ haiku/trunk/headers/private/fs_shell/fssh_defs.h 2009-11-25 21:21:58 UTC (rev 34256) @@ -1,13 +1,21 @@ /* - * Copyright 2007, Ingo Weinhold, bonefish@xxxxxxxxxxxxxxxx + * Copyright 2007-2009, Ingo Weinhold, bonefish@xxxxxxxxxxxxxxxx * Distributed under the terms of the MIT License. */ #ifndef _FSSH_DEFS_H #define _FSSH_DEFS_H + #include "fssh_types.h" +// 32/64 bitness +#ifdef HAIKU_HOST_PLATFORM_64_BIT +# define FSSH_B_HAIKU_64_BIT 1 +#else +# define FSSH_B_HAIKU_32_BIT 1 +#endif + // Limits #define FSSH_B_DEV_NAME_LENGTH 128 #define FSSH_B_FILE_NAME_LENGTH 256 @@ -17,14 +25,14 @@ #define FSSH_B_MAX_SYMLINKS 16 // Open Modes -#define FSSH_B_READ_ONLY FSSH_O_RDONLY // read only -#define FSSH_B_WRITE_ONLY FSSH_O_WRONLY // write only +#define FSSH_B_READ_ONLY FSSH_O_RDONLY // read only +#define FSSH_B_WRITE_ONLY FSSH_O_WRONLY // write only #define FSSH_B_READ_WRITE FSSH_O_RDWR // read and write -#define FSSH_B_FAIL_IF_EXISTS FSSH_O_EXCL // exclusive create -#define FSSH_B_CREATE_FILE FSSH_O_CREAT // create the file -#define FSSH_B_ERASE_FILE FSSH_O_TRUNC // erase the file's data -#define FSSH_B_OPEN_AT_END FSSH_O_APPEND // point to the end of the data +#define FSSH_B_FAIL_IF_EXISTS FSSH_O_EXCL // exclusive create +#define FSSH_B_CREATE_FILE FSSH_O_CREAT // create the file +#define FSSH_B_ERASE_FILE FSSH_O_TRUNC // erase the file's data +#define FSSH_B_OPEN_AT_END FSSH_O_APPEND // point to the end of the data // Node Flavors enum fssh_node_flavor {