aboutsummaryrefslogtreecommitdiff
path: root/loslib.c
diff options
context:
space:
mode:
Diffstat (limited to 'loslib.c')
-rw-r--r--loslib.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/loslib.c b/loslib.c
index f788d1ac..722c1e39 100644
--- a/loslib.c
+++ b/loslib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: loslib.c,v 1.37 2011/11/29 17:15:42 roberto Exp roberto $ 2** $Id: loslib.c,v 1.38 2011/11/30 12:35:05 roberto Exp roberto $
3** Standard Operating System library 3** Standard Operating System library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -26,11 +26,12 @@
26#if !defined(LUA_STRFTIMEOPTIONS) 26#if !defined(LUA_STRFTIMEOPTIONS)
27 27
28#if !defined(LUA_USE_POSIX) 28#if !defined(LUA_USE_POSIX)
29#define LUA_STRFTIMEOPTIONS { "aAbBcdHIjmMpSUwWxXyYz%", "" } 29#define LUA_STRFTIMEOPTIONS { "aAbBcdHIjmMpSUwWxXyYz%", "" }
30#else 30#else
31#define LUA_STRFTIMEOPTIONS { "aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%", "", \ 31#define LUA_STRFTIMEOPTIONS \
32 "E", "cCxXyY", \ 32 { "aAbBcCdDeFgGhHIjmMnprRStTuUVwWxXyYzZ%", "" \
33 "O", "deHImMSuUVwWy" } 33 "", "E", "cCxXyY", \
34 "O", "deHImMSuUVwWy" }
34#endif 35#endif
35 36
36#endif 37#endif
@@ -43,7 +44,7 @@
43*/ 44*/
44#if defined(LUA_USE_MKSTEMP) 45#if defined(LUA_USE_MKSTEMP)
45#include <unistd.h> 46#include <unistd.h>
46#define LUA_TMPNAMBUFSIZE 32 47#define LUA_TMPNAMBUFSIZE 32
47#define lua_tmpnam(b,e) { \ 48#define lua_tmpnam(b,e) { \
48 strcpy(b, "/tmp/lua_XXXXXX"); \ 49 strcpy(b, "/tmp/lua_XXXXXX"); \
49 e = mkstemp(b); \ 50 e = mkstemp(b); \
@@ -52,8 +53,8 @@
52 53
53#elif !defined(lua_tmpnam) 54#elif !defined(lua_tmpnam)
54 55
55#define LUA_TMPNAMBUFSIZE L_tmpnam 56#define LUA_TMPNAMBUFSIZE L_tmpnam
56#define lua_tmpnam(b,e) { e = (tmpnam(b) == NULL); } 57#define lua_tmpnam(b,e) { e = (tmpnam(b) == NULL); }
57 58
58#endif 59#endif
59 60