Newsgroups: mailing.unix.samba-technical
From: m...@easysw.com (Michael Sweet)
Date: 16 Dec 2000 02:08:16 +0800
Local: Fri, Dec 15 2000 1:08 pm
Subject: Re: warnings on compile
Jeremy Allison wrote: Here's the code from CUPS that replaces the mkstemp() functionality > ... > That's a good idea, we should look into grabbing the > code from glibc or something and modifying it for our > own use. Any volenteers ? :-). with something that is fairly portable; feel free to rip out the Windows code... :) /* char * /* O - Filename */ /* if (filename == NULL) /* #ifdef WIN32 if (getuid() == 0) /* do gettimeofday(&curtime, NULL); /* snprintf(filename, len - 1, "%s/%08x%05x", tmpdir, /* #ifdef O_NOFOLLOW /* close(fd); /* return (filename); } -- ______________________________________________________________________ Michael Sweet, Easy Software Products m...@easysw.com Printing Software for UNIX http://www.easysw.com You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||