OpenBSD CVS

CVS log for src/usr.bin/telnet/sys_bsd.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Wed Feb 8 08:22:44 2023 UTC (15 months, 1 week ago) by tb
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, HEAD
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

telnet: fix prototypes for two signal handlers to make clang 15 happy

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:04 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.34: +7 -7 lines
Diff to previous 1.34 (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.34 / (download) - annotate - [select for diffs], Wed Jul 19 12:25:52 2017 UTC (6 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.33: +3 -99 lines
Diff to previous 1.33 (colored)

A few cleanups.  This only needs to operate on systems with SIGWINCH,
SIGINFO, and Bxxxx values that equal xxxx.
ok tom millert

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jul 7 09:14:26 2017 UTC (6 years, 10 months ago) by fcambus
Branch: MAIN
Changes since 1.32: +1 -55 lines
Diff to previous 1.32 (colored)

Remove unnecessary #ifdefs in telnet. No binary change.

OK deraadt@, tedu@

Revision 1.32 / (download) - annotate - [select for diffs], Wed Mar 16 15:41:11 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

More "(<blah> *)0" -> NULL, avoiding any stdarg functions.

Feedback millert@ kettenis@

Revision 1.31 / (download) - annotate - [select for diffs], Sun Nov 29 14:18:40 2015 UTC (8 years, 5 months ago) by semarie
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.30: +4 -3 lines
Diff to previous 1.30 (colored)

telnet: check if fd is a tty before calling tcsetattr(fd, TCSADRAIN)

ok deraadt@

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 29 13:42:53 2015 UTC (9 years, 1 month ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

Revert r1.29 "Don't clear ICRNL when editing mode is off, so that character
local echo mode don't echo ^M locally" as this causes problems sending CR to
some Cisco equipment reported by Ryan Freeman and Fred Crowson.

kettenis@ agrees with reverting to fix the regression; we can consider a
better diff afterwards but clearly this is a sensitive area.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Feb 12 09:50:50 2015 UTC (9 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)

Don't clear ICRNL when editing mode is off, so that character local echo
mode don't echo ^M locally

analysis and patch from Stanislav Brabec (sbrabec (at) suse.cz)

Revision 1.28 / (download) - annotate - [select for diffs], Tue Sep 9 03:41:08 2014 UTC (9 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)

Eliminate a pile of casts that were superfluous or wrong, or that were
the result of bad type choices, particularly (unsigned char *) vs
(const char *).  Also, use reallocarray().

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jul 22 07:30:24 2014 UTC (9 years, 9 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.26: +34 -46 lines
Diff to previous 1.26 (colored)

use ansi style function declarations
with suggestions from and ok guenther@

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jul 20 12:08:55 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.25: +3 -9 lines
Diff to previous 1.25 (colored)

Eliminate silly call() routine that fakes up internal calls as if
the user typed in undocumented arguments by splitting two functions
and doing normal (shock!) C calls.

Move extern declarations to externs.h
Eliminate another function cast

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jul 20 10:55:26 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.24: +7 -20 lines
Diff to previous 1.24 (colored)

Mark a slurry of functions as static
Eliminate two more trivial wrappers

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jul 20 10:18:10 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.23: +1 -7 lines
Diff to previous 1.23 (colored)

Kill lint comments; mark ExitString() as __dead

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jul 20 09:59:42 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Switch from memmove() to memcpy() where appropriate; simplify address
parsing logic; eliminate an inefficient use of MIN() macro

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 20 09:31:25 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.21: +2 -16 lines
Diff to previous 1.21 (colored)

VSUSP and SIGTSTP are required by POSIX

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jul 20 09:20:48 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.20: +2 -15 lines
Diff to previous 1.20 (colored)

Delete an insane chunk of code for handling broken poll() emulation.
Pass poll() INFTIM instead of -1

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jul 20 08:12:46 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.19: +5 -8 lines
Diff to previous 1.19 (colored)

More encryption tentacles: intr_happened and intr_waiting vanish
Push more includes into .c files
Make ring.c only need ring.h

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jul 20 07:35:04 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.18: +2 -51 lines
Diff to previous 1.18 (colored)

Eliminate trivial wrappers TerminalWrite() and TerminalRead()
Replace TerminalFlushOutput() with tcflush().
Replace TerminalAutoFlush() with check of tty's NOFLSH flag as
	documented in the manpage.
Push <netdb.h> into .c files

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jul 20 06:39:41 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored)

Correctly cast to unsigned char for ctype functions/macros
Push <ctype.h> and <unistd.h> into the .c files

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jul 20 05:22:02 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.16: +3 -4 lines
Diff to previous 1.16 (colored)

Simplify #includes, start pushing them into the .c files, eliminate
extern declarations from .c files that duplicate those in .h files,
start marking functions with __dead

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jul 19 23:50:38 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.15: +6 -329 lines
Diff to previous 1.15 (colored)

Flense the telnet code base of unwanted ifdefs: authentication/encryption
tn3270, sgtty, pre-POSIX and other ancient system support, etc.  Brings up
to date the manpage with what we support.

ok matthieu@ beck@ jmc@ millert@ deraadt@ okan@

Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 21 09:51:24 2013 UTC (11 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.14: +41 -67 lines
Diff to previous 1.14 (colored)

Convert select() to poll().  OK deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:18 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, 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, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, 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, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.13: +2 -6 lines
Diff to previous 1.13 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 12 06:07:16 2002 UTC (21 years, 11 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

a real pid_t cleanup.

espie@ ok for make/,
deraadt@ one extra eye,
millert@ ok

Revision 1.12 / (download) - annotate - [select for diffs], Mon Mar 25 10:52:32 2002 UTC (22 years, 2 months ago) by hin
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Todd Miller pointed this out to me:

    You really want to use 'volatile sig_atomic_t' not just sig_atomic_t
    for flags set in signal handlers.  Without the volatile gcc may
    stick the value in a register but update the on-stack copy in the
    signal handler.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Mar 22 13:49:28 2002 UTC (22 years, 2 months ago) by hin
Branch: MAIN
Changes since 1.10: +8 -1 lines
Diff to previous 1.10 (colored)

Telnet encryption warning messages, taken from kth-krb4-1.1.1.

(krb4-1.1.1 will be imported after release)

Noone bothered to look at this, but I've used this for a couple of weeks,
and i really want this to go in before release.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:16 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored)

kill more registers

millert@ ok

Revision 1.9 / (download) - annotate - [select for diffs], Tue Sep 4 23:35:59 2001 UTC (22 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.8: +7 -6 lines
Diff to previous 1.8 (colored)

Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 10 15:41:10 2000 UTC (23 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Use curses, not ocurses and thus setupterm() not tgetent().  This means
we no longer need to have a faked up telnet_setupterm().

Remove some unused variables and add missing err.h include in sys_bsd.c

Revision 1.7 / (download) - annotate - [select for diffs], Fri May 7 18:29:07 1999 UTC (25 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.6: +4 -3 lines
Diff to previous 1.6 (colored)

repair TIOCFLUSH use; alaric@MIT.EDU

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 28 11:13:51 1998 UTC (25 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.5: +57 -48 lines
Diff to previous 1.5 (colored)

handle oversize fd_set

Revision 1.5 / (download) - annotate - [select for diffs], Thu Mar 12 04:57:40 1998 UTC (26 years, 2 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.4: +32 -69 lines
Diff to previous 1.4 (colored)

encryption support from kth-krb 0.9.8 (kerberos only)
plus some tweaks for better binary/8-bit support.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 11 17:14:22 1996 UTC (27 years, 5 months ago) by robin
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

Add ``#include <unistd.h>'' for prototypes of:
close(2), write(2), read(2), select(2), sleep(3) and isatty(3).

Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 27 19:33:07 1996 UTC (28 years, 1 month ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +75 -15 lines
Diff to previous 1.2 (colored)

From NetBSD: merge of 960317

Revision 1.2 / (download) - annotate - [select for diffs], Fri Feb 23 15:13:01 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
Changes since 1.1: +2 -4 lines
Diff to previous 1.1 (colored)

From NetBSD:
I (tls) seem to have forgotten to commit the patch in PR1608 when I closed it.
Fix VLNEXT handling.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:14 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:14 1995 UTC (28 years, 7 months ago) by deraadt
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.