Commit Graph

13219 Commits

Author SHA1 Message Date
lukem e77a187288 Back to WARNS=3 until the kernel source is -Wsign-compare friendly. 2009-02-12 13:20:17 +00:00
lukem c7201a0f39 fix -Wsign-compare issues 2009-02-12 06:35:54 +00:00
lukem eb0de3bfe5 fix sign-compare issues 2009-02-12 06:33:13 +00:00
lukem 64d3d6de80 sign-compare fixes 2009-02-12 05:06:54 +00:00
lukem 4359ce3c5f sign-compare fix 2009-02-12 05:03:47 +00:00
lukem 71d48e7c9e sign-compare fixes 2009-02-12 04:57:46 +00:00
lukem 2770a3ae8f sign-compare fixes 2009-02-12 04:40:40 +00:00
lukem 2d59e2af1e sign-compare fix 2009-02-12 04:38:52 +00:00
lukem 102c672a15 sign-compare fixes 2009-02-12 04:32:05 +00:00
lukem deeb06e363 sign-compare fixes 2009-02-12 04:13:08 +00:00
lukem 8483a30314 sign-compare fix 2009-02-12 04:10:52 +00:00
lukem 9d1671f467 Fix sign-compare issues 2009-02-12 03:34:33 +00:00
lukem 19b046886f fix sign-compare issue 2009-02-12 03:12:36 +00:00
lukem 2360d0845a Apply some of FreeBSD libc/stdlib/malloc.c rev 1.162
to fix sign-compare issues.
2009-02-12 03:11:01 +00:00
lukem cfd7bc0451 Fix sign-compare issues.
Ensure provided uio_resid >= 0; negative sizes have "interesting"
semantics elsewhere in stdio, so it's better to avoid them.
2009-02-11 23:48:17 +00:00
christos 17413e263b custom password prompt that displays the user. 2009-02-11 18:38:56 +00:00
pooka d5aab2d6c4 Do not flock() block devices. The kernel recently started to guard
against opening a block device twice and flock requires that we
keep the device open.  Hence, the same mount would attempt to open
for locking and then VOP_OPEN for kernel access and run into
problems.  This makes it possible to rump_foofs block devices again,
i.e. take the same command line arguments as regular mounts.
Noticed by apb.
2009-02-11 14:35:58 +00:00
christos 028f3ea750 fix typo * -> & from enami. 2009-02-11 13:52:28 +00:00
christos ed71b85e85 remove debugging. pointed by enami 2009-02-11 13:51:59 +00:00
lukem da77f10ac5 sign-compare fix 2009-02-11 05:25:17 +00:00
christos bb0dd61478 Add RFC 2045 MIME Quoted-Printable support. 2009-02-10 23:06:31 +00:00
pooka 0b0244d13f document P2K_DEBUG and P2K_NODETACH 2009-02-10 14:40:30 +00:00
pooka 53b8d59800 If P2K_NODETACH is set in the env, do not .. well .. detach. 2009-02-10 14:36:19 +00:00
tnozaki 5f8a9fb1ee fix typo, don't overwrite LC_TIME's t_fmt_ampm by t_fmt. 2009-02-09 14:39:48 +00:00
jdc 145a912cc9 Fix bug where a single ESC was not recognised when in keypad() mode.
Noticed by abs@.
2009-02-09 12:45:59 +00:00
lukem 53e9163a95 sign-compare fix 2009-02-07 07:25:22 +00:00
lukem f0772e2d1f sign-compare fix 2009-02-06 23:47:44 +00:00
sketch 2157800b5b SUNOS is spelt __SunOS. Add missing prototypes. 2009-02-06 20:08:13 +00:00
sketch 957effbd58 Needs errno.h 2009-02-06 19:53:23 +00:00
sketch fe96b18c3f Plug memory leak, from MySQL. 2009-02-06 14:40:32 +00:00
sketch 5e72d51013 Portability fix. 2009-02-06 13:14:37 +00:00
sketch fe3391bda5 de-__P() 2009-02-06 12:45:25 +00:00
lukem 6f550c4d36 sign-compare fix 2009-02-05 23:52:55 +00:00
lukem fc2df2f1c0 sign-compare fix 2009-02-05 23:22:39 +00:00
christos 1dc5f9b89b match documentation in el_push 2009-02-05 19:15:44 +00:00
christos d052ee7b7f add rl_set_prompt 2009-02-05 19:15:26 +00:00
lukem 8bbffe062a sign-compare fix 2009-02-05 13:21:11 +00:00
lukem 38d40fc9f8 sign-compare fix 2009-02-05 05:39:38 +00:00
lukem 5e1ba2f2e6 sign-compare fix 2009-02-05 03:22:37 +00:00
jmcneill 1c31e53c25 Bump date for previous. 2009-02-03 12:48:00 +00:00
jmcneill 5cc75830ea Add a table that describes the mappings from native audio mixer names
to their OSS equivalents.
2009-02-03 12:46:13 +00:00
lukem 14fddbd703 fix sign-compare issue 2009-02-03 05:21:24 +00:00
lukem a99197aa1c sign-compare fix 2009-02-03 04:58:38 +00:00
lukem bc395719cc sign-compare fix 2009-01-31 06:08:28 +00:00
lukem e1e343f9f7 sign-compare fix 2009-01-31 00:08:05 +00:00
wiz b85179b9a1 Remove empty trailing line. 2009-01-30 23:52:28 +00:00
lukem 957ba389e8 sign-compare fix 2009-01-30 23:46:03 +00:00
lukem 8a09e86085 sign-compare fix 2009-01-30 23:35:35 +00:00
ad 397f5192b2 Update for SUSv2 compliance. 2009-01-30 23:26:54 +00:00
ad c984f259af Make threaded programs die correctly:
kill(getpid(), SIGFOO) -> raise(SIGFOO)
2009-01-30 23:21:02 +00:00
mhitch 86223c379c The explicit integer bit is "don't care" for infinity, and now that it's
included in ext_frach, it needs to be masked off when testing for an
infinity value.  Fixes the ieeefp/infinity regression test on the 68060
which clears the explicity integer bit when loading an infinity value.
2009-01-30 07:00:45 +00:00
rmind 97267cc4e2 Change raise(3) to be thread-aware - send the signal to current LWP.
From <ad> via PR/40341.
2009-01-29 23:52:21 +00:00
ad a46df1f1f2 pthread_barrier: Fix numerous stupid bugs. Surprising that nobody
complained yet.
2009-01-29 21:19:35 +00:00
enami 4e5aed7e08 Put back rev. 1.20 so that nbpwd_mkdb built on 32bit time_t host generates
correct pwd.db.
2009-01-29 10:41:39 +00:00
wiz cc2e7350a1 Bump date for new STANDARDS section. 2009-01-29 10:15:39 +00:00
martin 9e8a2fc070 __posix_fadvise50() does not use the standard errno behaviour, but returns
the error value itself - so move it from ASM to NOERR. Pointed out by
Nick. I have no idea how/if this ever could have worked, but I would swear
I realy tested it when I last touched it! Fixes the sys/fs/posix_fadvise
regression test.
2009-01-29 08:47:43 +00:00
lukem 79becf98cb sign-compare fixes 2009-01-29 02:02:36 +00:00
rmind 2017b2a396 Small fix, "processes" mistaken with "processors". 2009-01-29 00:54:54 +00:00
dyoung d4e20cf95c Try to clarify what pset(3) actually does. This needs some more
work.
2009-01-28 23:44:45 +00:00
gdt 04532cd1e6 Note that strdup is specified by POSIX.1. 2009-01-28 19:12:40 +00:00
wiz ce889b3001 Bump date for previous. Sort ERRORS. 2009-01-28 08:57:02 +00:00
mrg 798e718222 fix a very old resolver bug:
when looping over the current list of sockets we're connected to,
use getpeername() not getsockname() to find out who the remote
end is.  avoid spurious close()s and (rare) failure.

apparently known as ISC bug #18625, and fixed in libbind 6.0
2009-01-27 05:13:23 +00:00
apb 69a442fa50 Define HAVE_STRUCT_DIRENT_D_NAMLEN in config,h, and test it when
deciding whether to use entry->d_namlen or strlen(entry->d_name).
Addresses PR 40477 by Robert Millan.
2009-01-26 17:32:41 +00:00
christos b9525db03f PR/40480: George Abdelmalik: Don't redefine _FORTIFY_SOURCE if it is already
defined.
2009-01-26 15:09:56 +00:00
drochner 92b9f070f2 remove stale getdevmajor() declarations, fixes lint(1) warning
reported by Bernd Ernesti
2009-01-26 15:05:56 +00:00
njoly 122f627e90 Make msgsnd(2)/msgrcv(2) fail with EINVAL for messages larger than
SSIZE_MAX. Adjust man pages accordingly.

ok by christos.
2009-01-26 13:08:48 +00:00
mrg d1ab7d6b0d put back the atf libraries in here, but find them in external.
fixes compat builds.


XXX: src/Makefile do-compat-external-lib not be necessary now.
2009-01-26 06:27:33 +00:00
lukem ee7c6ab326 sign-compare fixes 2009-01-26 04:01:14 +00:00
lukem db4cbbf2f6 sign-compare fix 2009-01-26 04:00:40 +00:00
skrll 14c5fc5d63 Sprinkle the "memory" clobber register so the fpsr manipulation actually
happens.

Fixes the ieeefp/except regresion test.
2009-01-25 16:44:41 +00:00
wiz 0aec71a9f5 Fix typo. 2009-01-24 13:00:03 +00:00
pooka d9c038d4fe Adjust for explicit errno parameter removal from rump syscalls 2009-01-23 19:36:01 +00:00
pooka 0d2e9d5345 Add #ifdef to disable pthread linkage requirement at compile-time. 2009-01-23 15:06:48 +00:00
tls 8d33a6da32 Cause getaddrinfo() without socktype specification to work correctly for
numeric addresses.  The documentation appears to say this works, and some
other systems support it -- more importantly, why should it _not_ work?  If
it does not, getaddrinfo() cannot be used as a general-purpose textual to
binary address conversion utility function; yet it is the only such function
we have in the system, since inet_pton() requires a priori knowledge of the
address family.

This change also causes getaddrinfo() with NULL hint (expressly documented
as working) to work properly for numeric addresses.
2009-01-23 00:48:57 +00:00
drochner ad965be01b cleanup after devmajor_t:
-since getdevmajor(3) is now binary compatible again with <=5.0
 there is no need to rename, I've just left a __getdevmajor50 symbol
 temporarily for those who track -current
-update manpage
2009-01-20 20:08:12 +00:00
drochner d767912be3 Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
2009-01-20 18:20:47 +00:00
agc 36f066e9f7 Use the new external framework for third party source. 2009-01-20 07:18:53 +00:00
rmind 909e7f4259 - Make thread-affinity and processor-set interfaces mutually exlusive.
- pset_assign: when CPU is assigned, migrate out all LWPs from it.
2009-01-20 01:57:35 +00:00
lukem 6bb2880ee0 fix -Wsign-compare issue 2009-01-19 09:56:06 +00:00
jmmv d1a11f39cd Fix build by making split return a size_t:
src/lib/libradius/radlib.c(1053): warning: conversion from 'unsigned long'
  to 'int' may lose accuracy [132]
2009-01-19 09:43:11 +00:00
lukem b5c21fe2ab fix -Wsign-compare issues 2009-01-19 07:21:59 +00:00
jmmv 0cdcf7cea6 Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it.  0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.
2009-01-19 07:08:14 +00:00
lukem 2e51a772b3 fix -Wsign-compare issue 2009-01-19 05:58:27 +00:00
tnozaki db74109901 PR lib/40411, nuke wctrans_init(). lazy initialization is not good idea.
statically initialized _DefaultRuneLocale.rl_wctrans field.
so we can re-const-ify _DefaultRuneLocale.

pkgsrc/shells/standalone-tcsh should be rebuild,
because it's staticaly linked binary.
2009-01-18 22:03:19 +00:00
he fddc3457b2 Change the use of formally undocumented features, which have now been
made to fail.  Specifically, change
.ifdef(SYMBOL) -> .ifdef SYMBOL or .if defined(SYMBOL),
and corresponding for .ifndef.

Also correct one error in lib/libm/Makefile (.ifdef (${MKCOMPLEX} != "no")?!?).
2009-01-18 20:42:11 +00:00
christos 503c6c0a79 try a different approach since allocating a new RuneLocale is complicated.
Don't make DefaultRuneLocale const, so that we can write to it, and undo
previous changes.
2009-01-18 19:53:11 +00:00
he 8279128fee Correct the syntax: .ifndef(RC4_SRCS) -> .if !defined(RC4_SRCS).
Could also have used .ifndef RC4_SRCS.
2009-01-18 16:52:18 +00:00
lukem c17aaf60c9 WARNS=4 2009-01-18 12:17:49 +00:00
lukem a06595c27b fix -Wsign-compare issues 2009-01-18 12:14:16 +00:00
lukem 53ff085f8b WARNS=4 2009-01-18 12:13:32 +00:00
lukem c5eb4ab601 fix -Wsign-compare issues 2009-01-18 11:56:51 +00:00
drochner fb535ac77e Make mktime(3) work with 64-bit time_t.
The problem is that the tm_year field of "struct tm" is just an "int"
(per POSIX), and thus time_t values >  2^31*60*60*24*365 cannot
be converted. This made mktime(3) fail even if no such large time values
were passed in by user code because the algorithm does a binary search
over the time_t range which fails if a probe value cannot be converted.
To fix this, limit the time_t range to be scanned to 55 bits (which
is a bit on the safe side, but still good until y570855533).
This is more a stopgap fix, the overflow should be checked for
at other places as well (eg localtime(3)), and there are some more
limitations in timezone parsing code.
2009-01-18 10:57:15 +00:00
christos 15d0878308 use a separate variable to copy the locale. 2009-01-17 17:56:01 +00:00
christos 099cac49ad fix debugging build. 2009-01-17 15:25:36 +00:00
christos 361e31839f make this compile [now that I am on a machine that can compile :-)] 2009-01-16 21:18:37 +00:00
christos 826ddf7ef5 PR/40411: Hisashi T Fujinaka: standalone-tcsh dumps core when tab completing
The new rune code abuses __UNCONST to lazily initialize _RuneLocale. If
that happens to be the _DefaultRuneLocale which is const, the program will
core-dump because it will attempt to write to read-only memory. Catch this
and clone a copy of the locale and return it. The reason we don't see
everything core-dumping is because our shared library code probably loads
the text segment COW so it works (Is there an mprotect missing somewhere?).
But on statically linked binaries this is not the case and we die.

XXX[1]: Vet the code so that we are sure that there is no more of that
        happening trying to get rid of much of the __UNCONST'ing.
XXX[2]: This needs to be fixed for 5.0 and all related fixes.
XXX[3]: There is one place in the code where _DefaultRuneLocale is treated
	specially, does the patch break things?
2009-01-16 21:12:11 +00:00
drochner 21a81eb749 update struct timeval 2009-01-16 10:52:07 +00:00
christos 584a4c6af9 don't use glue for semctl, the number of underscores makes this an intractable
problem :-) Use regular wrappers like we do with sigtimedwait.
2009-01-16 00:02:57 +00:00
christos 74070c3c8c fix the semctl glue build that worked before by chance by side effects of
building the the assembly stub as a normal stub. Just build it as a glue
stub.
2009-01-15 01:35:45 +00:00
pooka 2758ac8cf1 Update per rump_sys call __RENAME(). 2009-01-13 22:33:10 +00:00
christos 6343ca254d fix __sigtimedwait50 2009-01-13 01:50:04 +00:00
agc 8d4f251133 Reachover Makefile for libopenpgpsdk
XXX - still WARNS=1
2009-01-12 23:03:28 +00:00
christos 2d18fd40a7 - insert a space after the recognized string if it was an exact match
- initialize properly the string used for completion.
From Alex Bligh alex at alex dot org dot uk
- Make char constants consistent
2009-01-11 15:00:23 +00:00
christos 209f6eb5bd add another directory the cvs did not merge. 2009-01-11 03:56:22 +00:00
christos f943330f91 merge another directory that cvs missed. 2009-01-11 03:46:25 +00:00
christos 404fbe5fb9 cvs does not -j new directories, do it manually. 2009-01-11 03:41:28 +00:00
christos 46edb91e9f bump shared libraries. 2009-01-11 03:07:47 +00:00
christos 50728e7823 merge christos-time_t 2009-01-11 02:57:17 +00:00
christos 461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
lukem bbdbf3e294 fix some sign comparison warnings 2009-01-08 02:28:08 +00:00
lukem 5fcf39a9f8 Cast a value to time_t (not unsigned) when comparing to timespec tv_sec 2009-01-08 02:19:48 +00:00
lukem 4a94e73441 Change the second argument of getlogin_r() from int to size_t, per POSIX. 2009-01-06 11:16:46 +00:00
wiz bdd95bc725 Add missing newline. 2009-01-06 00:13:02 +00:00
pooka 5369f33800 Return of the Flag: There is no PROT_EXECUTE. 2009-01-05 22:11:48 +00:00
rmind 57babc4980 Manuals describing the interface of POSIX message queues.
Taken from The Open Group, with various modifications.
Thanks <wiz> for improvements!
2009-01-05 21:19:48 +00:00
tnozaki 38eee9115b add more item for major bump:
_ctype_ table in ctype.h and gen/ctype_.c has insufficient bitwidth.
2009-01-05 07:50:23 +00:00
tnozaki 2af58f1cce 1. reworking PR lib/40317:
libnbcompat already contains empty fparseln.lo
so previous fix doesn't work correctly.
i've just added broken fparseln check to configure script.

2. reworking cross build breakage under FreeBSD/MacOS X.
FreeBSD/MacOS X still have public /usr/include/runetype.h
derived from 4.4BSD-Lite.  so i renamed out private header from
src/lib/libc/locale/runetype.h to src/lib/libc/locale/runetype_local.h
to solve this problems.

3. fix build breakage when CITRUS=no was set.
2009-01-05 06:11:43 +00:00
dogcow c67ae0d68b define __UNCONST for OSes that don't have it when building tools/mklocale 2009-01-05 03:14:30 +00:00
dogcow 441204832d move nbtool_config.h include to top. 2009-01-05 03:10:02 +00:00
wiz a711e8e9e4 Fix HTML output. 2009-01-04 09:42:43 +00:00
dholland 6557571403 Rework the text to make it clearer; it was really pretty confusing before.
Add an example; note some bugs/shortcomings. Bump date.
2009-01-04 07:54:15 +00:00
dholland 8f5f9030b6 SEE ALSO getmode(3)/setmode(3).
Suggested in passing by Joerg a long time ago on tech-pkg, seems like
a good idea.
Bump date.
2009-01-04 07:21:01 +00:00
lukem a2c38ed82e Ensure fts_close() doesn't spuriously close fd 0,
by testing FTS_SYMFOLLOW in fts_flags instead of fts_options.
Fix provided by Ben Harris in PR 40319
2009-01-03 06:12:14 +00:00
tnozaki 52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +00:00
wiz 42fdda0454 Bump date for previous. 2008-12-31 14:19:51 +00:00
christos 4a65af23ac mention that these may fail with EPERM. From Anon Ymous 2008-12-31 13:57:54 +00:00
pooka e605194ace Nuke macros which haven't been used since the advent of RUMP_VOPs. 2008-12-31 00:35:00 +00:00
stacktic 69a3e4d4ea Closing file in ukfs_release 2008-12-30 10:31:22 +00:00
christos 62f7265ebd revert previous. It was meant for the branch 2008-12-29 15:08:03 +00:00
christos ab903bdde4 support 64 bit time_t 2008-12-28 23:20:03 +00:00
christos 2d378f1d33 fix for dev_t 64 bits. 2008-12-28 22:45:05 +00:00
christos 6c20e81ce2 adjust for time_t 64 2008-12-28 21:33:35 +00:00
christos 7bf2b3b453 tdev is unsigned 2008-12-28 19:49:26 +00:00
christos 6127c68e1c cast dev_t's to int32_t because XXX: sysctl can't change size. This should
be not a problem since tty's live in the low part of the dev range.
2008-12-28 19:46:47 +00:00
ad ebaaa8cf7a Some things to do on major bump. 2008-12-28 11:01:58 +00:00
ad 12c911ef99 Add more items for major bump. 2008-12-28 10:59:20 +00:00
wiz b52bc84da9 Sort errors. 2008-12-26 21:02:28 +00:00
christos 16338b1c19 document pw_getpwconf. 2008-12-26 00:49:28 +00:00
wiz 38d39e864c Fix deleto in previous. 2008-12-23 21:46:13 +00:00
christos 9cd6b6e766 fix argument order in example. 2008-12-23 20:53:31 +00:00
christos fa2088e532 PR/18150: John F. Woods: Print meaningful error messages on inconsistent/
corrupt entries.
2008-12-21 17:54:43 +00:00
christos a41cd06ba5 PR/9359: Chris Demetriou: Document fread/fwrite mixing behavior. 2008-12-19 20:20:48 +00:00
christos 4c237aa750 Wietse Wenema's tcpd-blacklist-patch:
ftp://ftp.porcupine.org/pub/security/tcpd-blacklist-patch

- If a host starts with a / treat it as a filename containing a list of hosts.
2008-12-18 20:16:52 +00:00
wiz 78f0ebffc8 Re-add LIBRARY section. 2008-12-17 14:05:23 +00:00
wiz f1c9faeb9d Fix some minor mdoclint complaints. 2008-12-17 10:39:22 +00:00
christos 930983f9c3 use the bitmask_snprintf info which is more complete, and adjust it for
reality.
2008-12-16 23:19:16 +00:00
christos 20ffd1f752 fix return values for snprintf and vsnprintf. 2008-12-16 23:09:19 +00:00
christos c057bf8352 move snprintb to common 2008-12-16 22:34:40 +00:00
dsl e8915d2e05 Actually we need 'long int' to avoif a stupid 'truncating long to int'
warning.
2008-12-13 11:53:25 +00:00
dsl abd4a7f6d0 Change type of 'n' to 'int' so that it can be printed with %d.
The domain of the value is [-1..sizeof (int)] so a type of 'int' is fine.
2008-12-13 11:48:46 +00:00
christos 47b2a9219c document svc_getrpccaller 2008-12-12 23:22:26 +00:00
pooka a75f7c7343 Close write-end of daemonpipe in reader to get EOF if the writer
goes awol.
2008-12-12 19:56:12 +00:00
pooka 710e4c1a30 Defer ukfs (and hence rump) init until after detaching from console.
Otherwise forking when detaching will nuke our potential precious
threads.
2008-12-12 19:50:27 +00:00
pooka 33a0d776c1 Add puffs_cancel(), which allows to back down after puffs_init()
and before puffs_mount().
(this should actually be integrated with puffs_exit(), but that
routine is currently so non-sensible that I didn't bother now)
2008-12-12 19:45:16 +00:00
pooka 41f31dac6d add:
puffs_setspecific(pu, private)
	Can be used to set the specific data after the call to
	puffs_init().
2008-12-12 18:59:53 +00:00
wiz 5d7029bf64 Sort sections, sort SEE ALSO, remove trailing whitespace. 2008-12-11 09:07:46 +00:00
yamt ad61a2c71e move a description of return values into the RETURN VALUES section. 2008-12-11 04:30:57 +00:00
christos c900253da8 Martin says:
I had added a getaddrinfo()/getnameinfo() lookup to obtain an FQDN even
if gethostname() would return only the local part of the hostname.
I did not really consider that many systems do not have FQDNs and more
importantly that the calls introduce a high latency (timeout) when DNS
is not available.

On the other hand I do not (or no longer) think that using a non-FQDN is
such a big problem here. Those users/admins that do collect logs from
different hosts and want an FQDN should notice the problem quickly
enough and can easily fix it by correctly setting their hostname.
2008-12-10 15:20:04 +00:00
wiz edd8540874 New sentence, new line. Bump date for fdopendir. 2008-12-05 13:26:41 +00:00
ad 117c67b2f2 Add fdopendir(), from Solaris/Linux. 2008-12-05 13:08:53 +00:00
reed c2af20cf20 Add missing copyright and license.
This license is identical to that on the pam_krb5.c file minus the
other copyrights and the unrelated contract attribution.

From email communication with the author, Frank Cusack.
2008-12-02 22:52:06 +00:00
christos c450dd749d correct EBADF bogus comment. 2008-12-02 19:20:06 +00:00
cegger 83776b8eea check error case for kvm_getlwps or SIGSEGV occurs due to dereferecing a NULL pointer.
return NULL if there are no threads or proceed further through all loops.
Fixes PR 40004. Ok rmind@
2008-11-29 18:24:58 +00:00
jnemeth b9c73aff7d PR/40060 - Bug Hunting -- grammar fix 2008-11-29 06:00:45 +00:00
wiz 0481201a86 Sort errors. 2008-11-28 22:33:02 +00:00
pooka 5ade66e9b9 make the synopsis slightly less overpromising:
"attempt to recover a deleted file" => "remove whiteout"
2008-11-28 09:48:58 +00:00
dholland d5870e1cc6 Clarify that the "amaster" argument of forkpty() is only defined upon
return in the parent process, but the tty name is available to both
the parent and child. Bump date.
2008-11-28 07:17:17 +00:00
pooka 0b7df1d2e2 LIBDPLIBS on librumpvfs 2008-11-27 16:14:46 +00:00
wiz 11655fdf0f Fix two mdoclint warnings. 2008-11-26 19:05:55 +00:00
pooka a947a86fee support:
a) readdir cookies and eofflag
b) file handle routines.

   File handle routines are REALLY ugly and are not stable, i.e.
   the file handle will be lost if the file server goes byebye.
   They probably should be redone to not use getfh(), but for nullfs
   I wanted to make them the same as when the file system is accessed
   without the null layer.  Well, turns out it doesn't pass anyway
   since the kernel adds the fsid tags for fhandle_t.  Anyway, it's
   useful for some limited hacking purposes, so I'll commit this
   since it works .. kinda.
2008-11-26 14:02:23 +00:00
pooka e61394a6b8 i'm almost certain that puffs_cooie_t is supposed to be puffs_cookie_t 2008-11-25 11:49:08 +00:00
pooka 24bc96c743 Add BUGS section which notes that dynamic linker features in dealing
with link sets prevent from including more than one file system on
the link line and that the rest must be loaded dynamically at runtime.
2008-11-25 06:44:19 +00:00
martin 10b0d64e49 Remove __LIBC12_SOURCE__ 2008-11-24 16:10:27 +00:00
pooka d0303b2f28 Return ENODEV instead of ENOENT if the file system is not available. 2008-11-24 05:54:39 +00:00
pooka 945e7d735e rump_vfs_load -> rump_module_load 2008-11-21 06:10:15 +00:00
pooka 9c035d43d1 dlerror() resets the error message, so save it since we want to
access it twice.
2008-11-21 06:07:23 +00:00
matt 0ad7281825 Add new ptree (Patricia / RADIX tree) implementation to NetBSD. 2008-11-20 23:50:08 +00:00
pooka e10fef6cd2 Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code.  File system rumps explicitly need
to include rumpvfs from now on.
2008-11-19 14:10:48 +00:00
wiz c099cd9e1e Remove trailing whitespace. 2008-11-17 15:21:43 +00:00
wiz 6c6bf72afb Bump date for new section. 2008-11-17 15:21:22 +00:00
ahoka 6afdea3900 SEE ALSO
efun(3)
2008-11-17 14:59:57 +00:00
pooka 57f1031888 Use RUMP_VOP instead of prehistoric rump_vp. 2008-11-17 13:22:15 +00:00
christos e1e5353bbe PR/39347: floating and long double conversions were ifdef'ed out because
we did not have wcstold and wcstof back then. But this was done incorrectly
because we did not move the argument vector. Enable them now.
2008-11-16 16:26:01 +00:00
ad c6555ead19 Our qsort() is inappropriate for kernel use because it makes recursive
calls. Replace it with a kheapsort() function in kernel. Pointed out
by tron@.
2008-11-16 16:15:58 +00:00
ad e5c4df967a Make qsort() available in libkern. 2008-11-16 15:01:26 +00:00
christos 9ebdd72925 Nobody tested this? Initialize wcio for wide char i/o.
NB: Pullup to 5.0.
2008-11-16 03:16:00 +00:00
ad 18e73e1ebe Replace semid_t with intptr_t. No function change. This is a libc/kernel
private interface and so the name change should not affect any third
party code.
2008-11-14 15:49:20 +00:00
pooka 02d2ab30dc Detach from console by default unless P2K_DEBUG is set in the
environment.  We can't pass this as a flag, since rump_foo should
remain usage-compatible with mount_foo and therefore can't accept
puffs flags as command line parameters.
2008-11-14 13:43:20 +00:00
pooka 462f2a64a0 note that puffs_daemon() must be called *before* puffs_mount() 2008-11-14 13:27:24 +00:00
pooka e489c3824a fix typographical snafu 2008-11-14 13:10:13 +00:00
pooka b2fa04c6b2 Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.
2008-11-12 13:17:27 +00:00
pooka 0f81d3e0a2 reference rump_nfs 2008-11-12 06:32:08 +00:00
reed a4bfac4a14 Reference secmodel_securelevel(9) manual page. 2008-11-11 00:09:36 +00:00
pooka f455f7ee91 * use advisory file locks to avoid multiple mounts on the same device
(multiple rdonly mounts are still allowed)
* shuffle some assignments to avoid leaking resources in error branches
2008-11-07 00:18:33 +00:00
christos 125a3d7f1f fix diagassert arg. 2008-11-06 19:59:42 +00:00
tsutsui d13d5beaba Comment out nonexistent crash(8) xref. 2008-11-06 16:23:56 +00:00
nakayama 531d468612 Redo rev.1.13. We must refer to CURBRK via GOT in case of PIC. 2008-11-06 13:42:55 +00:00
christos 9f012c8aed don't forget to use neg. 2008-11-04 21:08:33 +00:00
christos 2844d6eadc we don't need * 2008-11-04 20:17:56 +00:00
christos b4be570207 Our new syslogd seems to want to depend on %z which is a gnu extension.
- While here, add all the rest of gnu extensions: %g, %G, %u.
- Fix long standing bug where %Z would not work because "private.h" was
  not included. (Hi Brian!)
2008-11-04 18:37:28 +00:00
cube 26d23ca1c6 Invert the test for the return value of getaddrinfo(), because that's what
is actually meant there, to do nothing when the name doesn't resolve to an
address.
2008-11-03 23:21:19 +00:00
wiz 0927a61656 Add missing word. 2008-11-01 14:04:52 +00:00
wiz 9a02e1d47d New sentence, new line. Mark up NULL with Dv. 2008-11-01 13:54:01 +00:00
christos 035a506da3 use the right variable in memcpy. 2008-11-01 00:54:47 +00:00
snj c65dcf2d06 Tweak some wording. 2008-10-31 18:07:18 +00:00
christos 8cda436bf2 fix compile error. 2008-10-31 17:49:48 +00:00
christos e34e014482 make __findenv return the offset for the new entry to be inserted when
the string is not found, to avoid an additional scan of the environ array
in setenv.
2008-10-31 17:46:04 +00:00
christos 1c6aec2060 Import syslogd SoC project by Martin Schuette:
- new syslog protocol api syslogp(3) that supports structured data
	  and draft-rfc timestamps
	- reliable tcp connections with queueing
	- encrypted connections
2008-10-31 16:12:18 +00:00
rmind a2d73f8239 Sync the man page with recent addition of few wrappers. 2008-10-31 11:55:40 +00:00
rmind 9b24696c04 Add sched_getaffinity_np() and sched_setaffinity_np() wrappers, mainly
for compatibility purposes.
2008-10-31 00:29:19 +00:00
apb 8a9d9ec446 s/AWK/TOOL_AWK/. Problem reported by Greg Oster. 2008-10-27 20:56:28 +00:00
wiz 695738de0e Sort ERRORS, use more markup, bump date for previous.
Remove trailing whitespace.
2008-10-27 16:49:10 +00:00
erh 8886757e7e Document the fact that shmget can return EINVAL.
Refer the reader over to sysctl for information about changing shm limits.
2008-10-27 15:42:04 +00:00
mrg fc9a1e8a64 use LIBDPLIBS+= not =. 2008-10-27 07:57:41 +00:00
mrg 6b767a6846 don't set LIBDPLIBS in libpam/modules/Makefile - it is not necessary
and it interferes with the compat lib build.  don't use LIB_ROOT_DIR.
2008-10-27 07:48:27 +00:00
mrg 861b38e0f4 add to LIBDPLIBS, not assign to it. 2008-10-27 07:26:55 +00:00
uwe 55247fa322 Fix typo in comment. 2008-10-27 00:52:07 +00:00
uwe 47cd7b4502 Pull down revision 1.3.6.1 by skrll@ (adapted to include reg::r_gbr).
struct mcontext != struct reg on sh3.

    Fix PTHREAD_UCONTEXT_TO_REG / PTHREAD_REG_TO_UCONTEXT to deal with this.
2008-10-27 00:47:22 +00:00
mrg 48ca1b1f37 XXX: fix compat/libpam static build -- find the right libc via _CURDIR
XXX: not .CURDIR, if _CURDIR exists.
2008-10-26 07:44:12 +00:00
mrg 2f0d0e12bf define and use LIBCDIR in terms of .CURDIR. fixes compat/lib/libc build. 2008-10-26 07:43:07 +00:00
mrg 5019a04ee2 use libcincludes.mk 2008-10-26 07:42:09 +00:00
mrg 45ce2feab7 use libc/libcincludes.mk. 2008-10-26 07:28:49 +00:00
mrg 7bee40559f put the code to find the libc include directories and define ARCHSUBDIR
and ARCHDIR in a common place.

this will be used by libc, libposix and librt.
2008-10-26 07:28:06 +00:00
mrg 3912b43d37 if LD32DIR is defined, install into /usr/lib/${LD32DIR}/i18n. 2008-10-26 07:06:07 +00:00
mrg f2a73868d6 build libi386 / libsparc in 32 bit mode on amd64 / sparc64, respectively. 2008-10-26 07:05:33 +00:00
mrg c2a6935df8 look for <i386/vm86.h> 2008-10-26 07:05:00 +00:00
mrg fb8d95d826 check for ${PTHREAD_MACHINE_ARCH} before ${MACHINE_ARCH} or ${MACHINE_CPU} 2008-10-26 00:00:27 +00:00
mrg 18c9521083 look for ${KVM_MACHINE_ARCH} before ${MACHINE_ARCH} and ${MACHINE_CPU} 2008-10-25 23:59:42 +00:00
mrg 4e9d08ba3d use <i386/foo.h> in a few places. 2008-10-25 23:59:06 +00:00
mrg 3e7eaeda40 change MACHINE_CPU occurances to CRYPTO_MACHINE_CPU, defaulting the
latter to the former if not already defined.
2008-10-25 23:58:35 +00:00
mrg ed79731b5f use <sparc/pmap.h> and <sparc/kcore.h> so this builds properly with
a 64 bit "cc -m32".
2008-10-25 19:09:10 +00:00
mrg 15378e3afa remove an unncessary .PATH element that doesn't exist (and never did?) 2008-10-25 19:07:26 +00:00
yamt 639a0868fd remove ; after __weak_alias() 2008-10-25 14:14:11 +00:00
wiz 4e1bb8f91c Fix pasto in previous. 2008-10-24 15:40:21 +00:00
christos 777e210a29 PR/39796: Robert Elz: Document that sigpending can return EFAULT since it calls
copyout.
2008-10-24 15:14:48 +00:00
dogcow 990e83b99d appease lint: warning: assignment in conditional context [159] 2008-10-22 02:17:29 +00:00
christos b602f406f7 - vsyslog_r only closes if it opened
- maintain opened properly
- preserve the tag (from OpenBSD)
2008-10-21 21:00:31 +00:00
apb debdeec730 The tools/compat versions of mkstemp() and mkdtemp() need to call the
internal function that's usually named "__gettemp".  However in a cross
build, "__gettemp" is in a namespace reserved for the host system, so we
can't use that.  Use "__nbcompat_gettemp" instead, following the example
of several other functions or macros in tools/compat.  Previously, this
was handled by using the name "gettemp", but that conflicts with the
local gettemp() function in dist/nawk.
2008-10-20 10:28:38 +00:00
wiz e22cd6ffa8 Sort errors, use .Nx, avoid man markup, whitespace and punctuation nits. 2008-10-20 07:03:58 +00:00
snj 682ea0e2b3 s/explicitely/explicitly/ 2008-10-19 21:27:46 +00:00
christos 8a0817a3ac PR/39770: Robert Elz: mount(2) doc enhancements 2008-10-19 20:54:22 +00:00
wiz 06f6396fc6 Improve wording. Use Bd -literal for code sample. 2008-10-19 16:54:19 +00:00
rmind 43819fe5ab Do not recommend to mix affinity(3) with pset(3). 2008-10-18 03:37:41 +00:00
rmind 53117b532b - Recommend poll(2) instead of select(2).
- Update example code a little bit.
2008-10-18 03:30:19 +00:00
pooka 46b5f75de9 build librumpnet 2008-10-16 09:44:12 +00:00
ad 6f7d0483cf pthread_attr_getschedparam: allow without preceding setparam on the
attr structure.
2008-10-10 09:13:20 +00:00
christos b30f2079e1 remove "limits" where it is not appropriate. 2008-10-09 14:40:11 +00:00
ad 8572b64ab0 Clarifications for PTHREAD_DIAGASSERT. 2008-10-08 10:11:11 +00:00
ad beaa63b638 Disable diagnostic assertions by default and just return error codes like
other systems. Allows poorly written applications to appear working. If you
are developing pthread apps please turn it on manually by setting the
environment variable.
2008-10-08 10:03:28 +00:00
ad fdc51b51d9 Adjust the compat stuff slightly so that the changes are mostly self
contained (Makefile, pthread_compat.c).
2008-10-08 08:27:07 +00:00