author | Ryan C. Gordon <icculus@icculus.org> |
Fri, 06 Jul 2001 21:29:37 +0000 | |
changeset 12 | a4041c91d715 |
parent 11 | 677e01f5109e |
child 15 | 418eacc97ac8 |
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 |
|
4 | 17 |
const char *__PHYSFS_PlatformDirSeparator = "/"; |
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 |
||
30 |
int __PHYSFS_platformGetThreadID(void) |
|
31 |
{ |
|
32 |
return((int) pthread_self()); |
|
33 |
} /* __PHYSFS_platformGetThreadID */ |
|
34 |
||
10
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
35 |
|
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
36 |
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
|
37 |
{ |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
38 |
return(strcasecmp(str1, str2)); |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
39 |
} /* __PHYSFS_platformStricmp */ |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
40 |
|
11
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
41 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
42 |
int __PHYSFS_platformIsSymlink(const char *fname) |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
43 |
{ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
44 |
} /* __PHYSFS_platformIsSymlink */ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
45 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
46 |
|
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
47 |
char *__PHYSFS_platformGetUserName(void) |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
48 |
{ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
49 |
} /* __PHYSFS_platformGetUserName */ |
677e01f5109e
Progress toward complete implementation continues...
Ryan C. Gordon <icculus@icculus.org>
parents:
10
diff
changeset
|
50 |
|
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 |
char *__PHYSFS_platformGetUserDir(void); |
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_platformGetUserDir */ |
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 |
|
4 | 57 |
/* end of unix.c ... */ |
58 |