Commit Graph

8742 Commits

Author SHA1 Message Date
wiz
a200eb2c89 Bump to 101 for getlastlogx change, says kleink. 2003-08-26 17:05:13 +00:00
wiz
c7025ad491 Add note about rename getlastlogx on next major bump. 2003-08-26 17:03:33 +00:00
wiz
31fd31ccf7 Make getlastlogx have the pathname to the lastlogx database as first
argument, to be consistent with updlastlogx.

Approved by christos, reviewed by kleink.

[The lastlogxname function should not be used any longer.]
2003-08-26 16:48:32 +00:00
itojun
e4b5e8fb10 protect SADB_X_EXT_TAG with #ifdef 2003-08-26 03:49:05 +00:00
itojun
1bb4de9b71 typo 2003-08-26 03:37:25 +00:00
matt
f847c1a7f3 When updating wtmpx, if the write fails make sure to close the file (to
release the lock held on it).  Use O_SHLOCK when adding just one record
since O_APPEND will enforce the atomicity that is required.
2003-08-25 23:09:37 +00:00
petrov
2cae323122 Use branch-slot in STACK_SWITCH, suggested by Martin Husemann. 2003-08-25 23:00:23 +00:00
petrov
c139cd4893 Use correct context to switch to. 2003-08-25 22:48:24 +00:00
ragge
644236bf71 Add PT_TRAPUC and pthread__switch_return_point.
Not tested (as most of the pthread stuff on vax) but at least
allow the system to compile.
2003-08-25 20:32:13 +00:00
ragge
0303d5ba8a execl, execle and execlp must be weak-aliased. 2003-08-24 21:04:53 +00:00
kleink
45cc3e349e Need namespace.h to generate references to internal names. 2003-08-24 15:14:18 +00:00
nathanw
e1fb9dd8e8 In pthread__deliver_signal(), correctly use pt_trapuc or pt_uc as the
context-to-restore instead of always using pt_uc.

Fixes a problem with signal handlers for synchronous signals noted by
Matthias Drochner on current-users.
2003-08-22 17:35:52 +00:00
kleink
f518dc7e04 Sprinkle some restrict, repair a minor nit in iconv(3)'s synopsis. 2003-08-22 14:05:03 +00:00
uwe
42a8e50b21 Add missing prototypes to make softfloat compile with -DSOFTFLOAT_NEED_FIXUNS. 2003-08-21 02:12:33 +00:00
martin
88055fbde5 Include <stdlib.h> for exit() prototype. 2003-08-20 09:50:16 +00:00
dsl
79b2073eea Significantly reduce the non-monotonicity of this function.
The way time is apportioned to interrupt/system/user makes it impossible
to guarantee monotonicity except by saving the previous value!
2003-08-19 08:31:18 +00:00
fvdl
6f517be9eb Return the right value for modf(). Fixes PR 22503. 2003-08-16 21:45:50 +00:00
nathanw
bd9a18b79f Split out pthread_{set,get}specific() into a separate file and arrange
for that file to not be built with profiling. This makes it reasonable to
use pthread_{set,get}specific() to implement thread-safe profiline call counts.
2003-08-13 18:52:01 +00:00
scw
46fc66f7d8 Adapt to Nathan's recent pt_trapuc/pt_sleepuc change. 2003-08-12 14:01:08 +00:00
scw
ac6cbd4ac3 Pop the caller's PIC prologue and push our own, as we can be called
by other shared libraries with different GOTs (e.g. libposix).
2003-08-12 13:28:55 +00:00
skrll
d900731978 Resolve dlsym(3) and friends directly so that dlsym(RTLD_NEXT,...) works.
Previously dlsym resolved to the version in crt0.o or libc which would
mean that the caller's shared object couldn't be determined correctly
using __builtin_return_address(0).

Mainly from FreeBSD, but adapted by me. Benefits of this solutions are:

	- backward comptibility maintained
	- existing broken binaries are fixed with a new ld.elf_so
	- __mainprog_obj can be removed from crt0.o
	- we do the same thing as FreeBSD

Fixes PR 22067.

OKed by Jason and Christos.
2003-08-12 09:18:38 +00:00
drochner
bae50cfb57 correct an assertion about minimum stack size: MINSIGSTKSZ is sufficient 2003-08-11 13:25:30 +00:00
matt
4907369a14 export size_t __getcachelinesize(void) for memset() 2003-08-11 02:11:23 +00:00
scw
6ba9f44930 Repeat after me: Thou shalt run the regression tests. 2003-08-10 20:39:15 +00:00
wiz
51471a0f3b Be more explicit about the difference between the err and errx (and
similar) functions. Based on wording from Jeremy C. Reed.
Closes PR 22424.
2003-08-10 10:45:33 +00:00
mrg
151375e124 avoid some lint errors in the previous 2003-08-10 08:24:52 +00:00
dsl
b176defcde Revert most of rev 1.27 of addbytes.c and associated changes.
Posix requires that adding '\n' does clrtoeol() and 'x = 0'.
(Making "\r\n" erase the text that has just been displayed.)
Remove __NONL test from addbytes, __NONL is a property of the output device.
2003-08-10 07:37:11 +00:00
martin
eaa9779f55 Split into a 64 bit version (straight forward shifting and masking) and
a 32 bit one with two 32 bit operations with two temporaries later
combined.

This avoids the strict alias violating magic used before, thereby
probably fixing PR bin/22313.
2003-08-09 22:37:49 +00:00
agc
eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
jdolecek
d7d75e0646 make the read-only arrays const 2003-08-06 08:44:22 +00:00
jdolecek
9caa6d5440 make itoa64[] const 2003-08-06 08:37:19 +00:00
jdolecek
b91cb5be6c add __RCSID() 2003-08-06 08:34:32 +00:00
lukem
64b5a0fe7b Add INCSYMLINKS to <bsd.inc.mk> and <bsd.kinc.mk>, and use that instead of
SYMLINKS to install symlinked header files.  INCSYMLINKS are installed with
'make includes'.  This avoids using SYMLINKS and hacks with the 'linkinstall'
target in <bsd.links.mk>, as linksinstall occurs in 'make install' and hacks
to get it to occur in 'make includes' weren't robust, as seen in lib/libdes.

Yet more improvements to bsd.README.
2003-08-03 09:23:14 +00:00
itojun
2e48312004 be more pedantic to strlcpy/strcat errors 2003-08-03 04:35:50 +00:00
itojun
785d6ef678 use strlcat for safety 2003-08-03 04:14:00 +00:00
itojun
d6220d9ca5 fix off-by-one error in realpath() 2003-08-03 04:12:01 +00:00
lukem
61be5790f1 Un-obsolete kerberosIV/des.h, and make it a symlink to ../des.h.
It can't be obsoleted because that causes builds with an old
${DESTDIR}/usr/include/kerberosIV/des.h to fail in directories which
have CPPFLAGS+=-I${DESTDIR}/usr/include/kerberosIV so that their #include
of <krb.h> works (and any subsequent #include <foo.h> by <krb.h>).
(Note: gcc3 won't work with a hack such as prepending -I${DESTDIR}/usr/include
before -I${DESTDIR}/usr/include/kerberosIV.)

Affected directories include lib/libkafs, and any thirdparty source
which used a similar -I/usr/include/kerberosIV hack to use <krb.h>.
2003-08-02 18:49:10 +00:00
lukem
a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
dsl
a2a4308b26 Remove unused extern for __winlistp. 2003-08-01 13:29:06 +00:00
lukem
7b3a8b8486 tweak this unconventional (some might say "baroque") Makefile to work
with the new <bsd.dep.mk> *.d semantics.
fixes problems highlighted by Martin Husemann <martin@>
2003-07-31 12:46:00 +00:00
dsl
c841017dd9 Do something more sensible for waddbytes(..., "\r\n", ...);
I'm not sure about the clrtoeol() at all though - maybe it should
be done as part of scroll()?
Leave 'x' alone when __NONL set.
2003-07-31 10:36:00 +00:00
dsl
87e998f336 Remove __winlistp, add *screen to WINDOW and initialise in newwin().
Make delwin() remove window from list of windows on its screen.
Free win->lspace and win->lines for subwins (they only share text space).
Free things in the correct (and same) order if malloc() fails in __makenew().
Adjust delscreen() for delwin() removing itself from winlist.
Fixes potential massive corruptions if delwin() called on a main window.
NB: not responsible for the sysinst core dumps :-(
2003-07-30 11:19:00 +00:00
dsl
a04fc5a9fe Use _cursesi_screen->winlistp (depracating __winlist) 2003-07-30 11:11:55 +00:00
dsl
7996b95938 Use _cursesi_screen->winlistp (depracating __winlistp)
Optimise and adjust layout so that fewer line breaks are required.
2003-07-30 11:10:42 +00:00
dsl
8f4bd35d69 Adjust layut to put ?: clause on a single line 2003-07-30 11:07:21 +00:00
dsl
5e26f5482a Copy correct size of 1 line when doing insert/delete line on a subwin. 2003-07-29 16:42:55 +00:00
kleink
7d3a44f705 Remove PT_SLEEPUC, which somehow wasn't. 2003-07-29 15:18:49 +00:00
lukem
ebf8a4f11a move ${DEPENDSRCS} target to after .include <bsd.*.mk> 2003-07-29 01:45:33 +00:00
lukem
eb51573bd7 Use ${DEPENDSRCS} as a target instead of .depend, now that
<bsd.dep.mk> builds .depend from .dep files.
2003-07-28 15:25:02 +00:00
mrg
05602c761d add a cast appease gcc3.3 2003-07-27 05:04:02 +00:00
salo
99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
mrg
9759912dd6 need <string.h> 2003-07-26 18:33:06 +00:00
itojun
182a98314c support new algorithms 2003-07-25 10:06:09 +00:00
atatat
d5fb781871 More properly host-tool-ify stat 2003-07-25 03:21:15 +00:00
itojun
bf6a317418 arename *.c so that it won't collide w/ libcrypto DES_xx files. 2003-07-24 15:14:11 +00:00
itojun
bc387ba3b1 switch to openssl 0.9.7b 2003-07-24 14:28:57 +00:00
itojun
f4401cd869 upgrade openssl to 0.9.7b. (AES is now supported)
alter des.h to be friendly with openssl/des.h (you can include both in the
same file)
make libkrb to depend on libdes.  bump major.
massage various portioin of heimdal to be friendly with openssl 0.9.7b.
2003-07-24 14:16:30 +00:00
skrll
795970599f Typo in comment. 2003-07-24 08:03:44 +00:00
wiz
576530e520 Add pthread(3), based on one by Hubert Feyrer, improved by yours truly,
reviewed by Nathan J. Williams.
2003-07-24 07:50:24 +00:00
itojun
5d70d89eb1 don't provide crypt() here. use libcrypt. 2003-07-24 02:23:51 +00:00
itojun
62be3f2658 libkafs is needed for both krb4 and krb5. lha 2003-07-23 20:48:51 +00:00
itojun
4e1706e9af kerberosIV/des.h is not needed, Love says 2003-07-23 20:30:34 +00:00
itojun
bf8555f163 no longer need to -I/usr/include first (yes, it's still confusing, i admit) 2003-07-23 13:35:13 +00:00
itojun
332aac83ab make /usr/include/kerberosIV/des.h a symlink to /usr/include/des.h,
it will avoid file inclusion loop
2003-07-23 13:33:15 +00:00
tron
c04353144d Fix build problem caused by recent "Makefile" changes. 2003-07-23 13:19:43 +00:00
itojun
6f4e912af4 call malloc_init() on first call to free/realloc, to make malloc.conf to
take effect.  in response to PR 22223
2003-07-23 08:15:02 +00:00
itojun
e63468d8cc split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
2003-07-23 08:01:24 +00:00
itojun
44ca808ae1 include /usr/include/des.h, not openssl/des.h (as openssl will change API soon) 2003-07-23 06:49:14 +00:00
itojun
476d185fa0 avoid recursion on des.h inclusion 2003-07-23 06:10:26 +00:00
itojun
e9ce38e623 des_random_key() returns 1 on success 2003-07-23 05:57:01 +00:00
itojun
df738798b1 install des_modes(7) from libdes, not from libcrypto 2003-07-23 05:46:00 +00:00
itojun
80af8890f3 install des.3 from libdes, not from libcrypto.
(eventually libcrypto will switch to DES_xx)
2003-07-23 05:43:44 +00:00
itojun
b372c5a1f3 avoid arg name in prototype 2003-07-23 05:43:43 +00:00
itojun
98cf94c860 install des.3 from libdes, not from libcrypto.
(eventually libcrypto will switch to DES_xx)
2003-07-23 05:43:43 +00:00
itojun
75905560e6 go down to libdes 2003-07-23 05:27:38 +00:00
itojun
9f89c3577c split libdes from libcrypto. libdes bumps shlib major.
(no dependency in libraries)

libdes provides des_xx functions based on openssl 0.9.6j.
2003-07-23 05:20:17 +00:00
itojun
8cf58d7c5b DES code from openssl 0.9.6j 2003-07-23 04:57:33 +00:00
itojun
0ee6664ebd support hmac-sha2 2003-07-22 03:33:10 +00:00
itojun
26585fc6b8 don't explicitly clear "reserved" field. instead clear "id" field. 2003-07-22 03:32:58 +00:00
itojun
24389b0290 plug memory leak 2003-07-22 03:32:17 +00:00
itojun
536967658d cosmetic 2003-07-22 03:31:44 +00:00
nathanw
6d30f1a3db Disable cancellation on the first lock, too, not just on internal
recursive locks (Duh).

Disable cancellation around the cond_wait() call, since that's also a
cancellation point. Arguably, that would be better handled with
pthread_cleanup_*(), but stubbing those for libc is difficult, and the
current non-exception-based implementation of cleanup handlers is
probably no faster than disabling and reenabling cancellation.
Finally, it only happens in the slow path where the thread is going to
sleep anyway...
2003-07-22 00:56:25 +00:00
nathanw
5a5cd67fff Set the _LOCKINTERNAL() count on initial locking as well as subsequent
recursive locks.
2003-07-21 22:24:47 +00:00
nathanw
0878df5d25 Lock accesses to pt_flags and pt_cancel.
When disabling cancellation, clear the pt_cancel flag if it was set
and note the cancellation request with PT_FLAG_CS_PENDING. This avoids
a problem where a cancellation request entered but not acted upon before
pthread_setcanclstate(PTHREAD_CANCEL_DISABLE) is called would still be
aceted upon before cancellation was re-enabled.
2003-07-21 22:24:09 +00:00
nathanw
329747fb90 Add a lock on the pt_flags field. 2003-07-21 22:21:07 +00:00
nathanw
0c96790183 Use _sys_write() instead of write() in the assertion and error
functions, to avoid invoking the cancellation machinery in the middle
of trying to print an assertion or error message.
2003-07-21 22:17:14 +00:00
nathanw
68a63a4079 Move initialization of variable 'nthreads' so that pthread_exit() from
the main thread, with no other threads created, exits cleanly instead
of triggering an assertion in pthread_next().
2003-07-21 22:14:57 +00:00
thorpej
31ede4a9e3 Pull in host-tool config.h, if necessary. 2003-07-21 07:10:28 +00:00
nathanw
d3ebb21ecd Use threadlib stub rather than pthread_setcancelstate() directly. 2003-07-19 05:06:16 +00:00
nathanw
ec2c169839 pthread.c was getting a bit unwieldly. Move pthread_attr stuff out
into a new file, and put the shared private structure definition in
pthread_int.h.
2003-07-18 22:33:45 +00:00
nathanw
0172694e7d Implement a bunch of pthread_attr_() functions, which genuinely set and examine
pthread_attr_t objects, although most of the properties being set don't really
affect threads yet:

pthread_attr_{get,set}guardsize()
pthread_attr_{get,set}inheritsched()
pthread_attr_{get,set}scope()
pthread_attr_{get,set}stack()
pthread_attr_setstack{size,addr}()

Remove some useless assertions and error checks in the existing pthread_attr()
routines.

Implement pthread_attr_get_np(), to examine the attributes of an existing
thread. Idea and interface from FreeBSD.

Change PTHREAD_ERRORMODE environment variable to PTHREAD_DIAGASSERT, and
make it behave like libc's LIBC_DIAGASSERT. The way to disable error-checking
and aborting is now "PTHREAD_DIAGASSERT=AEL", rather than
"PTHREAD_ERRORMODE=ignore".
2003-07-18 22:12:30 +00:00
nathanw
067fa34e42 Add prototypes and necessary symbols for a bunch of pthread_attr_*() functions,
including (interface borrowed from FreeBSD) pthread_attr_get_np().

Remove a few limit-indicating symbols that don't actually need to be defined
(and if they did need to be defined, it would be in limits.h, not here).
2003-07-18 22:01:47 +00:00
nathanw
9e5c87057d Add strong alias for setcancelstate. 2003-07-18 21:57:26 +00:00
nathanw
a74e50ddaf #include "local.h" to get __flockfile_internal() prototype. 2003-07-18 21:52:16 +00:00
nathanw
2b293cab66 Adapt definition of FLOCKFILE()/FUNLOCKFILE() to new __flockfile_internal()
routines.
2003-07-18 21:51:22 +00:00
nathanw
ad09d62fcc Move guts of flockfile()/funlockfile() to __flockfile_internal(), which
takes an additional argument indicating whether this is an internal caller
taking the lock or an external (application) caller. When making an internal
lock, save the current thread cancellation state and disable cancellation
until the matching unlock. This should prevent canccelled threads from exiting
inside of stdio while holding a file lock and potentially leaving other
parts of the FILE structure in an inconsistent state.
2003-07-18 21:50:41 +00:00
nathanw
b5665a9b84 Add fields to struct __sfileext to track how many times the lock has been
taken by internal stdio functions, and what the cancellation state was when
the first such lock was taken.
2003-07-18 21:46:41 +00:00
nathanw
d271509d77 Add a stub for setcancelstate(). 2003-07-18 21:44:38 +00:00
lukem
98e8a6d142 #include <pthread_types.h> instead of "pthread_types.h" 2003-07-18 15:58:43 +00:00
nathanw
d5ef0c1f39 Adapt to structure name changes. 2003-07-17 21:14:49 +00:00
nathanw
1a9edd35f7 Simplify pthread__stackalloc() by using the newish aligned-mmap()
feature.
2003-07-17 21:07:39 +00:00
nathanw
d686fc0deb Define PTHREAD_* structure initializers from _PTHREAD_* macros from
pthread_types.h.
2003-07-17 20:59:35 +00:00
nathanw
d37a996a49 Adapt to structure name changes. 2003-07-17 20:55:25 +00:00
nathanw
deb18e9d04 Adapt to internal structure name changes.
Add a couple of useful flags and symbols.
2003-07-17 20:52:38 +00:00
nathanw
c541f9e56a Prepare for inclusion in sys/types.h by ensuring that all the symbols
defined end with _t or start with _[A-Z_].
2003-07-17 20:51:36 +00:00
nathanw
608b92c095 Don't use PTHREAD_DESTRUCTOR_ITERATIONS; the constant is going away. 2003-07-17 20:40:43 +00:00
fvdl
2949ab0051 Take the normal return path in sigtimedwait when the current thread was
canceled as well. From Stephan Uphoff.
2003-07-17 18:15:21 +00:00
dsl
5dbcc1e019 If VIS_CSTYLE is specified, use \ to escape any printable characters
(especially \ itself, and anything else in 'extra').
Fix strvis() and strvisx() to pass 0..255 to isgraph() etc.
2003-07-16 22:34:34 +00:00
nathanw
e171479839 pthread_kill() prototype moved to <signal.h>. 2003-07-16 21:26:33 +00:00
cb
9b28f9c625 Mark __clockctl_fd close-on-exec to avoid unintentionally leaking
time setting privileges across an exec.
2003-07-16 19:42:11 +00:00
itojun
24fbe10c93 do not build/install shlib 2003-07-16 19:35:34 +00:00
wiz
19aedbe869 Bump date for last. 2003-07-16 11:54:44 +00:00
tshiozak
5e3e3850e3 correct boundary check in _citrus_db_lookup_string_by_string(). 2003-07-16 08:13:51 +00:00
itojun
2ec4a5905e use bounded string op 2003-07-16 08:05:27 +00:00
itojun
427af575fe use bounded string op. bump shlib major for libtelnet due to API change. 2003-07-15 10:14:54 +00:00
itojun
fabed9f775 use bounded string op 2003-07-15 05:09:34 +00:00
jeremy
be8ce1d30b Documented the return values from el_get(). 2003-07-14 22:36:22 +00:00
itojun
df0916cac9 MDC2 is patented 2003-07-14 13:49:21 +00:00
itojun
fcfc71fca0 use strlcat 2003-07-14 12:37:13 +00:00
tshiozak
0e0aa0868c use NONIDENTICAL instead of ILSEQ if the reverse conversion of ISO646.
(fix for lib/22135)
2003-07-14 11:37:49 +00:00
wiz
22c09256dd cpu -> CPU, from jmc@openbsd. 2003-07-14 08:58:57 +00:00
itojun
7b8c272d80 be friendly to unifdef(1) 2003-07-14 08:36:27 +00:00
tshiozak
c1e771ab90 separate "nonidentical conversion" and "ilseq" under csmapper.
"nonidentical" means "the input character index is valid, but not
corresponding to the output codeset."
"ilseq" means "the input character index is invalid for the input codeset."
2003-07-12 15:39:19 +00:00
dsl
880234af7e Stop def_prog_mode() saving incorrect termio settings.
Make set_prog_mode() set the correct settings.
I'm not certain how much restoration set_prog_mode() should do, but it
definitely doesn't want to do all of __restartwin().
Maybe __restartwin() should be calling set_prog_mode()?
2003-07-10 12:50:18 +00:00
lukem
7b6e5e6602 NOxxx= variables must appear before <bsd.own.mk> 2003-07-10 11:27:45 +00:00
lukem
001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
tshiozak
888aa165a5 add forgotten _CITRUS_HASH_REMOVE() at release_shared().
This hopefully fixes the PR pkg/22113.
2003-07-10 09:08:57 +00:00
tshiozak
8adfd9b778 make _DIAGNOSTIC happy. 2003-07-10 08:50:43 +00:00
kleink
4e043afc74 Fix pasto in 1.26; spotted by Thomas Klausner. 2003-07-09 15:38:20 +00:00
wiz
60c9febddd Drop trailing spaces. 2003-07-09 14:12:31 +00:00
kleink
9789cc2d45 Mention related kernel options where applicable. 2003-07-09 13:35:08 +00:00
matt
0f8d87a96d Update to new world order. **not tested** But will allow builds to
finish.
2003-07-09 00:55:45 +00:00
uwe
fa9c69303e Fix previous. s/_start/___start/ in the declaration as well. 2003-07-05 23:50:28 +00:00
uwe
ea81adf86a Not that the branch in SETC doens't have a delay slot, remove the
.empty comment as it's no longer pertinent.
2003-07-05 23:01:25 +00:00
marcus
bcd3ee1e02 Provide entry point as both _start and __start, like i386 port does. 2003-07-05 22:51:12 +00:00
marcus
4e24351384 PIC patch from Valeriy E. Ushakov applied.
Also, removed bogus delay slot flag from branch instruction.
2003-07-05 22:50:09 +00:00
marcus
cccf9dfce5 The field "pt_sleepuc" doesn't exist in struct pthread_st. 2003-07-05 21:27:23 +00:00
jdc
256ce6a6f2 Rework the way window/wub-window refresh is done.
For each line that is marked dirty on each sub-window, we now mark the
relevant line on the parent as dirty and unmark it on the sub-window.
This avoids copying the same data multiple times and also leaves the
cursor in the correct position for the window refreshed.
2003-07-05 19:07:49 +00:00
jdc
24b8aeb15a New sub-windows should not be marked as pads.
(Also noticed by David Laight.)
2003-07-05 19:03:32 +00:00
wiz
94474093a7 Grammar improvement. 2003-07-05 17:34:55 +00:00
tshiozak
6f555a803c correct a careless miss.
add the mention about the buffer size when resetting destination state.
2003-07-05 16:54:23 +00:00
skrll
ec57ccf92d Typos in comments. 2003-07-04 15:16:14 +00:00
wiz
b84f435f94 Improve wording. 2003-07-04 13:45:35 +00:00
wiz
0ea2a4723e Bump date for last. 2003-07-04 12:42:05 +00:00
wiz
a86b52e89a Sort list of functions. 2003-07-04 12:40:15 +00:00
wiz
8d15a4fe46 Fix Dd string and remove trailing whitespace. 2003-07-04 12:38:58 +00:00
wiz
624f3e364c Various fixes; add LIBRARY section. 2003-07-04 12:29:38 +00:00
wiz
0d5ea51ae2 Drop trailing whitespace. 2003-07-04 12:17:59 +00:00
wiz
cf10d78423 Remove superfluous word. 2003-07-04 11:59:34 +00:00
wiz
3261c36039 Add comma. 2003-07-04 11:57:58 +00:00
wiz
c9b0edd1ba Remove superfluous word. 2003-07-04 11:57:17 +00:00
wiz
df617ae85c Fix typo. 2003-07-04 11:55:58 +00:00
wiz
9edf05479a Mark up a defined value. 2003-07-04 11:47:03 +00:00
wiz
63e8a90e85 New sentence, new line. 2003-07-04 10:19:42 +00:00
wiz
7398828105 Fix typo. 2003-07-04 10:18:46 +00:00
wiz
1e15cda14b > -> \*[Gt] 2003-07-04 08:43:33 +00:00
wiz
5b1fed0bc5 Sort sections. 2003-07-04 08:42:57 +00:00
wiz
f84167245a .Pp fixes. 2003-07-04 08:42:20 +00:00
wiz
2f56847e01 Fix SEE ALSO. 2003-07-04 08:41:25 +00:00
wiz
ba587118af Drop trailing whitespace. 2003-07-04 08:36:06 +00:00
wiz
1fabdcd1fb Drop whitespace. 2003-07-04 08:20:31 +00:00
wiz
5e93a9d980 Grammar, punctuation, and mdoc fixes. Sort sections. 2003-07-04 07:44:19 +00:00
tshiozak
a781221f36 add iconv.3 manpage. 2003-07-04 06:05:28 +00:00
tshiozak
918c07021f separate "close" process into two parts (with and without handling hash).
This change makes the code symmetrical and ensures the lock not to be
aquired recursively.
The problem that the lock is tried to be aquired recursively was
pointed out by Matthias Drochner.
2003-07-02 17:48:57 +00:00
marcus
9b73f39949 Generate proper PIC code for libc_pic.a. 2003-07-01 14:35:44 +00:00
wiz
7dd0ed6e01 We do not want empty lines in mdoc. 2003-07-01 10:23:52 +00:00
wiz
bbe810ed82 Use Em instead of weird Bf usage. 2003-07-01 10:20:54 +00:00
wiz
9d37bb0f6b Va Sq -> Sq Va so both work. 2003-07-01 10:17:36 +00:00
wiz
6156e5aaa0 Add missing dot a beginning of line. 2003-07-01 10:16:50 +00:00
tshiozak
58db2e99e2 add iconv_t cache.
- separate shared part and context part from iconv_t.
  - add cache of shared part.
and, bump shlib_version minor of i18n modules because iconv i/f is changed.
2003-07-01 09:42:15 +00:00
tshiozak
290f7cdee9 cosmetic change. 2003-07-01 08:34:03 +00:00
tshiozak
b50ac1a74f fix lib/22023 - there were references to uninitialized variables. 2003-07-01 08:33:06 +00:00
wiz
b93a29cdaa Fixes to make these man page look nice with groff-1.19. 2003-06-30 19:12:31 +00:00
christos
6363afb646 use __attribute__((__packed__)) instead of __packed. 2003-06-30 17:54:13 +00:00
kleink
5a44432bf1 Sprinkle some restrict. 2003-06-30 15:14:17 +00:00
wiz
03cb7d2b4f Remove .UC -- not Berkeley Distribution man pages. 2003-06-30 14:18:56 +00:00
tshiozak
a8076e0474 add #include "config.h" when these files are built as parts of host tools. 2003-06-30 12:32:21 +00:00
wiz
23ea338b1b Use a better width argument. 2003-06-30 12:02:08 +00:00
tshiozak
cba952da4e u_int*_t -> uint*_t.
I would like to use stdint.h, but it is too modern for the host tools.
u_int*_t are more popular under UNIX-like systems, although they are
not backed up with any standards.
(src/tools/compat/stdint.h is maybe necessary.)
2003-06-29 17:30:07 +00:00
jdc
5572bca927 Make the refresh complete in the presence of multiple sub-windows.
Match function names in the debug output.
2003-06-28 21:11:43 +00:00
wiz
a8f1dff65a Add Ns. 2003-06-27 18:57:09 +00:00
wiz
e19fe12b03 Remove superfluous comma. 2003-06-27 18:01:08 +00:00
wiz
b50ca43043 Pa Aq -> Aq Pa; Sy Pa -> Sy. 2003-06-27 17:59:33 +00:00
tshiozak
82d5554eda sync with the last change for citrus_hash.h. 2003-06-27 17:53:31 +00:00
tshiozak
2aa99730ce make sure to use LIST_* macros defined in sys/queue.h.
pointed out by yamt@netbsd.
2003-06-27 17:43:15 +00:00
wiz
cc45dace72 Use Aq Pa instead of Fd \*[Lt]...\*[Gt]. 2003-06-27 15:33:24 +00:00
yamt
d71154b0e4 in _citrus_ctype_btowc_fallback() and _citrus_ctype_wctob_fallback(),
use enough size byte arrays, instead of abusing mbstate_t.
just pedantic.  no functional change is involved.
2003-06-27 14:52:25 +00:00
wiz
e414629c30 Pa Aq -> Aq Pa so that both work. 2003-06-27 14:50:31 +00:00
wiz
2b8b2a8b6f Quote question mark and brace. 2003-06-27 14:24:16 +00:00
wiz
2e906114a3 Remove superfluous "". 2003-06-27 14:23:24 +00:00
wiz
3e884db9b9 Quote question mark. 2003-06-27 14:03:45 +00:00
wiz
6e5644d28c Aq Pa instead of Pa Aq. 2003-06-27 13:58:51 +00:00
wiz
2a0c101d51 Remove superfluous semicolon. 2003-06-27 13:23:11 +00:00
wiz
551b587f30 End sentence with a dot. 2003-06-27 13:17:02 +00:00
wiz
1f45225df4 Fix typo in macro name, and remove a trailing comma. 2003-06-27 13:05:08 +00:00
wiz
6f235494c5 Fix typos in macro names. 2003-06-27 13:02:27 +00:00
yamt
8822a3e83e $NetBSD $ -> $NetBSD$ 2003-06-27 12:55:13 +00:00
wiz
1ff0ecb2a4 This man page is in section 2, not 3. 2003-06-27 12:23:08 +00:00
wiz
b0e8e1d6c7 SYNOPSIS is not a good place for C comments;
also, simplify macro usage.
2003-06-27 12:04:36 +00:00
wiz
e0c3e5d8e2 This man page is in section 2, not 3. 2003-06-27 11:51:07 +00:00
itojun
c7ca01fc7d i guess the original intent was this... 2003-06-27 08:58:18 +00:00
itojun
877654378b memset() after null check 2003-06-27 08:56:07 +00:00
itojun
29aff1f984 clear memory after malloc() 2003-06-27 08:50:47 +00:00
tshiozak
284734d7ec bump libc version because of iconv. 2003-06-27 06:05:08 +00:00
tshiozak
ff5c3e6895 Citrus iconv support(4)
add iconv external I/F (iconv.h - iconv_open()/iconv()/iconv_close()) and
iconv(1) utility.
TODO:
  - bump libc minor.
  - add iconv data files.
  - create manpages: iconv_open(3)/iconv(3)/iconv_close(3)/iconv(1)/
    mkesdb(1)/mkcsmapper(1).
2003-06-27 05:21:49 +00:00
itojun
7a580d5968 clear malloc'ed memory. sync w/kame 2003-06-27 03:40:44 +00:00
nathanw
6a0c6dddb7 Preferentially read context pointer from pt_trapuc. 2003-06-26 21:51:59 +00:00
dsl
14b491c2c5 Stop refresh(subwin) doing refresh on the other subwin's created before it.
(If nothing else the cursor would get left in the wrong place).
Fix some if (!flags & MASK) checks.
2003-06-26 17:17:10 +00:00
dsl
b70727e760 Error attempts at nested subwindows, the data structures don't support them.
I can't quite decide whether the X/Open Curses Issue 4, version 2 needs them.
2003-06-26 17:13:55 +00:00
wiz
f899ab9b92 There is no FreeBSD-3.3.0, only FreeBSD-3.3. 2003-06-26 12:25:22 +00:00
tshiozak
f3995f1ad3 correct wcrtomb(3) - it is not conforming to standard on handling L'\0'.
This change also affects Citrus iconv engine.
2003-06-26 12:09:56 +00:00
tshiozak
f77c39f209 make sure that key is case-insensitive. 2003-06-26 12:05:04 +00:00
dsl
c7ba282830 Stop blank line being added when newline is processed with __ISPASTEOL set. 2003-06-26 10:22:33 +00:00
wiz
5231f1f288 Remove trailing whitespace. 2003-06-26 10:01:18 +00:00
wiz
85cf615bd0 Work around a warning from groff-1.19. 2003-06-26 10:00:24 +00:00
wiz
73d12a57ca Fix typo in macro. 2003-06-26 09:50:49 +00:00
nathanw
9639eeaf54 Adapt to pt_trapuc: change STACK_SWITCH to check for a value in pt_trapuc
and use it preferentially to a value in pt_uc, clearing it once on the new
stack. Move stores into pt_uc back to before the stack switch; storing
after the stack switch opened a one-instruction race condition where an upcall
that had just started a chain could be preempted again, and would bomb when
restarted due to its pt_uc not yet having been updated. Now that pt_trapuc
is what the upcall code writes to, it is safe to store to pt_uc before
switching stacks.

Remove obsolete pt_sleepuc code.
2003-06-26 01:45:31 +00:00
nathanw
487eb7e193 Initialize pt_trapuc in pthread__initthread(). 2003-06-26 01:30:39 +00:00
nathanw
1414a095ac Remove PT_SLEEPUC and add PT_TRAPUC. 2003-06-26 01:29:28 +00:00
nathanw
81a27fd0b2 Adapt to pt_trapuc: Store context obtained from upcalls there, clear it
in switchto targets and vitims, and print it in debug messages (including
indication of whether a context is trap or user context).

Remove obsolete pt_sleepuc handling.
2003-06-26 01:28:14 +00:00
nathanw
1af6125572 Clear pt_trapuc when idling threads. 2003-06-26 01:26:39 +00:00
nathanw
2534cd2bea Introduce a new pointer, pt_trapuc, that stores thread context captured
by the kernel. Separating this from pt_uc makes it possible to avoid a race
condition in pt_uc management near the STACK_SWITCH part of pthread__switch()
and pthread__locked_switch().

Remove pt_sleepuc pointer, which was made obsolete by the previous round of
UC juggling but still present in the assembler files.
2003-06-26 01:26:11 +00:00
nathanw
3ca7487c30 More printf format size tweaks. 2003-06-25 23:26:00 +00:00
nathanw
4a9ac109f0 Complain clearly if SA syscalls aren't avaliable. 2003-06-25 23:23:27 +00:00
tshiozak
d710132b4b Citrus iconv support(2)
add new plugin modules and bump minor (because of some new I/Fs).
2003-06-25 10:38:01 +00:00
tshiozak
04e58308a3 Citrus iconv support (1)
add core engine of Citrus iconv and some support routines.
  - iconv core (citrus_iconv)
  - coded character set mapper (csmapper)
  - encoding scheme database (esdb)
  - standard encoding scheme handler (stdenc)
  - basic character set manipulation utilities (bcs)
  - mmap based infrastructure (citrus_lookup/_mmap/_memstream/_db)
  - some source codes of new plugins (not built yet)
2003-06-25 09:51:26 +00:00
nathanw
39f9ecfa06 Oops, reordering the PT_STATE/PT_SWITCHTOUC/PT_SWITCHTO assembly
killed a live value too soon. Fix by using a different register for
the PT_STATE immediate.
2003-06-24 18:54:56 +00:00
nathanw
96458e8892 Update the switch_return point name in the static case. 2003-06-23 22:50:23 +00:00
christos
40e148ef6b PR/21948: Todd Vierling: Implement MAP_TRYFIXED for linux emulation. 2003-06-23 21:32:33 +00:00
uwe
b92f152573 First bits of SH3 support. Only _context_u.S is implemented (passess
cu[1-6] tests), the pthread_switch.S is stubbed out for now.

Code posted by Christian Groessler (cpg at aladdin dot de) to port-sh3.
2003-06-23 19:34:43 +00:00
christos
d695477b73 PR/21963: MAEKAWA Masahide: Don't free(dirp) before its last use. 2003-06-23 14:35:38 +00:00
uwe
439470c9f0 Registers _REG_Ri defines are numbered backwards, so when we fill
r4-r7 with arguments, use the correct *minus* i to compute the i-th
register index.
2003-06-23 10:45:20 +00:00
jdc
11f267a000 Add noqiflush() and qiflush()
Fixes PR lib/20037.
2003-06-20 06:58:53 +00:00
jdc
c521d02fce Add keyname().
Fixes PR lib/20033.
Allow SMALL to be defined, to reduce the size of the library.
2003-06-20 06:56:29 +00:00
christos
96759472a4 provide a definition for __attribute__ 2003-06-19 16:19:42 +00:00
christos
9b8791db6c From michael@moria.de:
Fix realloc case where we could be running out of space if too many matches.
2003-06-19 16:04:57 +00:00
christos
839ca00b3c From michael@moria.de:
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.
2003-06-19 15:55:05 +00:00
martin
f546abe798 Catch up with Nathan's changes to other archs. 2003-06-17 23:18:48 +00:00
nathanw
876d7e7eec Dodge a potential race condition in pthread__debuglog_printf(). It's
still possible for multiple threads to write into the same space, but
they shouldn't be able to corrupt the write pointer in the process.

Also, check for pointer-lapping a bit more carefully in the wrap
vs. non-wrap case.
2003-06-16 21:24:48 +00:00
martin
aba86b525b Catch up with changes Nathan did to other archs. 2003-06-15 17:11:36 +00:00
scw
7d221cb560 Apply Nathan's switch-away fix and previous save-PT_UC from new stack fix. 2003-06-13 08:07:03 +00:00
scw
04f197eae9 Apply Nathan's switch-away fix and previous save-PT_UC from new stack fix.
Compile-tested only.
2003-06-13 07:45:17 +00:00
itojun
3abc10868f add $NetBSD$ 2003-06-13 04:09:18 +00:00
lukem
34795551b8 add const qualifiers to match md{2,4,5}.h 2003-06-13 01:28:41 +00:00
nathanw
4bd45b7b3b Oops, that's switch_return_point, not locked_return_point. The perils
of cut-and-paste.
2003-06-12 23:19:27 +00:00
provos
0275e3fef4 enable building the library and the regression test 2003-06-12 23:18:07 +00:00
provos
f67349cc61 fix warnings 2003-06-12 23:07:58 +00:00
nathanw
aa6f5de228 STACKSPACE of 16 is too small, given the use of CALLFRAME_SIZ;
increase to match.
2003-06-12 23:01:17 +00:00
nathanw
eb6ba6fbef Apply switch-away fix and previous save-PT_UC from new stack fix. 2003-06-12 23:00:28 +00:00
provos
13993283c2 import of libevent; an event abstraction library that supports kqueue and
poll on NetBSD.
2003-06-12 22:54:25 +00:00