author | Ryan C. Gordon <icculus@icculus.org> |
Sat, 07 Jul 2001 03:52:43 +0000 | |
changeset 15 | 418eacc97ac8 |
parent 11 | 677e01f5109e |
permissions | -rw-r--r-- |
4 | 1 |
/* |
2 |
* Unix support routines for PhysicsFS. |
|
3 |
* |
|
4 |
* Please see the file LICENSE in the source's root directory. |
|
5 |
* |
|
6 |
* This file written by Ryan C. Gordon. |
|
7 |
*/ |
|
8 |
||
9 |
#include <stdio.h> |
|
10 |
#include <stdlib.h> |
|
11 |
#include <pthread.h> |
|
12 |
||
10
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
13 |
#define __PHYSICSFS_INTERNAL__ |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
14 |
#include "physfs_internal.h" |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
15 |
|
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
16 |
|
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
17 |
const char *__PHYSFS_platformDirSeparator = "/"; |
4 | 18 |
|
19 |
char **__PHYSFS_platformDetectAvailableCDs(void) |
|
20 |
{ |
|
21 |
} /* __PHYSFS_detectAvailableCDs */ |
|
22 |
||
23 |
||
24 |
char *__PHYSFS_platformCalcBaseDir(char *argv0) |
|
25 |
{ |
|
26 |
return(NULL); |
|
27 |
} /* __PHYSFS_platformCalcBaseDir */ |
|
28 |
||
29 |
||
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
30 |
char *__PHYSFS_platformGetUserName(void) |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
31 |
{ |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
32 |
} /* __PHYSFS_platformGetUserName */ |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
33 |
|
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
34 |
|
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
35 |
char *__PHYSFS_platformGetUserDir(void) |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
36 |
{ |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
37 |
} /* __PHYSFS_platformGetUserDir */ |
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
38 |
|
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
39 |
|
4 | 40 |
int __PHYSFS_platformGetThreadID(void) |
41 |
{ |
|
42 |
return((int) pthread_self()); |
|
43 |
} /* __PHYSFS_platformGetThreadID */ |
|
44 |
||
10
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
45 |
|
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
46 |
int __PHYSFS_platformStricmp(const char *str1, const char *str2) |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
47 |
{ |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
48 |
return(strcasecmp(str1, str2)); |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
49 |
} /* __PHYSFS_platformStricmp */ |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
50 |
|
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
51 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
52 |
int __PHYSFS_platformIsSymlink(const char *fname) |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
53 |
{ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
54 |
} /* __PHYSFS_platformIsSymlink */ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
55 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
56 |
|
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
57 |
int __PHYSFS_platformIsDirectory(const char *fname) |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
58 |
{ |
15
418eacc97ac8
Tons of updates. Mostly implemented. Mostly compiling.
Ryan C. Gordon <icculus@icculus.org>
parents:
11
diff
changeset
|
59 |
} /* __PHYSFS_platformIsDirectory */ |
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
60 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
61 |
|
4 | 62 |
/* end of unix.c ... */ |
63 |