OSDN Git Service

2001-07-07 Toon Moene <toon@moene.indiv.nluug.nl>
authortoon <toon@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Jul 2001 18:51:58 +0000 (18:51 +0000)
committertoon <toon@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Jul 2001 18:51:58 +0000 (18:51 +0000)
* libI77/Makefile.in: Update config.h dependencies.
* libI77/configure.in: Define _XOPEN_SOURCE and
_FILE_OFFSET_BITS unconditionally.
* libI77/configure: Rebuilt.
* libI77/config.h.in: Rebuilt.
* libI77/endfile.c (t_runc): Replace rewind by FSEEK.
* libI77/err.c (f__nowwriting): The type of `loc' is off_t.
* libI77/open.c (f_open): Replace rewind by FSEEK.
* libI77/rewind.c: Include config.h.  (f_rew): Replace
rewind by FSEEK.
* libI77/sfe.c: Include config.h.
* libI77/wsfe.c: Ditto.
* libU77/configure.in: Define _XOPEN_SOURCE and
_FILE_OFFSET_BITS unconditionally.
* libU77/configure: Rebuilt.
* libU77/config.hin: Rebuilt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43841 138bc75d-0d04-0410-961f-82ee72b054a4

14 files changed:
libf2c/ChangeLog
libf2c/libI77/Makefile.in
libf2c/libI77/config.h.in
libf2c/libI77/configure
libf2c/libI77/configure.in
libf2c/libI77/endfile.c
libf2c/libI77/err.c
libf2c/libI77/open.c
libf2c/libI77/rewind.c
libf2c/libI77/sfe.c
libf2c/libI77/wsfe.c
libf2c/libU77/config.hin
libf2c/libU77/configure
libf2c/libU77/configure.in

index 3b93925..906d430 100644 (file)
@@ -1,5 +1,24 @@
 2001-07-07  Toon Moene  <toon@moene.indiv.nluug.nl>
 
+       * libI77/Makefile.in: Update config.h dependencies.
+       * libI77/configure.in: Define _XOPEN_SOURCE and
+       _FILE_OFFSET_BITS unconditionally.
+       * libI77/configure: Rebuilt.
+       * libI77/config.h.in: Rebuilt.
+       * libI77/endfile.c (t_runc): Replace rewind by FSEEK.
+       * libI77/err.c (f__nowwriting): The type of `loc' is off_t.
+       * libI77/open.c (f_open): Replace rewind by FSEEK.
+       * libI77/rewind.c: Include config.h.  (f_rew): Replace
+       rewind by FSEEK.
+       * libI77/sfe.c: Include config.h.
+       * libI77/wsfe.c: Ditto.
+       * libU77/configure.in: Define _XOPEN_SOURCE and
+       _FILE_OFFSET_BITS unconditionally.
+       * libU77/configure: Rebuilt.
+       * libU77/config.hin: Rebuilt.
+
+2001-07-07  Toon Moene  <toon@moene.indiv.nluug.nl>
+
        * libI77/Makefile.in: Add necessary dependencies on config.h.
 
 2001-07-06  Toon Moene  <toon@moene.indiv.nluug.nl>
index 28bfa34..8cccf85 100644 (file)
@@ -124,14 +124,14 @@ open.o:           open.c fio.h rawio.h config.h
 rdfmt.o:       fio.h config.h
 rdfmt.o:       fmt.h
 rdfmt.o:       rdfmt.c fp.h
-rewind.o:      rewind.c fio.h
+rewind.o:      rewind.c fio.h config.h
 rsfe.o:                fio.h config.h
 rsfe.o:                rsfe.c fmt.h
 rsli.o:                fio.h
 rsli.o:                rsli.c lio.h
 rsne.o:                fio.h config.h
 rsne.o:                rsne.c lio.h
-sfe.o:         sfe.c fio.h
+sfe.o:         sfe.c fio.h config.h
 sue.o:         sue.c fio.h config.h
 typesize.o:    typesize.c config.h
 uio.o:         uio.c fio.h
@@ -141,7 +141,7 @@ wref.o:             fmt.h
 wref.o:                wref.c fp.h
 wrtfmt.o:      fio.h config.h
 wrtfmt.o:      wrtfmt.c fmt.h
-wsfe.o:                fio.h
+wsfe.o:                fio.h config.h
 wsfe.o:                wsfe.c fmt.h
 wsle.o:                fio.h config.h
 wsle.o:                fmt.h
index 9bd8516..c784d10 100644 (file)
@@ -51,3 +51,9 @@
 /* Define to skip f2c undefs. */
 #undef Skip_f2c_Undefs
 
+/* Get Single Unix Specification semantics */
+#undef _XOPEN_SOURCE
+
+/* Get 64-bit file size support */
+#undef _FILE_OFFSET_BITS
+
index d44e657..8defe25 100755 (executable)
@@ -1706,6 +1706,17 @@ cat >> confdefs.h <<\EOF
 EOF
 
 
+# These defines are necessary to get 64-bit file size support.
+
+cat >> confdefs.h <<\EOF
+#define _XOPEN_SOURCE 500L
+EOF
+
+cat >> confdefs.h <<\EOF
+#define _FILE_OFFSET_BITS 64
+EOF
+
+
 trap '' 1 2 15
 cat > confcache <<\EOF
 # This file is a shell script that caches the results of configure
index de38d6d..5ac1b62 100644 (file)
@@ -201,6 +201,11 @@ AC_TYPE_OFF_T
 
 AC_DEFINE(Skip_f2c_Undefs, 1, [Define to skip f2c undefs.])
 
+# These defines are necessary to get 64-bit file size support.
+
+AC_DEFINE(_XOPEN_SOURCE, 500L, [Get Single Unix Specification semantics])
+AC_DEFINE(_FILE_OFFSET_BITS, 64, [Get 64-bit file size support])
+
 AC_OUTPUT(Makefile)
 
 dnl We might have configuration options to:
index 859eb31..14b51f0 100644 (file)
@@ -111,7 +111,7 @@ t_runc(alist *a)
                }
        if (!(bf = freopen(b->ufnm, f__w_mode[0], bf)))
                goto bad1;
-       rewind(tf);
+       FSEEK(tf, 0, SEEK_SET);
        if (copy(tf, loc, bf))
                goto bad1;
        b->uwrt = 1;
index 5cafab7..1c21f19 100644 (file)
@@ -241,7 +241,7 @@ f__nowwriting(x) unit *x;
 f__nowwriting(unit *x)
 #endif
 {
-       long loc;
+       off_t loc;
        int ufmt;
        extern char *f__w_mode[];
 
index e28faaf..75c8971 100644 (file)
@@ -281,7 +281,7 @@ integer f_open(olist *a)
 #endif
        if(b->useek)
                if (a->orl)
-                       rewind(b->ufd);
+                       FSEEK(b->ufd, 0, SEEK_SET);
                else if ((s = a->oacc) && (*s == 'a' || *s == 'A')
                        && FSEEK(b->ufd, 0, SEEK_END))
                                opnerr(a->oerr,129,"open");
index 9ba4b23..0691519 100644 (file)
@@ -1,3 +1,4 @@
+#include "config.h"
 #include "f2c.h"
 #include "fio.h"
 #ifdef KR_headers
@@ -20,7 +21,7 @@ integer f_rew(alist *a)
                (void) t_runc(a);
                b->uwrt = 3;
                }
-       rewind(b->ufd);
+       FSEEK(b->ufd, 0, SEEK_SET);
        b->uend=0;
        return(0);
 }
index 77ade5b..b67d823 100644 (file)
@@ -1,4 +1,5 @@
 /* sequential formatted external common routines*/
+#include "config.h"
 #include "f2c.h"
 #include "fio.h"
 
index babfb34..490231a 100644 (file)
@@ -1,4 +1,5 @@
 /*write sequential formatted external*/
+#include "config.h"
 #include "f2c.h"
 #include "fio.h"
 #include "fmt.h"
index 19f5399..d0fc0ad 100644 (file)
 
 /* Define if you have the <unistd.h> header file.  */
 #undef HAVE_UNISTD_H
+
+/* Get Single Unix Specification semantics */
+#undef _XOPEN_SOURCE
+
+/* Get 64-bit file size support */
+#undef _FILE_OFFSET_BITS
+
index 7137042..e009546 100755 (executable)
@@ -1060,7 +1060,7 @@ else
 int main() {
 
 /* Ultrix mips cc rejects this.  */
-typedef int charset[2]; const charset x;
+typedef int charset[2]; const charset x = {0,0};
 /* SunOS 4.1.1 cc rejects this.  */
 char const *const *ccp;
 char **p;
@@ -1652,6 +1652,18 @@ test $ac_cv_func_clock = yes && MAYBES="$MAYBES mclock_.o"
 
 
 
+
+# These defines are necessary to get 64-bit file size support.
+
+cat >> confdefs.h <<\EOF
+#define _XOPEN_SOURCE 500L
+EOF
+
+cat >> confdefs.h <<\EOF
+#define _FILE_OFFSET_BITS 64
+EOF
+
+
 trap '' 1 2 15
 cat > confcache <<\EOF
 # This file is a shell script that caches the results of configure
index 03bfe66..d5cecee 100644 (file)
@@ -107,4 +107,10 @@ AC_SUBST(MAYBES)
 AC_SUBST(CROSS)
 AC_SUBST(RANLIB)
 AC_SUBST(RANLIB_TEST)
+
+# These defines are necessary to get 64-bit file size support.
+
+AC_DEFINE(_XOPEN_SOURCE, 500L, [Get Single Unix Specification semantics])
+AC_DEFINE(_FILE_OFFSET_BITS, 64, [Get 64-bit file size support])
+
 AC_OUTPUT(Makefile)