* _scm.h: Removed #include <errno.h>.
authorMikael Djurfeldt <djurfeldt@nada.kth.se>
Sat, 10 Mar 2001 16:56:09 +0000 (16:56 +0000)
committerMikael Djurfeldt <djurfeldt@nada.kth.se>
Sat, 10 Mar 2001 16:56:09 +0000 (16:56 +0000)
* error.c, net_db.c, putenv.c, stime.c: Removed declaration of
errno variable (can be a macro on some systems, for example when
using linux libc with threads).

* error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c,
posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c,
socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added
#include <errno.h> in these 20 out of 100 files.

22 files changed:
libguile/ChangeLog
libguile/_scm.h
libguile/error.c
libguile/filesys.c
libguile/gc.c
libguile/ioext.c
libguile/iselect.c
libguile/net_db.c
libguile/ports.c
libguile/posix.c
libguile/print.c
libguile/putenv.c
libguile/scmsigs.c
libguile/script.c
libguile/simpos.c
libguile/smob.c
libguile/socket.c
libguile/srcprop.c
libguile/stime.c
libguile/strop.c
libguile/unif.c
libguile/vports.c

index 18e0ac0..b402560 100644 (file)
@@ -1,3 +1,16 @@
+2001-03-10  Mikael Djurfeldt  <mdj@linnaeus.mit.edu>
+
+       * _scm.h: Removed #include <errno.h>.
+
+       * error.c, net_db.c, putenv.c, stime.c: Removed declaration of
+       errno variable (can be a macro on some systems, for example when
+       using linux libc with threads).
+
+       * error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c,
+       posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c,
+       socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added
+       #include <errno.h> in these 20 out of 100 files.
+       
 2001-03-10  Gary Houston  <ghouston@arglist.com>
 
        * socket.c: add a definition of SUN_LEN (from glibc) for when it's
index f87a303..3ffdc64 100644 (file)
@@ -2,7 +2,7 @@
 
 #ifndef _SCMH
 #define _SCMH
-/*     Copyright (C) 1995,1996, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1995,1996, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 #endif
 #include "libguile/snarf.h"    /* Everyone snarfs. */
 
-/* On VMS, GNU C's errno.h contains a special hack to get link attributes
- * for errno correct for linking to the C RTL.
- */
-#include <errno.h>
-
 /* SCM_SYSCALL retries system calls that have been interrupted (EINTR).
    However this can be avoided if the operating system can restart
    system calls automatically.  We assume this is the case if
index 56454c8..ee8ef2f 100644 (file)
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1995,1996,1997,1998, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1995,1996,1997,1998, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -45,6 +45,7 @@
 \f
 
 #include <stdio.h>
+#include <errno.h>
 
 #include "libguile/_scm.h"
 #include "libguile/pairs.h"
@@ -67,8 +68,6 @@
  */
 
 
-extern int errno;
-
 /* All errors should pass through here.  */
 void
 scm_error (SCM key, const char *subr, const char *message, SCM args, SCM rest)
index a2042c3..737695b 100644 (file)
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -44,6 +44,8 @@
 
 \f
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/smob.h"
 #include "libguile/feature.h"
index bf554aa..c414c75 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 Free Software Foundation, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -51,7 +51,9 @@
 
 \f
 #include <stdio.h>
+#include <errno.h>
 #include <string.h>
+
 #include "libguile/_scm.h"
 #include "libguile/eval.h"
 #include "libguile/stime.h"
index c3d9769..31f874c 100644 (file)
@@ -44,6 +44,8 @@
 
 \f
 
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/ioext.h"
 #include "libguile/fports.h"
index 50ea3dc..8678635 100644 (file)
@@ -40,6 +40,7 @@
  * If you do not wish that, delete this exception notice.  */
 \f
 #include <stdio.h>
+#include <errno.h>
 #include <limits.h>
 #include <string.h>
 
index ba95996..a450c3c 100644 (file)
@@ -1,5 +1,5 @@
 /* "net_db.c" network database support
- * Copyright (C) 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
+ * Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -51,6 +51,8 @@
  */
 \f
 
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/feature.h"
 #include "libguile/strings.h"
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-#if !defined (HAVE_H_ERRNO)
-extern int h_errno;
-#endif
-
 \f
 
 #ifndef STDC_HEADERS
index 313dea6..e8c739b 100644 (file)
@@ -46,6 +46,8 @@
 /* Headers.  */
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/eval.h"
 #include "libguile/objects.h"
index c8f969a..efc3f46 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -48,6 +48,8 @@
 #define _GNU_SOURCE
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/fports.h"
 #include "libguile/scmsigs.h"
index 0d822c5..0fdb248 100644 (file)
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -44,6 +44,8 @@
 
 \f
 
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/chars.h"
 #include "libguile/continuations.h"
index 1c18550..bc59233 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 2000, 2001 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -24,9 +24,6 @@
 
 #include <sys/types.h>
 #include <errno.h>
-#ifndef errno
-extern int errno;
-#endif
 
 /* Don't include stdlib.h for non-GNU C libraries because some of them
    contain conflicting prototypes for getopt.
index baa597e..ce52801 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -45,6 +45,8 @@
 \f
 
 #include <signal.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 
 #include "libguile/async.h"
index 5e56c03..0db21e9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2, or (at your option)
@@ -45,7 +45,9 @@
    gjb@cs.washington.edu, http://www.cs.washington.edu/homes/gjb */
 
 #include <stdio.h>
+#include <errno.h>
 #include <ctype.h>
+
 #include "libguile/_scm.h"
 #include "libguile/gh.h"
 #include "libguile/load.h"
index db0c04b..e847ce0 100644 (file)
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1995,1996,1997,1998, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1995,1996,1997,1998, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -44,6 +44,8 @@
 
 \f
 
+#include <errno.h>
+
 #include "libguile/_scm.h"
 
 #include "libguile/scmsigs.h"
index 87f7212..f7d00e9 100644 (file)
@@ -45,6 +45,8 @@
 \f
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 
 #include "libguile/objects.h"
index 0f90e64..7840964 100644 (file)
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1996,1997,1998, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1996,1997,1998, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -44,6 +44,8 @@
 
 \f
 
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/unif.h"
 #include "libguile/feature.h"
index 41cd36c..1b9aa2b 100644 (file)
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation
+/*     Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -47,6 +47,8 @@
 
 \f
 
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/smob.h"
 #include "libguile/alist.h"
index d797bf6..d723da8 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1997,1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1997,1998, 1999, 2000, 2001 Free Software Foundation, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -45,6 +45,8 @@
 \f
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/feature.h"
 #include "libguile/strings.h"
@@ -128,8 +130,6 @@ timet mytime()
 # endif
 #endif
 
-extern int errno;
-
 #ifdef HAVE_FTIME
 struct timeb scm_your_base = {0};
 #else
index 01665dd..3ff1726 100644 (file)
@@ -1,6 +1,6 @@
 /* classes: src_files */
 
-/*     Copyright (C) 1994, 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1994, 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -23,6 +23,8 @@ Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 
 \f
 
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/chars.h"
 #include "libguile/strings.h"
index 7e4e1a8..f452360 100644 (file)
@@ -52,7 +52,9 @@
 \f
 
 #include <stdio.h>
+#include <errno.h>
 #include <string.h>
+
 #include "libguile/_scm.h"
 #include "libguile/chars.h"
 #include "libguile/eval.h"
index cdb4359..962759b 100644 (file)
@@ -1,4 +1,4 @@
-/*     Copyright (C) 1995,1996,1998,1999, 2000 Free Software Foundation, Inc.
+/*     Copyright (C) 1995,1996,1998,1999, 2000, 2001 Free Software Foundation, Inc.
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -45,6 +45,8 @@
 \f
 
 #include <stdio.h>
+#include <errno.h>
+
 #include "libguile/_scm.h"
 #include "libguile/eval.h"
 #include "libguile/chars.h"