History log of /freebsd-current/usr.bin/tip/tip/tip.h
Revision Date Author Comments
# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# 2a63c3be 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c comment pattern

Remove /^/[*/]\s*\$FreeBSD\$.*\n/


# 5bdf58e1 28-Aug-2021 Gordon Bergling <gbe@FreeBSD.org>

Fix some common typos in source code comments

- s/priviledged/privileged/
- s/funtion/function/
- s/doens't/doesn't/
- s/sychronization/synchronization/

MFC after: 3 days


# 6d2648bc 08-Jun-2021 Jessica Clarke <jrtc27@FreeBSD.org>

tip: Fix pointer-vs-integer confusion

Currently IREMOTE assumes that every value is (initially) a pointer to a
long. This is true for NUMBERs, but false for STRINGs, which are instead
pointers to pointers, though on ILP32 and LP64 systems these happen to
have the same representation, but this is still a strict aliasing
violation, and of course breaks on systems where the representations are
not the same, such as CHERI. We do not currently have any BOOLs (short,
curiously) or CHARs used with IREMOTE, though the code should not be
relying on that.

This removes the unused setaddress macro, and the now-unused address
macro due to the above issue.

Reviewed by: imp, kib
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D30697


# de295884 08-Jun-2021 Jessica Clarke <jrtc27@FreeBSD.org>

tip: Cast via intptr_t not long when casting between pointer and int

Whilst all FreeBSD architectures have the same representation for
intptr_t and long (even if the former is int on ILP32 architectures),
this is more general and correct, and on CHERI they are not the same so
warnings are generated by default for integer-to-pointer casts that
aren't via (u)intptr_t.

Reviewed by: imp, kib
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D30696


# a86ddfe8 06-Apr-2020 Kyle Evans <kevans@FreeBSD.org>

mail/gprof/tip: tap with the ugly stick

The ugly stick here is this bit in the respective headers:

#ifndef EXTERN
#define EXTERN extern
#endif

with a follow-up #define EXTERN in a single .c file to push all of their
definitions into one spot. A pass should be made over these three later to
push these definitions into the correct files instead, but this will suffice
for now and at a more leisurely pace.

MFC after: 3 days


# 8a16b7a1 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

General further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# 487ac9ac 30-Dec-2011 Ulrich Spörlein <uqs@FreeBSD.org>

Spelling fixes for usr.bin/


# 974206cf 23-Feb-2011 Rebecca Cran <brucec@FreeBSD.org>

Fix typos - remove duplicate "is".

PR: docs/154934
Submitted by: Eitan Adler <lists at eitanadler.com>
MFC after: 3 days


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# a0ad4c4d 02-May-2008 Bruce M Simpson <bms@FreeBSD.org>

Relinquish exclusive TTY access when tip(1) or cu(1) exit.
Previously they would have left TIOCEXCL enabled, requiring
either a reboot or use of tip/cu as the root user.

Observed when running QEMU with character devices redirected to pty instances.

MFC after: 2 weeks


# fa92e883 31-Aug-2006 Ruslan Ermilov <ru@FreeBSD.org>

Resolve merge conflicts.


# d391708c 31-Aug-2006 Ruslan Ermilov <ru@FreeBSD.org>

Import OpenBSD's tip(1) as of today


# a2c1b13f 06-May-2004 Stefan Farfeleder <stefanf@FreeBSD.org>

Use a proper protoype to declare interp() and move it to tip.h. Fix an
invocation with a wrong number of arguments.

Approved by: das (mentor)


# 229c0017 06-Apr-2003 Warner Losh <imp@FreeBSD.org>

make prototpyes match functions, and declare things static as needed


# 3f330d7d 21-Mar-2002 Warner Losh <imp@FreeBSD.org>

remove __P


# 0f3bdf5d 20-Dec-2001 Mark Murray <markm@FreeBSD.org>

Import of OpenBSD's tip (which was the tip code of a month ago, modulo
OpenBSD commits).


# 0e7f0658 14-Apr-2000 Warner Losh <imp@FreeBSD.org>

#include <errno.h> where needed. Kill extern int errno;.

Minor warnings in tip corrected.


# 64edd876 04-Apr-1999 Dmitrij Tejblum <dt@FreeBSD.org>

Rename a function to avoid conflict with the new syscall 'pwrite'.


# daca8650 24-Aug-1997 Warner Losh <imp@FreeBSD.org>

Change from using sys/param.h and MAXPATHLEN to using limits.h and PATH_MAX
to avoid the NOFILE problem. Back out NOFILE kludge. Fix unexploitable
buffer overflow in tipout.c.
Reviewed by: millert@openbsd.org (tipout.c)
Submitted by: millert@openbsd.org (rest of idea)


# 29ae2e93 22-Aug-1997 Warner Losh <imp@FreeBSD.org>

Fix buffer overflow. prompt didn't get a size for its buffer,
so it could overflow it. Also made some filenames MAXPATHLEN long rather
than 80 long.


# 804d2dab 18-Aug-1997 Philippe Charnier <charnier@FreeBSD.org>

Add prototypes, usage(). Use err(3).


# 18cc36fb 31-Mar-1995 Jordan K. Hubbard <jkh@FreeBSD.org>

Tom Gray's new tip changes to support a modem capabilities database and
fixes to many assorted bugs and misfeatures.
Submitted by: Tom Gray - DCA <dcasba@rain.org>