chiark / gitweb /
REORG Delete everything that's not innduct or build system or changed for innduct
[inn-innduct.git] / lib / xfopena.c
diff --git a/lib/xfopena.c b/lib/xfopena.c
deleted file mode 100644 (file)
index 220927f..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/*  $Id: xfopena.c 5381 2002-03-31 22:35:47Z rra $
-**
-*/
-
-#include "config.h"
-#include "clibrary.h"
-#include <fcntl.h>
-
-#include "libinn.h"
-
-/*
-**  Open a file in append mode.  Since not all fopen's set the O_APPEND
-**  flag, we do it by hand.
-*/
-FILE *xfopena(const char *p)
-{
-    int                fd;
-
-    /* We can't trust stdio to really use O_APPEND, so open, then fdopen. */
-    fd = open(p, O_WRONLY | O_APPEND | O_CREAT, 0666);
-    return fd >= 0 ? fdopen(fd, "a") : NULL;
-}