unix.c
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--
Redesign of enumerateFiles code. More efficient and clean, less memory hungry. Some tiny snafus, though, for future maintanence (*shrug*).

/*
 * Unix support routines for PhysicsFS.
 *
 * Please see the file LICENSE in the source's root directory.
 *
 *  This file written by Ryan C. Gordon.
 */

#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>

#define __PHYSICSFS_INTERNAL__
#include "physfs_internal.h"


const char *__PHYSFS_PlatformDirSeparator = "/";

char **__PHYSFS_platformDetectAvailableCDs(void)
{
} /* __PHYSFS_detectAvailableCDs */


char *__PHYSFS_platformCalcBaseDir(char *argv0)
{
    return(NULL);
} /* __PHYSFS_platformCalcBaseDir */


int __PHYSFS_platformGetThreadID(void)
{
    return((int) pthread_self());
} /* __PHYSFS_platformGetThreadID */


int __PHYSFS_platformStricmp(const char *str1, const char *str2)
{
    return(strcasecmp(str1, str2));
} /* __PHYSFS_platformStricmp */


int __PHYSFS_platformIsSymlink(const char *fname)
{
} /* __PHYSFS_platformIsSymlink */


char *__PHYSFS_platformGetUserName(void)
{
} /* __PHYSFS_platformGetUserName */


char *__PHYSFS_platformGetUserDir(void);
{
} /* __PHYSFS_platformGetUserDir */


/* end of unix.c ... */