platform/unix.c
changeset 69 546a95cc5591
parent 67 5000499d4ee2
child 70 203efbe2532e
equal deleted inserted replaced
68:c9a10b5d5f4f 69:546a95cc5591
   456     BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL);
   456     BAIL_IF_MACRO(retval == NULL, ERR_OUT_OF_MEMORY, NULL);
   457     strcpy(retval, resolved_path);
   457     strcpy(retval, resolved_path);
   458     return(retval);
   458     return(retval);
   459 } /* __PHYSFS_platformRealPath */
   459 } /* __PHYSFS_platformRealPath */
   460 
   460 
       
   461 
       
   462 int __PHYSFS_platformMkDir(const char *path)
       
   463 {
       
   464     errno = 0;
       
   465     rc = mkdir(path, S_IRWXU);
       
   466     BAIL_IF_MACRO(rc == -1, strerror(errno), 0);
       
   467     return(1);
       
   468 } /* __PHYSFS_platformMkDir */
       
   469 
   461 /* end of unix.c ... */
   470 /* end of unix.c ... */
   462 
   471