Commit Graph

4602 Commits

Author SHA1 Message Date
kleink
15be242b3a Add a LIBRARY section to system call manual pages. While it's clear that the
libraries contain stubs only (with minor exceptions a la pipe(2)), the purpose
of this section is to provide linkage information.
1999-12-02 21:42:35 +00:00
kleink
087b539e0f Change the declaration of the argv argument to getopt(3) from "char * const *"
(as originally declared in System V) to "char * const []", as was done in
1003.2 and subsequently propagated into XPG4.
From Andrew Cagney in PR lib/8930.
1999-12-02 13:15:55 +00:00
wennmach
cc928e80ae Make unvis and strunvis grok strings produced by svis et al. 1999-12-01 22:03:43 +00:00
thorpej
22b2fb0830 Document the 64-bit XDR routines that Sun also documents. This manual
page needs a lot of help:
- restructure it into xdr_admin(3), xdr_complex(3), xdr_create(3), and
  xdr_simple(3), as is done in Solaris.
- rewrite in mandoc, and document all of the XDR primitives that NetBSD
  actually supplies.
1999-12-01 19:00:23 +00:00
thorpej
858fdb2362 minor++; added XDR routines for 64-bit integer data types 1999-12-01 18:35:15 +00:00
thorpej
0bbf216692 Implement XDR routines for 64-bit integer data types:
- xdr_int64_t(), xdr_u_int64_t(), per NetBSD convention.
- xdr_hyper(), xdr_u_hyper(), xdr_longlong_t(), xdr_u_longlong_t(), a'la
  Solaris, implemented in terms of the above.
1999-12-01 18:34:21 +00:00
kleink
87bead520d * use <stdlib.h> instead of deprecated <malloc.h>
* replace <strings.h>/bcopy() with <string.h>/memcpy()
1999-11-30 15:58:16 +00:00
kleink
d574ffc673 (bcopy, bzero) -> (memcpy, memset) 1999-11-30 15:55:25 +00:00
hubertf
35c835cfe4 You also need <rpc/rpc.h> to compile yp programs.
Noted in PR 8919 by Tom Spindler <dogcow@redback.com>
1999-11-29 23:28:23 +00:00
wennmach
c70c65e8a1 Suggested by christos:
o unexpand spaces to tabs
o don't initialize non-static array extra[]; \0 terminate extra[]
  using an explicit assignment instead
1999-11-28 22:51:37 +00:00
itojun
d92ae4181c restrict result from getaddrinfo() by specifying ai_socktype.
(otherwise getaddrinfo() will glob through all the possible ai_socktype
and ai_protocol)
1999-11-28 14:51:04 +00:00
lukem
2468bbbf42 don't use err(); instead pass an error condition back to a higher
layer to warn() about.
1999-11-28 05:46:15 +00:00
lukem
a8d12b09cd * check the result of sl_init() and sl_add()
* return an error state back up the call chain and take appropriate
  action, rather than calling err() to terminate the process
1999-11-28 04:30:15 +00:00
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