Commit Graph

21 Commits

Author SHA1 Message Date
wiz
077b67effa __STDC__ is always defined on NetBSD. 2002-05-26 14:03:19 +00:00
bjh21
43102f34cc When testing __STDC__, consistently use #ifdef rather than #if. The Sun
Workshop 5.0 C compiler defines __STDC__ to 0 unless it's in full-ANSI mode,
and in full ANSI mode it won't give us 64-bit integers (at least on a 32-bit
CPU).
2002-04-22 23:31:44 +00:00
tv
9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv
a6d1338ee0 Fix previous to actually include config.h. 2002-01-28 23:01:43 +00:00
tv
12b9020c07 Make compilable from src/tools/compat. 2002-01-28 22:39:07 +00:00
mycroft
af3e075076 Make some needed weak aliases. 1999-08-17 03:43:59 +00:00
thorpej
2d0f14c527 "Fix" the non-__indr_reference verions of the user-callable versions
of these functions.  This is somewhat of a kludge, but there is not
much else we can do for this case.

Because of how the callable versions are created, by CPP trickery
and inclusion of another .c file, we cannot allow the included .c
file to pull in "namespace.h", since it undoes the CPP trickery we
have performed.  Introduce a CPP macro that prevents the included .c
file from pulling in "namespace.h".
1997-07-17 21:33:14 +00:00
christos
ae5f0ca647 Fix RCSID's
Use namespace.h
1997-07-13 18:55:18 +00:00
jtc
ec081115f9 Split each function in err.c out into its own file. This is needed
for systems without weak or indirect references.
1996-04-15 23:44:53 +00:00
cgd
516f67f7c9 re-order things the way they'd like to be ordered 1995-02-25 17:19:26 +00:00
cgd
6e6a4e85b0 update to 4.4-Lite where appropriate, clean up Id format, etc. 1995-02-25 13:40:51 +00:00
pk
c0aee44a2f Correct number of underscores on internal function calls. 1994-12-17 16:16:00 +00:00
jtc
3c98cdcd84 Rework indirect reference support as outlined by my recent message to
the tech-userlevel mailing list.
1994-12-12 22:41:50 +00:00
christos
9cc12a55d4 - Changed all internal libc references of {v,}err{x,} and {v,}warn{x,} to
__{v,}err{x,} and __{v,}warn{x,}
- moved err.c to __err.c and added err.c which contains weak references for
  the above functions.
- Reordered the functions in __err.c to avoid redeclarations and changed
  the varargs declarations to conform with the K&R style.
1994-12-11 20:43:48 +00:00
cgd
f95d2e2869 update to latest version; va_list specification changes. 1993-11-06 00:55:23 +00:00
jtc
344059bc2d Remove extra "eval" variables in warn() & warnx() function definitions;
these variables were probably introduced by copying the definitions of
err() & errx() when the functions were first implemented.
1993-11-06 00:27:23 +00:00
jtc
e4da5d66a6 Use __dead instead of volatile. 1993-10-13 18:42:31 +00:00
jtc
9c20f740a3 Declare rcsid strings so they are stored in text segment. 1993-08-26 00:43:03 +00:00
mycroft
f23f94cb77 Add even more RCS frobs. 1993-07-30 08:21:41 +00:00
mycroft
eca88e272d Cleanup for GCC 2...
s/__dead/volatile/  (Does the format really exist in GCC 1?)
s/va_list/_VA_LIST_/  (to match prototypes)
1993-05-01 15:17:00 +00:00
glass
5fabe9c0b1 new err stuff 1993-04-30 23:08:23 +00:00