]> gcc.gnu.org Git - gcc.git/commitdiff
gen-params: Put in cases for O_EXCL, O_APPEND not being defined.
authorGeoffrey Keating <geoffk@redhat.com>
Tue, 28 Nov 2000 19:31:16 +0000 (19:31 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 28 Nov 2000 19:31:16 +0000 (19:31 +0000)
2000-11-28  Geoffrey Keating  <geoffk@redhat.com>
    Felix Lee  <flee@redhat.com>

* gen-params: Put in cases for O_EXCL, O_APPEND not being defined.

Co-Authored-By: Felix Lee <flee@redhat.com>
From-SVN: r37821

libio/ChangeLog
libio/gen-params

index 5c9836ee7b02d2549b32c008ce78c528e1f4081f..ec2fd437739a5e31b71156777b855b7c66e7551c 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-28  Geoffrey Keating  <geoffk@redhat.com>
+           Felix Lee  <flee@redhat.com>
+
+       * gen-params: Put in cases for O_EXCL, O_APPEND not being defined.
+
 2000-10-18  Jakub Jelinek  <jakub@redhat.com>
 
        * iostream.cc (ends): Release the acquired lock.
index 464bb2f0e82acc0dd529800e2d6976a778e854e1..d83c31b609923e0c4b2cf87c75473a3f4e54d78f 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 1992, 1993, 1994, 1997, 1998, 1999 Free Software Foundation
+# Copyright (C) 1992, 1993, 1994, 1997, 1998, 1999, 2000 Free Software Foundation
 # 
 # This file is part of the GNU IO Library.  This library is free
 # software; you can redistribute it and/or modify it under the
@@ -188,6 +188,40 @@ else
   echo "#define ${macro_prefix}HAVE_ST_BLKSIZE 0"
 fi
 
+# A little test program to check if there is an O_APPEND.
+cat >dummy.c <<!EOF!
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+int foo()
+{
+    return O_APPEND;
+}
+!EOF!
+
+if ${CC} -c dummy.c >/dev/null 2>&1 ; then
+  :
+else
+  echo "#define O_APPEND 0"
+fi
+
+# A little test program to check if there is an O_EXCL.
+cat >dummy.c <<!EOF!
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+int foo()
+{
+    return O_EXCL;
+}
+!EOF!
+
+if ${CC} -c dummy.c >/dev/null 2>&1 ; then
+  :
+else
+  echo "#define O_EXCL 0"
+fi
+
 # A little test program to check if the name 'clog' is defined in libm,
 # as it is under DEC UNIX.
 cat >dummy.c <<!EOF!
This page took 0.064098 seconds and 5 git commands to generate.