forked from enlightenment/efl
evil: returned the good value for mkstemp
Added back some needed defines for elementary (was in evil 1.7.7).
This commit is contained in:
parent
443a1db04a
commit
4605b91804
|
@ -193,6 +193,9 @@ typedef unsigned long gid_t;
|
||||||
# define _S_IWUSR _S_IWRITE
|
# define _S_IWUSR _S_IWRITE
|
||||||
# define _S_IRUSR _S_IREAD
|
# define _S_IRUSR _S_IREAD
|
||||||
|
|
||||||
|
#define S_IRWXO _S_IRWXU
|
||||||
|
#define S_IRWXG _S_IRWXU
|
||||||
|
|
||||||
# define mkdir(p,m) _mkdir(p)
|
# define mkdir(p,m) _mkdir(p)
|
||||||
/*
|
/*
|
||||||
# define close(fd) _close(fd)
|
# define close(fd) _close(fd)
|
||||||
|
|
|
@ -310,7 +310,7 @@ _mkstemp(char *suffix, int val)
|
||||||
|
|
||||||
val += 7777;
|
val += 7777;
|
||||||
|
|
||||||
return v;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI char *
|
EAPI char *
|
||||||
|
@ -369,7 +369,7 @@ mkstemp(char *__template)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
val = _mkstemp(suffix, val);
|
val = _mkstemp(suffix, val);
|
||||||
|
|
||||||
#ifndef __MINGW32CE__
|
#ifndef __MINGW32CE__
|
||||||
fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);
|
fd = _open(__template, _O_RDWR | _O_BINARY | _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);
|
||||||
|
|
Loading…
Reference in New Issue