summaryrefslogtreecommitdiffstats
path: root/usr.bin/tset
Commit message (Collapse)AuthorAgeFilesLines
* More -Wmissing-variable-declarations fixes.ed2012-10-193-6/+8
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-033-4/+4
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-118-32/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Remove unnecessary termcap.h includes inherited from extern.h and otherdelphij2009-12-117-27/+16
| | | | | unneeded headers. While I'm there, make function definations ANSI prototypes.
* Reduce compiler warning: variable might be used uninitialized, by givingcharnier2005-05-291-0/+1
| | | | an initial value.
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Sort sections.ru2005-01-181-13/+13
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+1
|
* Add section number to .Xrcharnier2003-06-081-1/+1
|
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* ANSIify function definitions.dwmalone2002-09-041-10/+4
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Clean up malloc(3)'s argument. Remove casts which do nothing when we'rejmallett2002-05-171-1/+1
| | | | | | | using sizeof() anyway. Use slightly more consistent (per-file) error reporting for malloc(3) returning NULL. If "malloc failed" was being printed, don't use err(3). If a NULL format is being used, use err(3). In one case errx(3) was being used with strerror(3), so just use err(3).
* Use `The .Nm utility'charnier2002-04-201-4/+4
|
* remove __Pimp2002-03-225-17/+17
|
* WARNS=2 fixes, use __FBSDID().markm2001-12-117-62/+74
|
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+3
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Nuke unused variables.dd2001-06-241-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-191-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Changed variable killchar to killch and erasechar to erasech to avoiddg2000-11-113-13/+14
| | | | | | a name clash with the library functions of the same name (in libncurses). This problem was masked when building tset shared (the local symbols had precedence), but caused tset to core dump when it was built -static.
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-2/+1
|
* Take a shot at making this work under termcap/terminfo ncurses. Itpeter1999-08-304-25/+33
| | | | | cheats a bit by accessing the termcap string buffer. A better solution is needed.
* $Id$ -> $FreeBSD$peter1999-08-287-7/+7
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Clean up some ambiguous nested if/elses.billf1999-07-041-2/+3
|
* Add the 'reset' command to the NAME section.mpp1999-06-241-1/+2
| | | | Pointed-out-by: Jesus Monroy <jesus.monroy@usa.net> in freebsd-doc
* Many places in the code NULL is used in integer context, wherephk1997-09-181-2/+2
| | | | | | | | | plain 0 should be used. This happens to work because we #define NULL to 0, but is stylistically wrong and can cause problems for people trying to port bits of code to other environments. PR: 2752 Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
* Use err(3) insteadof local redefinition. Sync usage string with man page.charnier1997-08-188-76/+73
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Remove _set_ospeed, done in tgetent now.ache1995-08-051-1/+0
|
* Change outc to match prototypeache1995-08-041-2/+2
|
* Make tset works with non-fixed termios speeds too.ache1995-08-043-61/+8
| | | | Eliminate ospeed switch using new _set_ospeed function
* Fix false backspace reportingache1995-05-141-3/+1
|
* Fix erase determination code: don't look atache1995-03-271-4/+2
| | | | system defaults which is always the same
* Set given term name exactly, not first name from termcap entry.ache1994-11-071-13/+0
| | | | It helps for rlogin/telnet to another systems without our termcap
* Back out ospeed changeache1994-10-063-6/+2
|
* PC/ospeed code ifdefed out, our libtermcap use usleep nowache1994-10-063-2/+6
|
* Back out 'not choose first (two-letter) name' fix, all two-letter namesache1994-09-151-9/+4
| | | | already removed from 4.4 termcap
* Speed matching code never successful, because ospeed range is [0..17]ache1994-09-092-10/+46
| | | | | | but termios speed range is [0..115200]. Of cource ospeed initialized with wrong value too which cann affects terminals with padding, fixed. 57600,115200 added.
* Use second terminal name instead of obsoleted and duplicatedache1994-09-091-4/+9
| | | | first two-letter names (from 1.1.5.1)
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-279-0/+1729
OpenPOWER on IntegriCloud