Commit Graph

328 Commits

Author SHA1 Message Date
tg f158d4d0df support getting sys_siglist[], sys_signame[] and NSIG retrieval
for portable mksh on various operating systems
2005-05-23 12:01:09 +00:00
tg 7af5be731b * if __CRAZY, automatically add CDIAGFLAGS, and add them AFTER our
crazy warning options
* use it for mksh
2005-05-23 11:59:06 +00:00
tg cd7b8bd79b Add mirbsdksh R21, which was developed in a temporary external CVS repo-
sitory whose ChangeLog follows. mksh R21 is licenced under the MirOS li-
cence, shown in "sh.h", and a two-clause UCB-style licence by Marc Espie
as shown in "alloc.c".

This executable is a fair bit smaller and shorter than our /bin/ksh that
it is designed to eventually replace (as /bin/sh hardlink), with the old
/bin/ksh to completely vanish. It is still in beta testing though, and I
don't think it will compile on other operating systems.

mksh R21 is a completely new port, bringing together the OpenBSD-current
/bin/ksh, the MirOS-current /bin/ksh and the older mksh R20 (which still
was portable, ocvs-based).
2005-05-23 03:06:10 +00:00
tg d8d708aa45 * un-hook bin/ksh, usr.bin/xmlwf and lib/libexpat from the build
- expat as discussed with bsiegert@ today on the phone
  - ksh as announced earlier on the lists
* un-hook lib/libexpat from make includes
* remove /usr/include/{,open}ssl upgrade workaround from includes/Makefile
* nuke old bin/ksh
* nuke libexpat and xmlwf
2005-10-21 11:33:15 +00:00
tg b65ac4d1e3 * merge bin and lib completely
* convert some ancient RCSID styles etc. to more modern stuff
* fix use of CDIAGFLAGS+=, CFLAGS+= and COPTS+= to the correct
  variant (include bsd.own.mk _then_ COPTS+=) so they're added
  after any user-specified flags
  (this is probably lurking in more places than I can imagine)
* fix some indenting, comments, etc.
* make stuff compile (fix warnings/errors)
* add script to review _all_ shlib_version after an openbsd import
* remove two more obsolete /usr/lib/debug/ references
* bin/ps: comment out some SMP code
2005-10-21 11:02:33 +00:00
tg 386c302d84 switch /bin/sh to nb-ash (without command line editing) 2005-08-29 20:54:39 +00:00
tg 5441110013 /bin/sh, /bin/ksh, /bin/rksh are obsolete. document that. 2005-07-26 18:17:38 +00:00
tg 306181bc4e this is unportable etc., use mksh instead 2005-07-07 13:08:28 +00:00
tg e5fb02e7d2 fix endless rnd_put/rnd_get loop found on Interix 2005-05-21 16:36:53 +00:00
tg 806c97b273 arc4random_addrandom takes an unsigned char * as first argument 2005-04-19 12:12:11 +00:00
tg 6c328a1068 some tests
we're nearly as good as bash and better than pdksh,
netbsd ksh, solaris ksh88 and netbsd2 (a)sh

sure, netbsd3 (a)sh has 0 failures, but hey...
2005-03-31 23:29:21 +00:00
tg 34f975017d use "beforedepend" 2005-03-15 19:05:11 +00:00
tg 230e0aec14 CFLAGS vs COPTS vs CPPFLAGS cleanup 2005-03-15 18:58:32 +00:00
tg a90702a5a1 Initial revision 2005-03-06 15:42:55 +00:00
tg 4075a35b8e experimental getpgrp(2) support for mksh 2005-01-18 17:12:22 +00:00
tg 490aa9b78d oups. forgot to fix after sync. 2005-01-02 21:49:12 +00:00
tg 6625949936 solaris doesn't have sig_t 2004-12-31 19:54:16 +00:00
tg 99471ef173 regen 2004-12-31 19:37:18 +00:00
tg 130367d617 further cleanup 2004-12-31 19:37:03 +00:00
tg e8307f4a45 get rid of manually generated signal lists 2004-12-31 19:24:20 +00:00
tg c9f0e4483f kill a local include file 2004-12-31 19:15:39 +00:00
tg 6a1ab8c84f sync with ksh.1tbl 2004-12-31 19:01:53 +00:00
tg 56862d5911 sync with sh.1tbl and reality 2004-12-31 19:00:30 +00:00
tg f6e24ec417 Our times(3) just calls getrusage(2) and gettimeofday(2), converting seconds
to ticks.  Since ksh needs things in seconds it then converted them back.
Avoid the silliness and use the getrusage(2) and gettimeofday(2) directly.
With man page help from jmc@
From: Todd C. Miller <millert@cvs.openbsd.org>
2004-12-31 18:41:47 +00:00
tg 3cba14dc9d - document IFS behavior changes
- grammar, punctuation, xref, mdoc tweaks
- sort keywords
- indent example displays
- minimize against diffing between sh.1tbl
- document set -o sh
- tweak the displays of some editing and builtin commands
- rework some operator descriptions
From: Jared J. Yanovich <jaredy@cvs.openbsd.org>

These man pages are not derived from UCB and are actually public domain.
Verified with aaron@ who did the conversion from man -> mdoc.
From: Todd C. Miller <millert@cvs.openbsd.org>

- cleanup
- ", and" and ", or" lose the comma where superfluous
2004-12-31 18:22:54 +00:00
tg 1a183984c4 Replace fd_clexec() with calls to fcntl(fd, F_SETFD, FD_CLOEXEC)
From: Todd C. Miller <millert@cvs.openbsd.org>
2004-12-31 17:42:45 +00:00
tg 665202f561 Use struct termios instead of TTY_state typedef
Use tc[gs]etattr() instead of [gs]et_tty() abstraction
From: Todd C. Miller <millert@cvs.openbsd.org>
2004-12-31 17:39:12 +00:00
tg 2b6df533b9 Use the BSD sig_t instead of homegrown handler_t
Remove KSH_SA_FLAGS
From: Todd C. Miller <millert@cvs.openbsd.org>

sanitise signal handling a bit (will be revisited)
2004-12-31 17:29:28 +00:00
tg 0799af5fdb don't set KSH_VERSION if invoked as sh 2004-12-31 17:15:07 +00:00
tg 791337c8a3 Use _POSIX_VDISABLE directly instead of assigning it to a variable.
From: Todd C. Miller <millert@cvs.openbsd.org>
2004-12-31 17:11:11 +00:00
tg 8f06ee02a7 Use _PATH_BSHELL instead of hardcoding "/bin/sh"
From: Todd C. Miller <millert@cvs.openbsd.org>
2004-12-31 17:08:29 +00:00
tg 2eb170af4e oops 2004-12-28 22:47:04 +00:00
tg 829ae4376a regen 2004-12-28 22:44:55 +00:00
tg 5e53de69ad stdbool.h 2004-12-28 22:44:39 +00:00
tg e824f36ff0 catch up with diffs/fixed we already had
From: Otto Moerbeek <otto@cvs.openbsd.org>
2004-12-28 22:40:40 +00:00
tg 08d781a2fb Replace home rolled unsigned char type with u_char.
From: Jonathan Gray <jsg@cvs.openbsd.org>
2004-12-28 22:37:23 +00:00
tg 337bd6717f unused 2004-12-28 22:33:21 +00:00
tg 0114af375d Use stdbool.h instead of rolling our own bools.
From: Todd C. Miller <millert@cvs.openbsd.org>

XXX #ifndef HAVE_STDBOOL_H ?
2004-12-28 22:32:09 +00:00
tg cddaa62a46 Flags set in signal handlers should be volatile sig_atomic_t
From: Todd C. Miller <millert@cvs.openbsd.org>
2004-12-28 22:28:01 +00:00
tg 506319026b umask returns mode_t, not int
From: Todd C. Miller <millert@cvs.openbsd.org>
2004-12-28 22:22:49 +00:00
tg 6354a66090 always BRACE_EXPAND
no binary change
2004-12-18 19:27:21 +00:00
tg d5ff21ea1d (anything *)0 -> NULL 2004-12-18 19:22:30 +00:00
tg cbeac44097 * unifdef EDIT, VI, EMACS, HISTORY
* optimise away 0 ||
no binary changes
2004-12-18 19:17:10 +00:00
tg 245d3ed291 optimise away 2004-12-18 19:02:29 +00:00
tg 4c4a9323f8 unifdef: KSH
no binary change
2004-12-18 18:58:32 +00:00
tg 6d8b225141 make array_index_calc static and don't limit
array indices (well, to 2^31-1, but that's
for integer reasons only)
2004-12-18 18:39:10 +00:00
tg 60f7d03fb5 millert@ says (but we've already got it all in, only update comments)
Restore sp before calling snptreef() so the error message contains
the actual expression that caused the error.  OK otto@

while here, nice-ify a #define, and bump the mksh version number
to R20 which I somehow forgot... need sleep
2004-12-14 15:54:26 +00:00
tg ec77eafff5 regen 2004-12-13 19:53:37 +00:00
tg 3d0671eced sync 2004-12-13 19:47:25 +00:00
tg 51053f03f5 evaluate more on [ X"$foo" = X"bar" ]
use ksh features [[ $foo = bar ]] and print instead of echo
2004-12-13 19:36:27 +00:00