|
From: | K. Haley |
Subject: | [Pan-devel] mkstemp impl for windows |
Date: | Fri, 05 May 2006 01:58:06 -0600 |
User-agent: | Thunderbird 1.5 (Windows/20051201) |
#ifdef G_OS_WIN32 #include <fcntl.h> #define _S_IREAD 256 #define _S_IWRITE 128 int mkstemp(char *tmpl) { int ret=-1;mktemp(tmpl); ret=open(tmpl,O_RDWR|O_BINARY|O_CREAT|O_EXCL|_O_SHORT_LIVED, _S_IREAD|_S_IWRITE);
return ret; } #endif
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |