+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
#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
-/* 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
\f
#include <stdio.h>
+#include <errno.h>
#include "libguile/_scm.h"
#include "libguile/pairs.h"
*/
-extern int errno;
-
/* All errors should pass through here. */
void
scm_error (SCM key, const char *subr, const char *message, SCM args, SCM rest)
-/* 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
\f
#include <stdio.h>
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/smob.h"
#include "libguile/feature.h"
-/* 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
\f
#include <stdio.h>
+#include <errno.h>
#include <string.h>
+
#include "libguile/_scm.h"
#include "libguile/eval.h"
#include "libguile/stime.h"
\f
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/ioext.h"
#include "libguile/fports.h"
* If you do not wish that, delete this exception notice. */
\f
#include <stdio.h>
+#include <errno.h>
#include <limits.h>
#include <string.h>
/* "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
*/
\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
/* Headers. */
#include <stdio.h>
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/eval.h"
#include "libguile/objects.h"
-/* 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
#define _GNU_SOURCE
#include <stdio.h>
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/fports.h"
#include "libguile/scmsigs.h"
-/* 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
\f
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/chars.h"
#include "libguile/continuations.h"
-/* 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
#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.
-/* 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
\f
#include <signal.h>
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/async.h"
-/* 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)
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"
-/* 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
\f
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/scmsigs.h"
\f
#include <stdio.h>
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/objects.h"
-/* 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
\f
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/unif.h"
#include "libguile/feature.h"
-/* 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
\f
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/smob.h"
#include "libguile/alist.h"
-/* 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
\f
#include <stdio.h>
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/feature.h"
#include "libguile/strings.h"
# endif
#endif
-extern int errno;
-
#ifdef HAVE_FTIME
struct timeb scm_your_base = {0};
#else
/* 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
\f
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/chars.h"
#include "libguile/strings.h"
\f
#include <stdio.h>
+#include <errno.h>
#include <string.h>
+
#include "libguile/_scm.h"
#include "libguile/chars.h"
#include "libguile/eval.h"
-/* 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
\f
#include <stdio.h>
+#include <errno.h>
+
#include "libguile/_scm.h"
#include "libguile/eval.h"
#include "libguile/chars.h"