unix.c
author Ryan C. Gordon <icculus@icculus.org>
Fri, 06 Jul 2001 01:27:14 +0000
changeset 7 07d5e6e8259d
parent 4 b8107374195a
child 10 45bd486c0224
permissions -rw-r--r--
More work. Getting better.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
/*
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
 * Unix support routines for PhysicsFS.
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
 *
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
 * Please see the file LICENSE in the source's root directory.
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
 *
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
 *  This file written by Ryan C. Gordon.
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
 */
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
#include <stdio.h>
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    10
#include <stdlib.h>
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    11
#include <pthread.h>
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    12
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    13
const char *__PHYSFS_PlatformDirSeparator = "/";
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    14
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    15
char **__PHYSFS_platformDetectAvailableCDs(void)
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    16
{
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    17
} /* __PHYSFS_detectAvailableCDs */
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    18
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    19
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    20
char *__PHYSFS_platformCalcBaseDir(char *argv0)
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    21
{
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    22
    return(NULL);
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    23
} /* __PHYSFS_platformCalcBaseDir */
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    24
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    25
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    26
int __PHYSFS_platformGetThreadID(void)
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    27
{
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    28
    return((int) pthread_self());
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    29
} /* __PHYSFS_platformGetThreadID */
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    30
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    31
/* end of unix.c ... */
b8107374195a Initial add.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    32