Commit Graph

136 Commits

Author SHA1 Message Date
christos 1f74082c09 Coverity CID 1972: Don't leak file descriptor. 2006-04-30 23:52:14 +00:00
christos 781d14720c Coverity CID 1599: Fix memory leak. 2006-04-30 23:49:34 +00:00
christos fc56e77334 Coverity CID 1483: Off-by-one stack overflow. 2006-04-30 23:43:31 +00:00
christos 9ff5bf4b8a Coverity CID 788: Fix null pointer deref. 2006-04-30 23:42:06 +00:00
christos 4f6d3973bf Coverity CID 787: Fix null pointer deref. 2006-04-30 23:40:20 +00:00
christos 0b78752ab3 Coverity CID 749: Comment out dead code. 2006-04-30 23:38:34 +00:00
christos 2d84e02e2f Coverity CID 552: Close opened file. 2006-04-22 18:02:26 +00:00
gdamore 6af224c1b4 Support cross-building tn3270 from other OS' e.g. Solaris by hiding
_RCS and _COPYRIGHT macros in #ifndef HOST_TOOL, and defining HOST_CPPFLAGS
apropriately for host tools.  Approved by uwe@.
2006-03-20 01:34:49 +00:00
chs 7bdb7511a0 fix build problems with parallel make: always descend into the tools dir
and add some .WAITs to avoid deciding to build a tool again before
the previous instance finishes.
2005-09-17 16:52:02 +00:00
simonb 3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
peter 5dc9788b36 Fix a typo, dependancy -> dependency
ok wiz@
2004-11-19 14:18:53 +00:00
wiz 4bbfee09ca Various typo fixes from Jonathon Gray via jmc@openbsd. 2003-11-17 11:16:10 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem c545cc169d support MAKEVERBOSE 2003-10-19 04:30:30 +00:00
wiz 37ac1db454 available, not avaliable. From miod@openbsd. 2003-09-29 09:50:21 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
itojun 7b631c16fa scanf overrun 2003-05-17 14:58:53 +00:00
wiz 1f2f4a71fc It is spelled ARPANET. Igor Sobrado, PR 19691. 2003-04-06 19:39:46 +00:00
wiz f6bcf4feae DEFINITIONS, not DEFINITONS. By Adrian Mrva. 2002-10-02 11:17:41 +00:00
lha a8882e9d5c add missing /usr.bin/ to the include path, fixes last commit 2002-09-18 20:55:24 +00:00
mycroft 3ead3ad29b select() -> poll() 2002-09-18 19:54:25 +00:00
lukem 5d4973fe97 makefile delint. use NETBSDSRCDIR as appropriate 2002-09-18 14:00:33 +00:00
thorpej 55153619f4 Make the tn3270 host tools build on non-BSD systems. Slightly
kludgy, but saves a major overhaul.
2002-09-15 01:27:44 +00:00
wiz db575159df Remove #if !__STDC__ code. While here, de-__P(). 2002-06-13 23:41:15 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
tv 76834aef57 Protect __RCSID and __COPYRIGHT from being invoked if not defined. 2002-01-31 19:36:47 +00:00
sjg 5158e17b85 Make telnet escape work in tn3270
PR: 1816
2002-01-06 01:02:47 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
wiz 0346d7eca3 Sort SEE ALSO. 2001-12-08 19:18:39 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
wiz 1e378c4c12 precede, not preceed. 2001-08-20 12:00:46 +00:00
wiz 0c27bead4e Replace Xr by Ic in one place. 2001-04-05 11:46:29 +00:00
sommerfeld 64cf1af58d Let src/usr.bin build with recursive parallel make..
- add .WAIT and .NOTPARALLEL in a few places
 - change ${MAKE} print-objdir to ${PRINTOBJDIR}
 - convert other ad-hoc forms to use ${PRINTOBJDIR}
2000-12-30 14:54:39 +00:00
jdc 88bb8fc858 Don't use curses' VB - it should be internal to libcurses.
Use tgetstr() instead.
2000-12-17 14:28:45 +00:00
lukem 279552d3db fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
  e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
  using `.Nm ""' if there's stuff following, or for the 2nd and so on
  occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
ad b23b64b8ce Use fmt string with printf, from OpenBSD. 2000-07-06 14:30:08 +00:00
thorpej d041b74cf4 Sprinkle in a little const. 2000-06-11 03:38:29 +00:00
mycroft 1c44e76f57 Initialize this->hits. 2000-06-11 03:36:40 +00:00
mycroft 2d75f971b4 Eliminate a bunch of terminal hackage that we do not need. 2000-04-27 16:48:42 +00:00
mycroft f5d7100e26 Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
soren 30d18a154c Remove extraneous colons and newlines from perror(3) arguments. 1999-09-30 12:35:52 +00:00
mrg ec70388809 add a comment 1999-08-24 09:16:36 +00:00
itohy 2b46b2b820 Eliminate illegal cast from function pointer (sig_t) to object pointer (void *). 1999-07-26 01:49:09 +00:00
wrstuden f61cc70c2c Make these files use bsd.hostprog.mk so you can cross-compile tn3270! 1999-07-14 21:36:36 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
ross 7f8e818918 Missing .El. 1999-03-09 03:19:28 +00:00
itohy bd5b7e1a5d Add minimal dependency to make "make depend" optional
after cleandir even on parallel make.
1999-03-06 16:21:58 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
christos b62bb45812 - prototype tgetstr()
- add decls for *SE, *SO, *SV for svr4
- initscr() should not be compared with ERR, but NULL, since it returns
  a window pointer.
1998-11-06 22:14:58 +00:00