make use of COMPILE_FOR_R5, make some things static.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10163 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -15,10 +15,16 @@
|
|||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|
||||||
/* use R5 undocumented syscalls to find mountpoints */
|
/* use R5 undocumented syscalls to find mountpoints */
|
||||||
#define USE_R5_SYSCALL_HACK
|
//#define USE_R5_SYSCALL_HACK
|
||||||
|
|
||||||
/* use pwents to find home */
|
/* use pwents to find home */
|
||||||
#define USE_PWENTS
|
#define USE_PWENTS
|
||||||
|
|
||||||
|
#ifdef COMPILE_FOR_R5
|
||||||
|
#define USE_R5_SYSCALL_HACK
|
||||||
|
#undef USE_PWENTS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_R5_SYSCALL_HACK
|
#ifdef USE_R5_SYSCALL_HACK
|
||||||
// un* are unknown params
|
// un* are unknown params
|
||||||
@@ -29,7 +35,7 @@ extern status_t _kclosedir_(int dir);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* /bin/strings rox */
|
/* /bin/strings rox */
|
||||||
const char *beos_dirs[] = {
|
static const char *beos_dirs[] = {
|
||||||
"beos",
|
"beos",
|
||||||
"beos/system",
|
"beos/system",
|
||||||
"beos/system/add-ons",
|
"beos/system/add-ons",
|
||||||
@@ -52,7 +58,7 @@ const char *beos_dirs[] = {
|
|||||||
//#define HOME "$h"
|
//#define HOME "$h"
|
||||||
#define HOME "home"
|
#define HOME "home"
|
||||||
|
|
||||||
const char *common_dirs[] = {
|
static const char *common_dirs[] = {
|
||||||
HOME"",
|
HOME"",
|
||||||
HOME"/config",
|
HOME"/config",
|
||||||
HOME"/config/add-ons",
|
HOME"/config/add-ons",
|
||||||
@@ -77,7 +83,7 @@ HOME"/config/sounds",
|
|||||||
#undef HOME
|
#undef HOME
|
||||||
#define HOME "$h"
|
#define HOME "$h"
|
||||||
|
|
||||||
const char *user_dirs[] = {
|
static const char *user_dirs[] = {
|
||||||
HOME"",
|
HOME"",
|
||||||
HOME"/config",
|
HOME"/config",
|
||||||
HOME"/config/add-ons",
|
HOME"/config/add-ons",
|
||||||
@@ -99,7 +105,7 @@ apps
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* make dir and parents if needed */
|
/* make dir and parents if needed */
|
||||||
int mkdir_p(const char *path, mode_t mode)
|
static int mkdir_p(const char *path, mode_t mode)
|
||||||
{
|
{
|
||||||
char buffer[B_PATH_NAME_LENGTH+1];
|
char buffer[B_PATH_NAME_LENGTH+1];
|
||||||
int slash = 0;
|
int slash = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user