platform/unix.c
changeset 17 7337737f5120
child 20 efdde0d21521
equal deleted inserted replaced
16:702a5d1f34fd 17:7337737f5120
       
     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 
       
    13 #define __PHYSICSFS_INTERNAL__
       
    14 #include "physfs_internal.h"
       
    15 
       
    16 
       
    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 char *__PHYSFS_platformGetUserName(void)
       
    31 {
       
    32 } /* __PHYSFS_platformGetUserName */
       
    33 
       
    34 
       
    35 char *__PHYSFS_platformGetUserDir(void)
       
    36 {
       
    37 } /* __PHYSFS_platformGetUserDir */
       
    38 
       
    39 
       
    40 int __PHYSFS_platformGetThreadID(void)
       
    41 {
       
    42     return((int) pthread_self());
       
    43 } /* __PHYSFS_platformGetThreadID */
       
    44 
       
    45 
       
    46 int __PHYSFS_platformStricmp(const char *str1, const char *str2)
       
    47 {
       
    48     return(strcasecmp(str1, str2));
       
    49 } /* __PHYSFS_platformStricmp */
       
    50 
       
    51 
       
    52 int __PHYSFS_platformIsSymlink(const char *fname)
       
    53 {
       
    54 } /* __PHYSFS_platformIsSymlink */
       
    55 
       
    56 
       
    57 int __PHYSFS_platformIsDirectory(const char *fname)
       
    58 {
       
    59 } /* __PHYSFS_platformIsDirectory */
       
    60 
       
    61 
       
    62 /* end of unix.c ... */
       
    63