1
0

unix.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <pthread.h>
  11. #define __PHYSICSFS_INTERNAL__
  12. #include "physfs_internal.h"
  13. const char *__PHYSFS_PlatformDirSeparator = "/";
  14. char **__PHYSFS_platformDetectAvailableCDs(void)
  15. {
  16. } /* __PHYSFS_detectAvailableCDs */
  17. char *__PHYSFS_platformCalcBaseDir(char *argv0)
  18. {
  19. return(NULL);
  20. } /* __PHYSFS_platformCalcBaseDir */
  21. int __PHYSFS_platformGetThreadID(void)
  22. {
  23. return((int) pthread_self());
  24. } /* __PHYSFS_platformGetThreadID */
  25. int __PHYSFS_platformStricmp(const char *str1, const char *str2)
  26. {
  27. return(strcasecmp(str1, str2));
  28. } /* __PHYSFS_platformStricmp */
  29. int __PHYSFS_platformIsSymlink(const char *fname)
  30. {
  31. } /* __PHYSFS_platformIsSymlink */
  32. char *__PHYSFS_platformGetUserName(void)
  33. {
  34. } /* __PHYSFS_platformGetUserName */
  35. char *__PHYSFS_platformGetUserDir(void);
  36. {
  37. } /* __PHYSFS_platformGetUserDir */
  38. /* end of unix.c ... */