Commit Graph

4589 Commits

Author SHA1 Message Date
lukem
56a2dec5a5 * check the error return of sl_init() and sl_add()
* minor KNF
1999-11-28 04:00:04 +00:00
lukem
67fecdbace remove unnecessary exit() after err() 1999-11-28 03:47:24 +00:00
lukem
46a687b139 * sl_init(); if malloc() fails return NULL instead of calling err(1,...)
* sl_add(); if realloc() fails return -1 instead of calling err(1,...).
  otherwise, return 0.

NOTE: this change resulted in sl_add() changing from returning void to int.
this shouldn't be a problem because a) it returns 0 if ok (aka `void', b)
all invokers of sl_add() in the tree have been changed (mainly code i've
written).
1999-11-28 03:44:09 +00:00
lukem
9f731168f6 convert to TNFi copyright (requested by christos) 1999-11-27 06:19:32 +00:00
lukem
850279f2b9 missing , 1999-11-26 18:38:27 +00:00
msaitoh
4e87e41c66 check __sh3__ 1999-11-26 07:39:45 +00:00
wennmach
d775c4b047 Bump minor 1999-11-25 22:09:37 +00:00
wennmach
7b7d5b8b06 Added #defines for svis, strsvis, strsvisx 1999-11-25 16:54:15 +00:00
wennmach
6a041e3a5d Added description of svis, strsvis, strsvisx.
Fixed several minor errors concerning vis, strvis, strvisx, tyops.
1999-11-25 16:52:29 +00:00
wennmach
5f9f80b825 Added new functions
char *
     svis(char *dst, int c, int flag, int nextc, const char *extra);

     int
     strsvis(char *dst, const char *src, int flag, const char *extra);

     int
     strsvisx(char *dst, const char *src, size_t len, int flag,
             const char *extra);

These functions correspond to vis(), strvis(), and strvisx() but have an
additional argument extra, pointing to a NUL terminated list of characters.
These characters will be copied encoded or backslash-escaped into dst. These
functions are useful e. g.  to remove the special meaning of certain
characters to shells.

To implement the new functions, vis underwent a major rewrite. Most functions
now use a central macro, SVIS. Performance increase ~ factor 2.

Reviewed by Christos.
1999-11-25 16:50:06 +00:00
kleink
68f24b78f3 RCS Id police. 1999-11-24 12:43:15 +00:00
kleink
6891118e35 RCS Id police. 1999-11-24 12:20:14 +00:00
kleink
beac10a2a8 Move preprocessor symbols used for multiple inclusion protection and private
interface exposure into implementation namespace.
1999-11-24 12:17:11 +00:00
blymn
363014dffa Added the libmenu library. 1999-11-23 11:20:29 +00:00
blymn
b68c50bcbe A curses based menu library. 1999-11-23 11:12:34 +00:00
kristerw
1276709f38 Typos (from OpenBSD) 1999-11-19 23:29:45 +00:00
enami
82d7115cf2 Don't pass so many args to .Nd macro. It just overflows. 1999-11-19 01:12:39 +00:00
is
42f95dd899 In case of an error returned by sysctl, and errno=ENOMEM, restore the
old errno and return 0. This makes us complant with SUSV2 and our own
manual page. See PR pr7836 by Simon Burge.
1999-11-18 22:12:53 +00:00
wennmach
2d27a472c9 Add some casts to u_char to get vis working again for characters > 0177
in VIS_OCTAL mode. Also, change the mask for the most significant tribble
to 03.

Reviewed by christos.

Fixes PR 8802.
1999-11-17 15:52:13 +00:00
augustss
41a71bdc48 Implement SOUND_MIXER_INFO. 1999-11-16 23:56:41 +00:00
kleink
e092d92063 Merge tzcode1999i. 1999-11-16 22:41:02 +00:00
matthias
87bb3a7b2b make this work again with -mrtd. 1999-11-16 18:16:53 +00:00
fvdl
6ba2ea78f7 Bump minor because of struct statfs change (no ABI change, though). 1999-11-15 19:23:20 +00:00
explorer
3dde14339c add stub thread functions. These are not (yet) used, and always return
success.  They are weak-aliased, so if linked with a real pthreads library
the correct magic will happen.
1999-11-14 18:34:15 +00:00
explorer
5e5a72ffef missing ; 1999-11-14 18:19:57 +00:00
thorpej
728d672378 Backout my libsa changes. 1999-11-13 21:33:12 +00:00
lukem
1f11bc4cc8 instead of using a private coord_t global variable to store the size of the
rprompt, use the previously unused coord_t el->el_rprompt.p_pos
1999-11-13 11:32:12 +00:00
is
bcb4c98ba9 Properly check for overflows. Fixes PR8314 as annotated by mjl. 1999-11-13 04:52:50 +00:00
simonb
f5f92cb0f4 Sync with src/sys/lib/libz/zutil.h. 1999-11-12 12:14:20 +00:00
lukem
509864fa8f - implement printing a right-side prompt. code derived from similar work
I wrote for tcsh(1) three years ago.
- implement EL_RPROMPT, which allows a setting/getting of a function which
  returns a string to be used as the right-side prompt.
- improve HISTORY and AUTHORS sections in editline(3).
- bump shlib minor version for EL_RPROMPT.

XXX: due to an implementation issue, the rprompt has a 1 space gap before the
     edge of the logical screen. editline's logical screen is 1 space less
     than the full screen width, so there's a 2 space gap between the rprompt
     and the right end of the physical screen. i'm not concerned about this.
1999-11-12 01:05:07 +00:00
jdolecek
894f4bc996 add freeaddrinfo(3) and gai_strerror(3) as links to getaddrinfo(3) 1999-11-10 22:41:00 +00:00
kleink
ae7e338dbb Merge tzcode1999h. 1999-11-10 20:32:30 +00:00
thorpej
bebf6897b4 Add register prefixes. 1999-11-10 16:45:33 +00:00
thorpej
627a762f23 Regen; add register prefixes. 1999-11-10 16:34:56 +00:00
thorpej
c958703527 Add register prefixes. 1999-11-10 16:32:45 +00:00
thorpej
1a5643ff26 Add register prefixes. 1999-11-10 16:11:03 +00:00
kleink
48e66c2b14 XSH5/C99: in the C/POSIX locale, change the day of month format used in d_t_fmt
(locale's appropriate date and time representation) from %d (single digits
are preceded by 0) to %e (single digits are preceded by a blank).
1999-11-10 09:15:11 +00:00
augustss
297e4e8759 Add missing .Nm for hid_locate as pointed out by Danny Thomas. 1999-11-08 22:33:40 +00:00
augustss
3c38f639e2 Some minor changes suggested by Danny Thomas. 1999-11-08 22:19:17 +00:00
lukem
e0c4130ae6 use .Fn appropriately 1999-11-07 01:26:02 +00:00
erh
9aa5adae3f Add comments describing what this does. 1999-11-05 20:16:56 +00:00
erh
20678a0621 PR 5057 - fix %k to print a 0, not just spaces. (%e too). Patch from NAKAJIMA Yoshihiro. 1999-11-05 19:21:12 +00:00
erh
6752f572d8 Remove ELFNAME defines since they are defined in sys/exec_elf.h 1999-11-04 02:00:17 +00:00
is
94efbddebd Check for invalid component numbers (wrong hex "digits", octal numbers
with digits of 8 or 9) and complain. Fixes PR 8314 by ITOH Yasufumi (but
adding the check of hexadecimal numbers).
1999-11-03 11:47:02 +00:00
fvdl
7941fc97fb Revert changes made in version 1.6. They introduced a heuristic for
detecting corruption, which may have prevented coredumps for
real corruption cases, but in practice caused false positives.
1999-11-02 21:16:55 +00:00
lukem
fe5a2bf74b remove the `static'' from static void __start()' and `static void ___start()'
because an overly aggressive gcc -O3 "cleverly" optimizes the functions out.
noted in [port-i386/8493], but seen in other ports as well.
1999-11-02 10:07:12 +00:00
lukem
fe0968e395 wrap line 1999-11-02 10:03:44 +00:00
is
cff7bedd54 Actually profile system calls.
Problem and most of the fix reported by Anders Hjalmarsson in PR 4976; libposix
mentioned by Chris G. Demetriou.
1999-10-27 14:58:28 +00:00
is
eaf45b75c1 Fix spelling of contributors name 1999-10-27 09:10:27 +00:00
itojun
31f706c2ef fix backward-compatible upgrade function name. (__RENAME thing)
the digit after the function name must be (shlib major + 1).

From: Klaus Klein <kleink@ira.uka.de>
1999-10-26 22:16:48 +00:00