[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pan-devel] mkstemp impl for windows

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)

Here is an implementation of mkstemp for those of us stuck on windows. Just add this to uunconc.c.

#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;


Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]