Commit Graph

4626 Commits

Author SHA1 Message Date
blymn b7466e4fd7 * Moved the contents of the EXPOSE_PRIVATES ifdef into internal.h and
killed the now empty ifdef in menu.h.  Also removed the define in
  the CFLAGS in Makefile.
* Renamed _menui_menu_hook to Menu_Hook for compatiability with
  ncurses.
* Renamed all internal functions to have _menui prefix instead of
  __menui
* Cleaned up some automatic function variable names that were
  shadowing function calls.
* Fixed email address in headers.
1999-12-16 12:08:06 +00:00
itojun 72e7091f16 more complete solution for gethostby*() buffer overwrite issue.
(we need thread-safe gethostby*...)
1999-12-13 17:05:45 +00:00
itojun 58481c1c06 fix getaddrinfo(3) and getnameinfo(3).
getaddrinfo(3): result from gethostby* will be broken if we call it again.
deep-copy them.  we have sa_len so configure them.
getnameinfo(3): we have sa_len so configure them.
1999-12-13 16:22:56 +00:00
itojun 1501f61891 bring in latest KAME get{addr,name}info(3).
getnameinfo(3) globs ai_socktype and ai_protocol correctly.
KAME scopeid extension is implemented.
(draft-ietf-ipngwg-scopedaddr-format-00.txt)

bump up shlib minor
(may not be necessary, but rather big difference in behavior - especially
ai_flags)
1999-12-13 14:18:31 +00:00
christos 25b059b813 If we are not including i387 support in libm, build a separate libi387. 1999-12-13 09:40:27 +00:00
christos e133a9e685 Makefile and shared library for libm387. 1999-12-13 09:36:29 +00:00
itojun 60860abcb8 be more pedant. remove unused vars and such.
don't use s6_addr{8,16,32} directly, they are not in standard.
hide not-supposed-to-be-visible functions as static.

increase shlib minor.
1999-12-13 01:44:30 +00:00
itojun 0b3c3042e6 inet6_rthdr_reverse() is not implemented yet. 1999-12-12 14:59:09 +00:00
itojun c3f65850fd wording fixes (from openbsd camp -> kame) 1999-12-12 11:21:04 +00:00
itojun a57d497906 add manpage for inet6_{option,rthdr}_*. 1999-12-12 11:20:03 +00:00
msaitoh 3b476f4adb use .Er 1999-12-11 19:35:48 +00:00
explorer cda5601f3c revert this file, the changes I made were quite unnecessary. 1999-12-10 17:27:28 +00:00
wennmach 19e89641c1 Back out last change; now vis takes care not to produce ambigous
encodings.
1999-12-07 18:26:27 +00:00
wennmach 12c643233f In SVIS, encode all characters on the extra list either in C-style
fashion (if possible) or as octal representation (else).
1999-12-07 18:20:28 +00:00
simonb 6ae0eb50e6 Only unctrl() the first 256 input values.
This and the previous curses patches were from Brett Lymn.
1999-12-07 03:53:11 +00:00
simonb 7bb076e511 Use unsigned offsets into __unctrl and __unctrllen.
Only prototype __CTRACE if DEBUG is defined.
1999-12-07 03:22:10 +00:00
simonb 21e2089173 Another unctrl() %s fix. 1999-12-07 03:18:52 +00:00
simonb 8733616839 In a debugging check, use %s for unctrl (it returns a char *). 1999-12-07 03:13:30 +00:00
explorer 5bfb624265 Put the function prototype back. Grr. 1999-12-03 23:34:41 +00:00
explorer bb10ce81bd Do this a bit differently.
On platforms where we can use weak aliases, use
	__weak_alias(__errno, __errno_func);
and on platforms where we cannot, just compile the function as
__errno, since on those platforms we cannot make libc thread-safe,
at least using this trick.

Are there any platforms where we cannot do __weak_alias() anymore?
1999-12-03 23:31:20 +00:00
explorer c9227efe70 Make __errno() be a weak alias for __errno_func(), so thread packages
can actually override what plain old 'errno' looks like.
1999-12-03 23:24:33 +00:00
mjl 183e61b9cf Use /bin/sh to take care of the EDITOR command parsing instead of home
grown method. Fixes PR/8935 by myself. Fix is from OpenBSD. Also pull
in a couple of minor changes like checking the return value of vfork().
1999-12-03 16:23:58 +00:00
explorer 179a2df725 add. This holds the global __isthreaded variable, to indicate that threading
is (or is not) present.
1999-12-03 06:37:34 +00:00
explorer 7d1b0fabbc typo 1999-12-03 06:36:55 +00:00
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