]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/src/third_party/lfs.h
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / civetweb / src / third_party / lfs.h
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
8 /* Define 'chdir' for systems that do not implement it */
9 #ifdef NO_CHDIR
10 #define chdir(p) (-1)
11 #define chdir_error "Function 'chdir' not provided by system"
12 #else
13 #define chdir_error strerror(errno)
14
15 #endif
16
17 #ifdef _WIN32
18 #define chdir(p) (_chdir(p))
19 #define getcwd(d, s) (_getcwd(d, s))
20 #define rmdir(p) (_rmdir(p))
21 #define fileno(f) (_fileno(f))
22 #endif
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 int luaopen_lfs (lua_State *L);
29
30 #ifdef __cplusplus
31 }
32 #endif