OSDN Git Service

* loop.c (debug_loops): New.
[pf3gnuchains/gcc-fork.git] / libio / gen-params
index 0bcf8bd..d83c31b 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!
@@ -294,7 +328,7 @@ for TYPE in dev_t clock_t fpos_t gid_t ino_t mode_t nlink_t off_t pid_t ptrdiff_
            # Search dummy.out for a typedef for X*$t.
            sed_script="
                s/unsigned long long int/_G_ullong/g
-               s/long long int/_G_llong/g
+               s/long long int /_G_llong /g
                s/unsigned long long/_G_ullong/g
                s/long long/_G_llong/g
                /.*typedef  *\\(.*[^ ]\\)  *X*$t *;.*/{s||\1|;p;q;}