Commit Graph

341 Commits

Author SHA1 Message Date
tg 37d3bd813d no persistent history (flock missing), no arc4random, etc. for Solaris 2005-05-23 15:36:56 +00:00
tg dc5614a091 missing preprocessor defines on Solaris 2005-05-23 15:24:43 +00:00
tg c0d3fd1ef7 -Wformat catched on solaris 2005-05-23 15:23:12 +00:00
tg b8a06e0fbe * Solaris misses sig_t
* our gmatch becomes gmatchx, it's extended against sh(C)
2005-05-23 15:18:17 +00:00
tg ca0fb8f0da now passes on GNU/Linux with __CRAZY=1 -std=gnu99 (broken system headers ;) 2005-05-23 15:09:22 +00:00
tg 3ff2d99654 we don't support OS/2 anyway (a pity) 2005-05-23 15:03:04 +00:00
tg f6a30adbee * adapt the three history-ed tests to a modern ed(1) which prints the
number of characters to stderr not stdout
* fix the history-ed-3 test to check for COMPLEX HISTORY option instead
2005-05-23 15:02:04 +00:00
tg 5b1a2fe3a9 fix running of all tests 2005-05-23 14:48:21 +00:00
tg 820f4b1de1 always use rand(3) on platforms without arc4random(3) and seed it 2005-05-23 14:22:03 +00:00
tg 8266c126ac * add definition of __RCSID if not yet existant (GNU/Linux)
* add declarations of strlcpy and strlcat (for GNU/Linux, again)
* always include <sys/resource.h>
* some more compile / warning fixes
2005-05-23 14:19:14 +00:00
tg f7402a2cc8 prevent Mac OSX from executing the test which crashes its perl
(still valid for Tiger)

with that, mksh R21 works on it (no build script yet, sorry)
2005-05-23 14:07:40 +00:00
tg c72ac29991 let i=0xAFFE works in ksh88 (/bin/ksh on Solaris), octals are special to us 2005-05-23 13:44:13 +00:00
tg 13afe3c10c some spacing; move array into function 2005-05-23 12:06:39 +00:00
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