lfs.h 421 B

1234567891011121314151617
  1. /*
  2. ** LuaFileSystem
  3. ** Copyright Kepler Project 2003 (http://www.keplerproject.org/luafilesystem)
  4. **
  5. ** $Id: lfs.h,v 1.5 2008/02/19 20:08:23 mascarenhas Exp $
  6. */
  7. /* Define 'chdir' for systems that do not implement it */
  8. #ifdef NO_CHDIR
  9. #define chdir(p) (-1)
  10. #define chdir_error "Function 'chdir' not provided by system"
  11. #else
  12. #define chdir_error strerror(errno)
  13. #endif
  14. int luaopen_lfs (lua_State *L);