[go: up one dir, main page]

OpenBSD CVS

CVS log for src/bin/ksh/Attic/proto.h


[BACK] Up to [local] / src / bin / ksh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.39, Fri Oct 23 01:14:07 2015 UTC (9 years, 9 months ago) by mmcc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.38: +1 -1 lines
FILE REMOVED

proto.h contains many function prototypes. It's apparently separate from
sh.h because the pdksh devs used a prototype generator (last run in
1992). Merging it into sh.h makes things clearer.

ok nicm@

Revision 1.38 / (download) - annotate - [select for diffs], Sat Oct 10 07:35:16 2015 UTC (9 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.37: +1 -17 lines
Diff to previous 1.37 (colored)

Move more declarations out of proto.h into better headers, from Michael
McConville. No binary change.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Oct 6 21:19:06 2015 UTC (9 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.36: +1 -9 lines
Diff to previous 1.36 (colored)

Move tree.c protos into tree.h, from Michael McConville, ok millert

Revision 1.36 / (download) - annotate - [select for diffs], Mon Sep 14 16:08:50 2015 UTC (9 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Replace Tflag typedef with just int; ok tedu

Revision 1.35 / (download) - annotate - [select for diffs], Wed Sep 4 15:49:19 2013 UTC (11 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)

Add a proper suspend builtin that saves/restores the tty and pgrp
as needed instead of an alias that just sends SIGSTOP.  Login shells
may be suspended if they are not running in an orphan process group.
OK guenther@ jmc@

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jun 27 07:17:19 2012 UTC (13 years, 1 month ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

fptreef() always returns 0 and we never use the return value anyway,
so make it void; from Michael W. Bombardieri.

Revision 1.33 / (download) - annotate - [select for diffs], Wed May 19 17:36:08 2010 UTC (15 years, 2 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

properly keep track of the line number after a trap.
this fixes pr 6195. diff from manuel giraud, thanks.

ok kili@

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jan 29 23:27:26 2009 UTC (16 years, 5 months ago) by jaredy
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

pass "xerrok" status across the execution call stack to more closely
match what both POSIX and ksh.1 already describe in regards to set
-e/errexit's behavior in determining when to exit from nonzero return
values.

specifically, the truth values tested as operands to `&&' and `||', as
well as the resulting compound expression itself, along with the truth
value resulting from a negated command (i.e. a pipeline prefixed `!'),
should not make the shell exit when -e is in effect.

issue reported by matthieu.
testing matthieu, naddy.
ok miod (earlier version), otto.
man page ok jmc.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Jan 17 22:06:44 2009 UTC (16 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Use libc qsort instead of private version.  Tested by several people.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Mar 17 16:30:13 2006 UTC (19 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Simplify savefd() by removing the "noclose" flag and make noclose
behavior the default.  Almost all uses of savefd() are followed
by an implicit or explicit close.  OK otto@

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 11 20:31:21 2005 UTC (19 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.28: +8 -8 lines
Diff to previous 1.28 (colored)

fix a few name clashes with libc; found by lint. ok deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Sun Dec 11 18:53:51 2005 UTC (19 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.27: +1 -3 lines
Diff to previous 1.27 (colored)

remove unused variables and functions

Revision 1.27 / (download) - annotate - [select for diffs], Thu Oct 6 06:39:36 2005 UTC (19 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.26: +4 -1 lines
Diff to previous 1.26 (colored)

Introducing mknod as a built-in. It might be against the unix
philosophy, but in this case it's worth it. ok deraadt@

Revision 1.26 / (download) - annotate - [select for diffs], Mon Mar 28 21:28:22 2005 UTC (20 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.25: +112 -112 lines
Diff to previous 1.25 (colored)

spacing

Revision 1.25 / (download) - annotate - [select for diffs], Wed Feb 2 07:53:01 2005 UTC (20 years, 5 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

Introduce POSIX hex and octal (0x... and 0...) constants in arithmetic
expressions.  Work by Matthias Kilian, based on an old diff by myself.
Note: MAKEDEV should be updated. Tested by many, thanks.

ok millert@ deraadt@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Dec 22 19:02:13 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

quitenv() proto should have the variable type only, not the name.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Dec 22 18:57:28 2004 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Fix a use-after-free, that causs core dumps if a shell is killed
running with strict malloc.conf options. Problem spotted by hshoexer@;
fix by me with some help from millert@.

ok millert@ hshoexer@ krw@ deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Wed Dec 22 17:18:51 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

g/c str_zcpy()

Revision 1.21 / (download) - annotate - [select for diffs], Wed Dec 22 17:14:34 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Use stdbool.h instead of rolling our own bools.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Dec 20 11:34:26 2004 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.19: +184 -187 lines
Diff to previous 1.19 (colored)

Ansification plus some minor knf. No binary change on i386 and
sparc64, binary change in lex.o on macppc due to introduction of
dopprompt() prototype. ok millert@

Revision 1.19 / (download) - annotate - [select for diffs], Sat Dec 18 22:42:26 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.18: +11 -11 lines
Diff to previous 1.18 (colored)

remove GCC_FUNC_ATTR/GCC_FUNC_ATTR2 and just use __attribute__ directly
(we define it away in sys/cdefs.h if it is not supported).

Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 18 22:35:41 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

Replace fd_clexec() with calls to fcntl(fd, F_SETFD, FD_CLOEXEC)

Revision 1.17 / (download) - annotate - [select for diffs], Sat Dec 18 21:58:39 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Use the BSD sig_t instead of homegrown handler_t
Remove KSH_SA_FLAGS

Revision 1.16 / (download) - annotate - [select for diffs], Sat Dec 18 21:25:44 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

deregister

Revision 1.15 / (download) - annotate - [select for diffs], Sat Dec 18 21:04:52 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.14: +1 -7 lines
Diff to previous 1.14 (colored)

Get rid of #ifdef KSH since we don't care about building a V7 style sh and
the #ifdef KSH code is required to make a POSIX sh.  From Matthias Kilian

Revision 1.14 / (download) - annotate - [select for diffs], Sat Dec 18 20:55:52 2004 UTC (20 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.13: +233 -263 lines
Diff to previous 1.13 (colored)

Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.
First step in making the ksh code easier to read.  From Matthias Kilian

Revision 1.13 / (download) - annotate - [select for diffs], Sun Dec 12 06:53:13 2004 UTC (20 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +4 -1 lines
Diff to previous 1.12 (colored)

csh-style ! history completion, which can be activated by using
	set -o csh-history (off by default)
this is not feature complete, and likely never will be.  no ^
and ! has some oddities ... ksh's internal history stuff has got
some very odd behaviours that are rather nasty
ok various developers

Revision 1.12 / (download) - annotate - [select for diffs], Thu Nov 4 19:20:07 2004 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

do the variety-pack of bash-style \letter expansions on prompt variables.
a few issues remain with \ and $ and ! because of early variable expansion
done by incorrect eval/substitution, but this change is not responsible
for that.  tested by djm, jmc, and many others

Revision 1.11 / (download) - annotate - [select for diffs], Fri May 16 19:58:57 2003 UTC (22 years, 2 months ago) by jsyn
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored)

fix several constant overflows, remove the strerror prototype (shouldn't be
there), and cleanup some whitespace; help from, and okay millert@

Revision 1.10 / (download) - annotate - [select for diffs], Wed Apr 16 23:11:52 2003 UTC (22 years, 3 months ago) by tdeval
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

string cleaning.  ok tedu@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 19 09:49:54 2001 UTC (24 years, 5 months ago) by camield
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

bash-like 'double-tab' completion

- bind TAB (^I) to complete-list by default
- complete-list now lists 'ls style' not 'menu style'
- complete-list first completes; if that does not work, it lists
- fix a memleak in emacs.c, do_complete
- completion now works after '=' (dd), and ':' (ssh) and ` (backtick)
- a command can now start with a subdir from the current dir

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jul 14 13:37:24 1999 UTC (26 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

pdksh-5.2.14

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 15 01:18:35 1999 UTC (26 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored)

patches from pdksh 5.2.13.11

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jan 8 20:25:01 1999 UTC (26 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.5: +9 -2 lines
Diff to previous 1.5 (colored)

bug fixes from pdksh-unstable-5.2.13.5; some of which we already had.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Oct 29 04:09:21 1998 UTC (26 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions of
some that we had already fixed locally.
 o typeset -f FUNC doesn't print follows command (and expression) substitutions.
 o when re-allocating memory, too much may be copied from old memory.
 o set -o printed some options sans names.
 o emacs mode: <esc>. in very fist command causes core dump.
 o pdksh dumps core after a cd command.
 o typeset -i reports on array elements that have no value
   (at&t ksh reports on array base name - no index).
 o ulimit -ctn unlimittttted kills shell (resource exceeded).
 o ". /dev/null" says access denied.
 o flag field in aliases incorrectly changed (all flags set instead of
   clearing ISSET) in exec.c(flushcom).
 o ${#array[*]} prints largest index instead of number of (set) elements
   in an array (ksh88 does the former).
 o sys_siglist[] doesn't always have NSIG non-null entries...

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 25 19:02:15 1998 UTC (27 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

pdksh-5.2.13 + local changes

Revision 1.3 / (download) - annotate - [select for diffs], Thu Nov 21 07:59:34 1996 UTC (28 years, 8 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Update to 5.2.12.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 19 20:08:57 1996 UTC (28 years, 11 months ago) by downsj
Branch: MAIN
Changes since 1.1: +11 -6 lines
Diff to previous 1.1 (colored)

update to pdksh-5.2.8

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Aug 14 06:19:11 1996 UTC (28 years, 11 months ago) by downsj
Branch: pdksh
CVS Tags: pdksh-527
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import pdksh 5.2.7.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Aug 14 06:19:11 1996 UTC (28 years, 11 months ago) by downsj
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.