Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
if (!(new = fopen(newname, OPEN_W)))
int fd;
if ((fd = open(newname, O_CREAT|O_EXCL|O_RDWR, S_IREAD|S_IWRITE)) == -1)
arcdie("Cannot create archive copy: %s", newname);
if (!(new = fdopen(fd, OPEN_W)))