OpenBSD CVS

CVS log for src/usr.bin/cu/command.c


[BACK] Up to [local] / src / usr.bin / cu

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.18 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:00 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Mar 22 07:03:23 2019 UTC (5 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.16: +18 -12 lines
Diff to previous 1.16 (colored)

Add -E to change the escape character, from Artturi Alm.

no objections from deraadt, ok millert

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 10 01:03:46 2017 UTC (6 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.15: +7 -1 lines
Diff to previous 1.15 (colored)

-r restricted mode blocks certain operations as ~ operations.
from Jan Klemkow
ok nicm

Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 5 23:15:31 2015 UTC (8 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored)

Set the line file descriptor nonblocking and make it blocking again for
xmodem and child processes, makes xmodem work with -d. Reported by Kim
Zeitler via guenther@, tested by Jiri B. ok (and a small change) guenther

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 5 17:53:56 2015 UTC (8 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Style nits on a couple of casts.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Nov 12 13:54:51 2013 UTC (10 years, 6 months ago) by deraadt
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.12: +3 -1 lines
Diff to previous 1.12 (colored)

simpler prototype repairs

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jul 15 06:55:28 2012 UTC (11 years, 10 months ago) by nicm
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.11: +7 -1 lines
Diff to previous 1.11 (colored)

Add a command (~D) to drop the DTR line for a second (similar to using
~# for a BREAK). This is useful as it makes some microcontroller boards
reset. From Visa Hankala.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 11 16:45:12 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

Make ~~ send a ~, pointed out by naddy.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 10 12:47:23 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.9: +24 -1 lines
Diff to previous 1.9 (colored)

Add ~R command to start recording output to a file.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jul 10 12:20:23 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

Use function to restore termios and add ~X to help.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 10 11:42:02 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.7: +20 -1 lines
Diff to previous 1.7 (colored)

Add builtin XMODEM send support with ~X, only tested with lrz -X so far.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jul 10 10:56:12 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

+limits.h.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 10 10:28:05 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.5: +7 -7 lines
Diff to previous 1.5 (colored)

Once we've set up termios, lines need to be \r\n terminated, and we need
to reset termios before exiting. So add custom versions of err(),
errx(), warn(), warnx() to handle this.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 10 09:32:40 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

closefrom(STDERR_FILENO + 1) not STDOUT_FILENO so that output actually appears ;-).

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 10 09:10:04 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.3: +54 -1 lines
Diff to previous 1.3 (colored)

Implement ~C.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jul 10 08:42:43 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.2: +10 -1 lines
Diff to previous 1.2 (colored)

Restore termios and signal handlers before ~$ so ^C will kill child.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jul 10 08:16:27 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.1: +27 -3 lines
Diff to previous 1.1 (colored)

Add a ~S escape to change the speed interactively (not using ~s since
may want to use it for variables later).

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 10 08:02:27 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN

Add first cut of replacement for tip/cu. Not linked to the build.

Currently supports only -l and -s (no parity), no variables and ~., ~>,
~$, ~#, ~^Z, ~?. More to come.

Tested by naddy, otto. ok miod deraadt

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.