Commit Graph

13475 Commits

Author SHA1 Message Date
wiz 4dfd7ed6ff No Pp needed before El. 2009-05-13 22:42:31 +00:00
wiz 1e9633cfe4 Merge two descriptions for same error code. 2009-05-13 12:56:05 +00:00
wiz 504d66e756 Sort errors. Avoid marking up punctuation. 2009-05-13 12:51:13 +00:00
pgoyette 28469fc250 Implement snprintb_m(3) to provide multi-line bit/bit-field decode.
Discussed on tech-kern.
2009-05-13 02:50:31 +00:00
plunky 39aa7ec964 remove libsdp as improved functionality has been enabled in libbluetooth. 2009-05-12 18:07:54 +00:00
wiz 7a8032c5e8 New sentence, new line. Sort sections. 2009-05-12 10:32:45 +00:00
plunky dfbf818a22 Add in the new Service Discovery Protocol API as announced previously in
http://mail-index.netbsd.org/tech-userlevel/2009/02/27/msg001764.html

  in lib/libbluetooth, add new SDP functions and bump minor version
  replace usr.sbin/sdpd with new version
  install sdp.h and sdp.3 from lib/libbluetooth

(Don't remove libsdp yet since some programs still refer to it)
2009-05-12 10:05:06 +00:00
wiz 35cf287cb8 Punctuation nit. 2009-05-12 08:14:07 +00:00
christos b627b61f7f restore binary compatibility by providing new prompt functions that take
an extra literal character.
2009-05-11 18:33:30 +00:00
christos c0990c9457 unhook libmagic 2009-05-08 17:47:22 +00:00
christos df369aba80 Change Kmax so we allocate enough freelist entries to handle large field
numbers. Reported by Maksymilian Arciemowicz
2009-05-07 20:31:44 +00:00
pgoyette 5fae2745d1 Update type of argument 4 from u_quad_t to uint64_t to match the actual
implementation.
2009-05-05 13:12:25 +00:00
wiz efabe55512 Sort sections. 2009-05-04 20:43:48 +00:00
wiz 83412be2c1 Sort SEE ALSO. 2009-05-04 19:15:36 +00:00
pooka 55a30cc8cc make it possible to disable puffs caches 2009-05-03 20:26:42 +00:00
pooka 1e9fe794b0 rump_cred_destroy -> rump_cred_put 2009-05-03 17:10:20 +00:00
pooka 6e63908b9f Since rump_module_load() doesn't actually load the module, change
the name to rump_module_init().  Also, adjust the signature to take
a direct pointer to modinfo and allow passing of props.  Finally,
provide rump_module_fini().
2009-05-02 15:20:08 +00:00
wiz 3ae928cec9 Improve formatting and punctuation for "NUL-terminate". 2009-05-02 09:37:32 +00:00
wiz 1de194650d Sort sections. 2009-05-02 09:31:08 +00:00
wiz f6d35c037f Remove duplicate entry. 2009-05-02 09:31:01 +00:00
pooka 45ef580f17 Merge librumpfs_ufs into librumpfs_ffs. This reflects what happened
with the ffs kernel module and follows the trend of retiring ufs.
It also allows to get rid of a special case kludge in runtime module
loading, since ufs was not really a module.  librumpfs_ufs is now
obsoleted and ffs consumers should be linked solely against
librumpfs_ffs.
2009-05-02 01:15:52 +00:00
wiz 15dfd8155b Drop trailing whitespace. 2009-05-01 21:34:45 +00:00
ginsbach 8f7e60d3bc Extend %z to support all RFC-2822 timezone formats. 2009-05-01 20:15:05 +00:00
perry be11851995 Add versions of stpcpy(3), stpncpy(3), strnlen(3), all from FreeBSD.
These are defined in the latest POSIX

Also make related updates to documentation, mostly from FreeBSD,
though I cleaned a few other things up along the way.

Bump shlib_version.

We are still missing strcoll_l, strerror_l, strsignal, strxfrm_l to be
POSIX conformant.
2009-05-01 17:27:01 +00:00
perry 591534100f ANSI function prototypes 2009-05-01 00:28:17 +00:00
perry b34e9d9fea de-__P 2009-05-01 00:20:08 +00:00
wiz 65b128a600 Use Xr for strtok_r reference. Remove trailing whitespace. 2009-04-28 07:51:59 +00:00
reed f3f3915d98 Add some mdoc macros and spell out an abbreviation.
(I shared some of my fixes upstream a few days ago.)
2009-04-28 03:11:45 +00:00
dyoung 46db29bcf1 Bring getifaddrs(3) behavior in line with the documentation: the
ifa_data member of every AF_LINK struct ifaddrs points at the
corresponding struct if_data.  In ifconfig(8), do not try to suppress
duplicate AF_LINK ifaddrs by checking for a NULL ifa_data.

Don't copy out two AF_LINK struct ifaddrs for each active link-layer
address. getifaddrs(3) used to copy out one ifaddrs for the kernel's
RTM_IFINFO message, and one more for the kernel's RTM_NEWADDR message.
I suppress the first duplicate with a highly conservative change that
wastes a little bit of ifaddrs storage.  The storage is not leaked.
2009-04-27 20:10:49 +00:00
pooka 28e32e3408 Provide a stateful mode for readdir/read/write. Using them gives
a measurable boost to some fs-utils commands.
2009-04-26 22:23:01 +00:00
christos 3c2585b945 correct cast to size_t. 2009-04-23 22:09:23 +00:00
agc 9c3b1325df Cast the arg to an unsigned value to let this compile 2009-04-23 03:49:39 +00:00
lukem b129d71a05 Fix -Wcast-qual issue 2009-04-23 01:39:47 +00:00
njoly 41f89f9e08 Include string.h for memset prototype. 2009-04-22 21:52:59 +00:00
christos 0f03f83ae4 Avoid information leaks by zeroing memory, from FreeBSD (we had done some
already)
2009-04-22 18:44:06 +00:00
wiz 48f171ac9f Mark up NULL. New sentence, new line. Bump date for previous. 2009-04-22 07:26:52 +00:00
dyoung c378e7997c For non-AF_LINK ifaddrs, ifa_data is NULL. AFAICT, this has always been
so.  Say so in the documentation.
2009-04-21 23:27:09 +00:00
joerg c4cbdd8e8a Convert to mdoc markup. 2009-04-21 14:46:02 +00:00
christos 2cca8c559f Bring back binary compatibility with the previous version of the resolver.
There was no room to allocate 16 bytes for _rnd in the struct in the _LP64
case, so we dynamically allocate now. Also put the _rnd field last, so that
we are bitwise compatible too. Now of course we've run out of space, so
next time will need to perform more evil tricks to fit.
2009-04-20 14:42:12 +00:00
wiz 51004b901f Remove duplicate 'the' found by Jukka Salmi. 2009-04-20 08:37:22 +00:00
christos 0852251407 PR/41250: David H. Gutteridge: librefuse fuse_opt.h header doesn't accommodate
C++ compilation
2009-04-19 22:25:29 +00:00
mrg fc2793ab5b add some code to cope with dev.db's that have 32 bit time_t's in them.
shouldn't be relevant very much as dev.db should be re-created at boot,
but it helped me at least twice so far...
2009-04-19 10:19:26 +00:00
tsutsui 0d20c5ab69 Resurrect accidentally removed libiscsi, which is not provided by ISC. 2009-04-18 16:31:30 +00:00
christos bda2b43696 remove old bind. 2009-04-18 13:02:27 +00:00
christos b203bfe74f PR/41230: -current: sh(1) endlessly looping in interactive
Fix proposed from Matthew Mondor
2009-04-16 19:39:37 +00:00
wiz 8b5179c21c Add CAVEATS section:
Due to limitations in the current pthread implementation, makecontext(3)
and sigaltstack(2) should not be used in programs which link against
libpthread (whether threads are used or not).

Wording from drochner@ and ad@

Bump date for man pages.

Add note in libpthread/README so it's not forgotten to update the man
pages when the problem is fixed.
2009-04-16 18:37:29 +00:00
christos 1408cbc26a we are not guaranteed that the ext pointer is going to be null at this point
so don't attempt to free.
2009-04-16 14:56:51 +00:00
christos 185e0d409f External stuff does not belong here. It is handled by external/lib when
descending to external from the top level. At least this is the theory
as I understand it.
2009-04-14 17:49:45 +00:00
christos 50ce2a6bdf fix lint issues and actual bugs lint found (missing break statements) 2009-04-12 19:43:37 +00:00
christos 62b7074a71 unhook bind libraries 2009-04-12 17:09:46 +00:00
christos 59a755a40f merge libbind and bump. 2009-04-12 17:07:16 +00:00
christos c6497e5b5f libc portion of libbind from external/bsd/libbind 2009-04-12 16:35:44 +00:00
lukem 83f6c8b3a4 fix -Wcast-qual issue 2009-04-12 14:20:19 +00:00
wiz 55a1b57943 Drop trailing whitespace. 2009-04-11 22:17:52 +00:00
christos 497a527565 make this work properly, by moving to the end of the buffer before starting
the search.
remove clauses 3 + 4.
2009-04-11 21:42:16 +00:00
joerg dab0ac3098 Don't use .Xo/.Xc to work around ancient macro argument limit in groff. 2009-04-11 20:53:15 +00:00
joerg 22ce33e2aa Don't use .Xo/.Xc to avoid ancient macro argument limit. 2009-04-11 20:48:26 +00:00
joerg 59ba3c43a4 -width needs an argument, so provide one. 2009-04-11 20:39:15 +00:00
joerg 9a790c1d7e Add missing .Re. 2009-04-11 20:14:35 +00:00
joerg 33c9c1889e Use semantic markup. 2009-04-11 17:26:32 +00:00
joerg 8feb8b89b7 Remove redundant .Pp. 2009-04-11 17:10:57 +00:00
wiz 0f4e9153b3 Use Aq instead of \*[Lt]...\*[Gt]. 2009-04-11 16:59:05 +00:00
wiz 73bfbb6953 Improve markup. 2009-04-11 16:58:21 +00:00
wiz 25b7d5a452 New sentence, new line.
This page could use more markup.
2009-04-11 16:55:04 +00:00
wiz 7d9f3abb75 Avoid duplicate .Pp. 2009-04-11 16:51:39 +00:00
wiz c32974546d Remove trailing whitespace. 2009-04-11 16:51:28 +00:00
wiz 332088ae2e New sentence, new line. 2009-04-11 16:48:53 +00:00
joerg 6a85fc7cdf Use .Bl -ohang instead of physical markup. 2009-04-11 16:44:01 +00:00
joerg 868fe66e65 Add missing quotes. 2009-04-11 16:29:09 +00:00
joerg 71c479831e Fix markup. 2009-04-11 16:13:49 +00:00
joerg 3d2415a28f Fix markup. 2009-04-11 16:03:29 +00:00
joerg aa21536cc0 Remove .IP, it doesn't change output. 2009-04-11 15:55:28 +00:00
joerg d749557c31 Fix markup. 2009-04-11 15:51:44 +00:00
joerg 0cc93fa086 Use semantic markup. 2009-04-11 15:44:42 +00:00
joerg e112b60607 Fix markup. 2009-04-11 15:37:12 +00:00
joerg 326820b20c Fix missing quote. 2009-04-11 15:36:22 +00:00
joerg d3c6cf0458 .\" are comments, not ./" 2009-04-11 15:35:15 +00:00
joerg 746b955e9e Fix markup. 2009-04-11 15:33:27 +00:00
joerg 592c0f8761 Remove reundant quote. 2009-04-11 15:32:03 +00:00
joerg 79c74bd3c8 Fix markup. 2009-04-11 15:30:49 +00:00
joerg c4d2456ed9 Improve markup. 2009-04-11 15:29:50 +00:00
wiz 24e269dafa Split Nm over two lines. 2009-04-10 23:24:35 +00:00
christos 5207347451 Add a special lint stub for __sigaction14 which broke when we switched
to sigaction_sigtramp.
2009-04-10 23:14:58 +00:00
christos d4bf2b400d take the opportunity of the glob_pattern_p and add memrchr. 2009-04-10 23:14:07 +00:00
christos 3cf907e2b2 add memrchr 2009-04-10 23:13:38 +00:00
ad 4caa909fff softdep is gone 2009-04-10 22:26:10 +00:00
joerg 65a94a80fd Fix markup 2009-04-09 00:06:44 +00:00
joerg 58ad7418e8 No .br after .Sh. 2009-04-09 00:04:34 +00:00
christos 46db7d011d Fix off by one error reported by: Caleb Welton cwelton at greenplum dot com 2009-04-08 21:31:31 +00:00
wiz 68bd1a898e Link glob(3) to glob_pattern_p(3). 2009-04-08 19:28:48 +00:00
wiz c2c2c34d00 Add glob_pattern_p to NAME section. 2009-04-08 19:27:39 +00:00
christos 1ef020be5f add glob_pattern_p for glibc because cvs needs it and it is a huge mess
to compile in the gnu glob code.
2009-04-08 16:28:50 +00:00
pooka 9b83cef174 dump readdir offset 2009-04-06 20:47:17 +00:00
pooka afc5bcc1fa * dump op-specific return info before the generic one
* dump readdir response values
2009-04-06 14:45:11 +00:00
pooka 74e11245a1 MNT_SOFTDEP -> MNT_LOG in example. pointed out by mrg. 2009-04-06 12:03:50 +00:00
pooka efd7bfa323 release root vnode at unmount 2009-04-06 03:27:39 +00:00
christos 3b75967235 make fileio.h work with objdir. 2009-04-06 00:48:19 +00:00
christos b10afc8344 regen 2009-04-06 00:48:04 +00:00
christos 3b4cda0de7 PR/41138: Henning Petersen: Redundant declarations in rpc_internal.h
While here remove __P, KNF.
2009-04-04 15:31:08 +00:00
pooka c69ace3c05 ARGSUSED makes lindt a happy camper 2009-04-02 09:30:41 +00:00
cube 7ad46619fb Make keypad return an int instead of nothing, as the SUS and even
curses_input(3) [!] say it should.

OK'd jdc@.  ABI lawyers say this doesn't need major bump.
2009-04-01 20:59:15 +00:00
drochner f1c955a1b2 Fix the comparision function used by the red-black tree global thread list
implementation:
-don't return a difference, this can overflow
-don't try to substract typed pointers which don't belong to the
 same object, this gives undefined results

This fixes instabilities of programs which use more than a handful
of threads, eg spuriously failing pthread_join().
2009-04-01 10:13:24 +00:00
wiz 3a9e7e68ee Readability improvement. Whitespace nits. 2009-04-01 08:58:47 +00:00
christos 097860c04e cast to size_t to avoid sign / unsigned comparison warning. 2009-03-31 21:33:17 +00:00
christos e6ec3d065c implement RL_PROMPT_{START,END}_IGNORE 2009-03-31 17:53:03 +00:00
christos c8754a5b44 Implement literal prompt sequences. Now someone can implement
RL_PROMPT_START_LITERAL/RL_PROMPT_END_LITERAL :-)
2009-03-31 17:38:27 +00:00
ad 7de9da978b Revert the _lwp_ctl which is causing problem. I did test this locally,
I guess not well enough.
2009-03-30 21:32:51 +00:00
ad 5c670ea686 - Make the threadreg code use _lwp_setprivate() instead of MD hooks.
XXX This must not be enabled by default because the LWP private mechanism
  is reserved for TLS. It is provided only as a test/demo.

  XXX Since ucontext_t does not contain the thread private variable, for a
  short time after threads are created their thread specific data is unset.
  If a signal arrives during that time we are screwed.

- No longer need pthread__osrev.

- Rearrange _lwp_ctl() calls slightly.
2009-03-29 09:30:05 +00:00
mrg fcc023545e - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes.  this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.

- adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.

- add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)

- patch sh, and csh to notice RLIMIT_AS.  (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)

- patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.

- update irix, svr4, svr4_32, linux and osf1 emulations to support
this information.  (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)


this addresses PR 7897.  it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.

tested on i386 and sparc64, build tested on several other platforms.

thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)
2009-03-29 01:02:48 +00:00
drochner c4bdad9349 fix typo in sigevent defaults 2009-03-26 16:55:37 +00:00
pooka c67ff2932c Don't abort() if the kernel complains we supplied an invalid type
for lookup, as this most likely means that the fs has some bad file
on it.  Rather, just flag an error to the user and be happy.
2009-03-26 14:03:30 +00:00
uebayasi df37ad1752 Correct the order of arguments in EXAMPLE. Bump date. 2009-03-26 05:00:10 +00:00
wiz 01959862b8 Sort SEE ALSO. 2009-03-25 06:46:21 +00:00
dholland ecb714dc77 Update the note about sync returning before buffers are written: it is a
piece of historical behavior, not a current bug. Also, while here, add a
bit about disk write-back caches and point to dkctl/scsictl.
Bump date. (first time since 1993!)
2009-03-25 05:32:52 +00:00
drochner a75975a121 minor fix in description of an error condition 2009-03-24 22:34:54 +00:00
joerg 4b3b61f0a1 Remove/convert physical markup. 2009-03-23 14:11:27 +00:00
joerg cc420b6c04 ANSIfy. Remove conditionals around __RCSID. 2009-03-20 14:05:54 +00:00
joerg cc5989d71d ANSIfy. Remove conditional macros around __RCSID. 2009-03-20 13:56:57 +00:00
joerg c2d267f257 Remove redundant markup as .Bl does vertical spacing already. 2009-03-15 09:31:07 +00:00
joerg fd0a2075ae Fix markup. 2009-03-15 09:26:07 +00:00
joerg 854ee47087 Declare all columns. 2009-03-15 08:05:22 +00:00
joerg af1b54d7d6 Fix markup of cross reference. 2009-03-15 08:04:12 +00:00
joerg 6edb9354b8 ".The" is not a valid macro, fix up. 2009-03-15 08:02:02 +00:00
wiz 5c82067abe Remove USETBL, now that man page does not need tbl any longer. 2009-03-12 13:52:47 +00:00
joerg 9df66b68e0 Explicitly mark : as literal, use Pq. 2009-03-12 12:51:29 +00:00
joerg 441cf5a9bb Replace physical markup with .Bl -column. 2009-03-12 12:50:31 +00:00
joerg 5d4d55d864 Remove redundant physical markup. Don't workaround ancient macro argment
limit with .Xo/.Xc.
2009-03-12 12:47:49 +00:00
joerg 8c2253d6e8 Use .Bl -column instead of tbl(1) for the device mapping list.
OK jmcneill@
2009-03-12 12:33:46 +00:00
wiz 62fcccac72 Fix error in previous, found by joerg. 2009-03-12 10:18:37 +00:00
wiz 9f5b355274 Use comments instead of .ig (requested by joerg).
Sort errors while here.
2009-03-12 10:16:37 +00:00
wiz cf26bd22fc Do not mark up punctuation. 2009-03-11 16:26:35 +00:00
joerg d23280d626 Fix markup 2009-03-11 13:36:55 +00:00
joerg 0e5f0af7e9 Fix preamble 2009-03-11 13:35:21 +00:00
joerg ec28f83cbc Give the full prototype for all ctype functions/macros.
Remove redundant .br.
2009-03-11 12:57:03 +00:00
joerg 86a5a95669 Remove redundant .br. 2009-03-10 23:49:07 +00:00
joerg edc0d6c151 Fix prologue. 2009-03-10 23:37:01 +00:00
joerg fa91a1ac51 Use .An for author list. 2009-03-10 23:36:10 +00:00
joerg a7d7c3857f Remove redundant .IP. Remove use of .Xo/Xc to workaround ancient macro
argument limit.
2009-03-10 23:25:32 +00:00
joerg bfe775a869 Remove redundant .Pp 2009-03-10 23:14:40 +00:00
wiz 097d2fd1a6 -1 is not a defined value, it is just a value.
On the other hand, minuses need backslashes, otherwise they become hyphens.
2009-03-10 22:55:14 +00:00
joerg e85762f4cf Specify width for tag list 2009-03-10 21:00:47 +00:00
joerg ed0b365527 Use .An for the author instead of more physical .Bl. 2009-03-10 20:59:49 +00:00
christos ae87843e53 make el_gets set the count to -1 on error to distinguish between EOF and
error.
2009-03-10 20:46:15 +00:00
joerg bea55cbff7 Fix markup. 2009-03-10 13:23:39 +00:00
joerg 51fed7bd6c Add missing .Os. 2009-03-10 13:21:52 +00:00
joerg 9d4bdfc640 Use MAP_FAILED and NULL. 2009-03-10 13:15:40 +00:00
joerg 997634fe14 Fix preamble to match order set out by mdoc(7). Discussed with wiz. 2009-03-09 19:24:26 +00:00
tnozaki c7281b0c86 fix static linking setlocale(3) problem, reported by Aran Clauson
at current-users, thanks a lot!
2009-03-09 02:22:25 +00:00
christos ea6a01a6c4 consistency in password prompt setting code (and with ssh) 2009-03-08 19:38:03 +00:00
he 5da54c35c9 Based on input from Eduardo Horvath (eeh@), replace 'stmd' and 'lmd',
which apparently don't exist as instructions, with a sequence of
std / ld instructions.

Also remove the attempted include of ldstm.S which we don't have.
2009-03-08 18:57:12 +00:00
apb 6aae635b8d According to Alexander Bluhm in tech-toolchain on 31 Jan 2009, the way
these files use __weak_alias causes build failures under OpenBSD,
because the OpenBSD __weak_alias macro expects the caller to supply a
semicolon, but the NetBSD __weak_alias macro supplies its own semicolon.

Attempt to fix this by avoiding the use of __weak_alias during a tools
build.
2009-03-06 18:15:23 +00:00
msaitoh 16ed711ed3 fix typo (s/stucture/structure/) 2009-03-05 01:21:57 +00:00
explorer c29ff9b310 a better method to truncate at // marks 2009-03-03 16:22:33 +00:00
explorer 31c448a301 Check for NULL return from strdup() 2009-03-03 15:42:43 +00:00
explorer 7c353a46b6 Ignore the magic // commands in iconv_open(). This was discussed on current-users about a month ago, and ignoring the options was the best suggestion. 2009-03-03 14:39:06 +00:00
wiz 5d5e9aca03 Bump date for previous. 2009-03-03 07:37:48 +00:00
bad adb98feec9 Only add the ZZ capability for termcap entries that are larger than 1023
bytes.

This fixes the problem that enabling the titeInhibit Xresource of xterm has
no effect, because xterm exports a TERMCAP string without ti/te sequences
but doesn't remove the ZZ capability because it doesn't know about it and
termcap(3) ignores the stringe because of the ZZ.

Discussed with and OK'ed by blymn@.
2009-03-02 22:46:21 +00:00
christos c9216fc526 no more weak here. 2009-03-01 19:59:55 +00:00
pgoyette e3eb5958e0 Avoid possible integer overflow and subsequent collateral damage.
Received from OpenBSD via US-CERT as VU #590371.

Original OpenBSD commit log:

> revision 1.42
> date: 2009/02/11 13:24:05;  author: otto;  state: Exp; lines: +9 -1
> Avoid level going negative on deep (i mean really deep) dirs. Reported
> by Maksymilian Arciemowicz. ok kettenis@ millert@
2009-02-28 14:34:18 +00:00
wiz 4760c8b288 New sentence, new line. Use more markup. 2009-02-27 16:48:02 +00:00
pooka cd39a9d18a Remove mentions of MAP_COPY, it's not available and trying to use it
will result in compile failure.
2009-02-27 16:23:54 +00:00
msaitoh 150e7551ec fix mis-evaluating whether a char is digit or not. 2009-02-27 04:18:45 +00:00
ad 07a1846337 Remove pointless AUTHORS sections. The names are in the source and CVS
history along with everyone else who has contributed.
2009-02-25 20:50:16 +00:00
christos 2c266c8a4c version alphasort. 2009-02-24 18:41:40 +00:00
wiz 047cc3e3f6 Sort sections. 2009-02-23 08:27:13 +00:00
ad 59fcf21389 PR kern/26878 FFSv2 + softdep = livelock (no free ram)
PR kern/16942 panic with softdep and quotas
PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch
PR kern/26274 softdep panic: allocdirect_merge: ...
PR kern/26374 Long delay before non-root users can write to softdep partitions
PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem
PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption
PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk
PR kern/31981 stopping scsi disk can cause panic (softdep)
PR kern/32116 kernel panic in softdep (assertion failure)
PR kern/32532 softdep_trackbufs deadlock
PR kern/37191 softdep: locking against myself
PR kern/40474 Kernel panic after remounting raid root with softdep

Retire softdep, pass 2. As discussed and later formally announced on the
mailing lists.
2009-02-22 20:28:05 +00:00
christos 4534498c64 Get the ESCDELAY from the environment. 2009-02-22 20:05:48 +00:00
christos 58e089a802 Document curses environment variables. 2009-02-22 20:04:21 +00:00
dholland 45e10be5f4 Add __warn_references to getdirentries(), per PR 37730. Okayed by Christos
a while back.
2009-02-22 06:33:38 +00:00
martin c79c3eed1d Make NAN a compile time constant (with help from the compiler). Suggested
by krister. Fixes PR 40695.
Make references to the old construct (which we can't remove for binary
compatibility reasons) emit a linker warning.
2009-02-22 01:34:01 +00:00
christos 07e886c39c remove VEOF test. the tty is in cooked mode when we are not editing and
the tty driver does the check for us.
2009-02-21 23:35:10 +00:00
christos 954af9bb67 more size_t stuff. 2009-02-21 23:31:56 +00:00
christos 41907725b6 use the VEOF character from the terminal, instead of hard-coding 4. 2009-02-21 23:31:29 +00:00
christos eb7fe43718 fix sign comparison warning in debug build. 2009-02-21 17:20:01 +00:00
wiz 6c890a7983 Restore markup changes (probably accidentally) reverted in previous. 2009-02-21 07:58:58 +00:00
christos c51877c3f4 back out all prompt changes. they are not needed. 2009-02-21 00:05:23 +00:00
christos 47b68f7fe6 remove pointless static. 2009-02-20 16:44:06 +00:00
pooka 229bf1afc9 Remove the paragraph saying interfaces will change without warning.
Note that a stable version of puffs first appeared in NetBSD 5.0.
2009-02-20 14:26:56 +00:00
roy dbf72b0e6a printf("%zi\n", (ssize_t)-1); now correcly prints -1 on i386
ok: christos
2009-02-20 09:23:37 +00:00
cube 0931c75c7a Order of evaluation of arguments is undefined, so call va_arg() in an
explicit order.  Fixes a segfault with bc reported by Patrick Welche on
current-users.
2009-02-19 20:27:11 +00:00
christos e8bbf84cd0 reset and redraw on sigcont. From Anon Ymous. 2009-02-19 15:20:22 +00:00
wiz dfe59495b1 Fix wordo, use more markup. 2009-02-19 09:48:08 +00:00
christos f072c3f1a4 bump version for prompt arg. 2009-02-19 01:18:24 +00:00
christos 963ecab70c document extra argument. 2009-02-19 01:18:02 +00:00
christos ad57574aad strip .ident, if MKSTRIPIDENT. From Adam Ciarci 2009-02-18 15:21:52 +00:00
christos ec70918ed3 SA_RESTART for all signals but SIGINT. From Anon Ymous. 2009-02-18 15:04:40 +00:00
yamt ebdb9fb038 cache_cmp: fix comparison. 2009-02-18 13:08:22 +00:00
christos 62dbbc55bc allow for a prompt argument. 2009-02-17 21:34:26 +00:00
njoly 73766a83b8 Fix mdoc warning (missing .El directive). While here, use a single
list for multiple items.
2009-02-17 18:51:56 +00:00
lukem d52f6f4b6b fix -Wsign-compare issue (seen on arm), using similar technique
to ../bits64/softfloat-macros
2009-02-17 02:43:39 +00:00
christos 492ab0239b changes for openssh-5.1 2009-02-16 20:55:45 +00:00
lukem be48221f4f A variation on the sign-compare fix for these. 2009-02-16 10:40:45 +00:00
tron ae34e73bcb Fix -Wsign-compare issue (on NetBSD/sparc64). 2009-02-16 10:34:15 +00:00
tron ea68052342 fix -Wsign-compare issue (on sparc64) 2009-02-16 10:23:35 +00:00
lukem e95441b0ce fix -Wsign-compare issue (on alpha) 2009-02-16 05:22:00 +00:00
lukem b85aa1ea53 fix -Wsign-compare issue 2009-02-16 03:23:29 +00:00
lukem d66cb3da2c fix -Wsign-compare issue (on macppc) 2009-02-16 01:19:34 +00:00
christos 7939d24e16 fix sign compare issues. 2009-02-16 00:15:45 +00:00
christos 5c894153a3 pass lint on _LP64. 2009-02-15 21:55:23 +00:00
christos d25b6758ed in order for read() to return EINTR we need to use sigaction, not signal,
otherwise SA_RESTART is set.
2009-02-15 21:25:01 +00:00
christos 6ed9cd5e69 don't restart on EINTR, instead return NULL immediately. From Anon Ymous 2009-02-15 21:24:13 +00:00
abs 515e52158b Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
lukem c8c03b97dd fix -Wsign-compare issues (untested) 2009-02-14 06:26:42 +00:00
lukem 79362ba3ea avoid lint's whining on i386 2009-02-13 04:01:46 +00:00
uebayasi 30399256d4 Enable assertions only when _DIAGNOSTICS is defined, as other libc parts do. 2009-02-12 16:24:59 +00:00
sketch fc16547f5e More fixes for existing portability stuff. 2009-02-12 13:39:49 +00:00
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