Commit Graph

13896 Commits

Author SHA1 Message Date
joerg eff7f134e1 \\ -> \e 2010-04-05 21:29:47 +00:00
joerg 1ff41cb93a Fix escape sequences 2010-04-05 21:29:09 +00:00
joerg a3d484cd9e \\ -> \e 2010-04-05 21:25:01 +00:00
wiz 1bc7bb47a0 Sort ERRORS section. 2010-04-05 07:53:47 +00:00
wiz a59af7eb39 Fix date. 2010-04-05 07:44:28 +00:00
jruoho a6664c93e0 Mention the history of stat(2) and fix the history of open(2). 2010-04-03 15:48:52 +00:00
jruoho 22451322a2 The functions read(), wait(), and write() appeared already in v2 UNIX. 2010-04-03 15:43:46 +00:00
jruoho 7e0f77d0f3 Add a history section. From OpenBSD. 2010-04-03 15:42:22 +00:00
jruoho e029f37fb0 An unlink() appeared already in v2 UNIX. 2010-04-03 15:35:06 +00:00
jruoho 22c60c14ce Add some history. 2010-04-03 15:13:43 +00:00
jruoho c1b7f739cf Some interesting additions to the history section. From OpenBSD. 2010-04-03 14:49:31 +00:00
jruoho 086a18e995 Trivia: one .Pp after .El, speak about NULL instead of nil pointers, etc. 2010-04-03 14:40:34 +00:00
pooka 69381b7a05 fix a few pastos 2010-04-01 09:57:00 +00:00
mrg d5a3d97bc4 build s_frexp.c, s_ldexp.c and s_modf.c here for new platforms, since they
don't exist as compat functions in libc.

current list of new platforms: powerpc64.

from dennis.c.ferguson@gmail.com in PR#43042.  idea to not put compat
functions into new platforms from drochner@netbsd.
2010-03-29 06:59:42 +00:00
tnozaki 542176520a woops, fogot to include limits.h. 2010-03-28 18:19:52 +00:00
tnozaki 19f5aa7162 MB_LEN_MAX should moved from MD to MI. 2010-03-28 14:08:22 +00:00
tnozaki 186e12cc6b avoid mbrtowc/wcrtomb buffer overrun when CPUARCH=hppa and MB_CUR_MAX > 6.
it is not usual case(merely used such mutibyte locale, eg. ja_JP.ISO-2022-JP).

[background]
before merging minoura-xpg4dl branch(2001), we argued and decided to increase
MB_LEN_MAX 1 -> 32 all CPUARCH(*but* we forgot to change it MD to MI).

without knowing that NetBSD/hp700(mergeing -current 2002) incorrectly set
MB_LEN_MAX=6 (maybe this value taken from FreeBSD). but our setlocale(3)
assumes __mb_len_max_runtime as 32, so that mbrtowc/wcrtomb may overrun.

we have to increase hppa's MB_LEN_MAX upto 32, and change it MD to MI
next libc major bump(scheduled next release 6.0).
2010-03-28 14:05:09 +00:00
tnozaki 377cb4e4f9 1. {wctype,wctrans,mbstate}_t: switch MD to MI like other
libc implementation (such as *BSD and glibc2).

2. don't typedef void * wc{type,trans}_t, suggested by soda@-san.
   it may pass through compiler type check, it's harmful.
   so i introduce dummy struct __tag_wc{type,trans}_t(iconv_t already does).

no ABI change was made.
2010-03-27 22:14:09 +00:00
christos 533e2fe94f fix tpo. 2010-03-27 16:47:05 +00:00
tnozaki 5ad520e6d1 _locale_cache_t: change ldata and items to pointer for future binary compatibility. 2010-03-27 15:25:21 +00:00
explorer fc70b598c4 fix the pthread pt_lid in the fork callback function that runs in the child instead of a function that may be going away. KNFify 2010-03-25 01:15:00 +00:00
explorer 3f82e012db Correctly set pt_lid in the child, after a fork 2010-03-24 07:27:22 +00:00
drochner 1982972a07 catch up with the __RENAME of nanosleep(2) a while ago, otherwise we
get the compatibility function which assumes a different struct timespec
2010-03-23 20:35:44 +00:00
drochner ebfe3c0a28 remove some stray __weak_aliases, where the target functions were
__RENAMEd due to the time_t/dev_t type changes, which caused bogus
references to compat functions
now a libc built with BUILDCOLD is usable
2010-03-23 20:28:58 +00:00
christos f576147073 https://bugzilla.redhat.com/show_bug.cgi?id=575383
Handle EINTR properly.
2010-03-22 22:59:06 +00:00
joerg e382e1d38b Use .In instead of .Aq Pa and variantes for header files. 2010-03-22 22:00:37 +00:00
joerg f63b030c15 Use .In instead of .Ar Pa for header files. 2010-03-22 21:58:31 +00:00
joerg f70c7c0422 Use .In instead of .Ar Pa 2010-03-22 21:56:05 +00:00
joerg 3c70878e9a Use .In instead of .Ar Pa for headers. 2010-03-22 21:55:06 +00:00
joerg 1c3412fa2f Use .In for header files instead of .Ar Pa and variations. 2010-03-22 19:30:53 +00:00
jruoho 66475d5b9d Break the (too) big lead paragraph into three smaller ones. 2010-03-22 13:15:54 +00:00
pooka 1019474331 Wrap DOCALL and DOCALL_KLOCK in a new block (for easy adding of
debug prints before them.

XXX: can't use the standard do-while0 because lint doesn't like it.
2010-03-22 09:39:02 +00:00
mrg 3bdcb2e4b5 add a nop to provide enough space for the linker and long calls.
fixes link errors with 'cerror' and libposix.

from dennis.c.ferguson@gmail.com in PR#43010.
2010-03-22 02:17:23 +00:00
mrg 093c642fac replace kernel-only 'stmd' and 'lmd' operations in userland with equivalent
sequences of code, as done in eg, powerpc64/gen/_setjmp.S rev 1.2.

from dennis.c.ferguson@gmail.com in PR#43009.
2010-03-22 01:39:11 +00:00
mrg 4e60bef737 convert -idirafter to -isystem, as recommended by cgd in PR 11843.
most of the list in that PR were already done.
2010-03-22 01:29:29 +00:00
jruoho 67dcd1d1f0 Bump date for previous. 2010-03-21 20:38:20 +00:00
jruoho 341372abaa Note inttypes(3) also here. 2010-03-21 20:34:52 +00:00
jruoho 61f4a4ebdc Mention the recommended usage of inttypes(3) when applicable. 2010-03-21 19:55:19 +00:00
jruoho ab524958e3 Emphasize imaxint_t. 2010-03-21 13:39:51 +00:00
tnozaki 56bf19aaea fix byte order mark related bug introduced by previous commit,
reported by Sverre Froyen via current-user, thanks!
2010-03-20 18:15:32 +00:00
joerg ec66a10c91 Namespace protection for mi_vector_hash. 2010-03-19 18:11:30 +00:00
tnozaki 36a8b8869c 1. fix wrong byte order mark of utf-16, reported by NARUSE Yui -san.
patch provided by tshiozak@ -san.

2. don't eat 0xfeff/0xfffe if they don't appear at the first of bytestream.
noticed y tshiozak@ -san, patch provied by me.

thanks a lot.
2010-03-15 15:00:58 +00:00
mrg 19499f3f8d update all of these makefiles for the .so -> .pico change.
most of them are most harmless, but the libgcc parts are quite essential.
before this change, all the special rules for .pico files were not applied,
and exception handling wasn't enabled.  this caused c++ exceptions not to
work on sparc64.


this fixes the build of boost-headers (it was correctly calling exception
support broken!), which in turn makes all the things that depend upon it
to actually work again on sparc64.
2010-03-14 00:26:09 +00:00
uwe 6fc217346b Add memset to libkern on vax, moving existing memset.S to src/common.
While kernel source code is supposed to use <machine/macros.h> via
<sys/param.h> and pick an inline asm version from there, gcc itself
can generate direct calls to memset() for structure initialization, so
the symbol must be provided.

Fixes INSTALL kernel, for which -Os caused gcc to use memset() call to
initialize a struct in uvm_fault_internal().
2010-03-12 09:12:34 +00:00
pooka b405c8d23e mfs is a bit off in the sense that mount(2) doesn't return since
mfs uses the mounting process for the backing store memory.  I
guess mfs could be fixed to just reference the process vmspace and
let it return, but that would probably cause wait() to return for
other worms.  So it's easier to dance according to mfs's tune: if
mounting mfs, create a thread for extra execution context.
2010-03-08 12:38:14 +00:00
snj d4a6f9b098 These functions are going to first appear in 5.1, not 6.0. 2010-03-08 02:35:50 +00:00
snj b513aa9a56 Fix broken RCSID. 2010-03-08 01:05:20 +00:00
dholland d5343f0177 indentation/whitespace 2010-03-07 23:49:14 +00:00
dholland 97e205be98 remove stray semicolon 2010-03-07 23:45:22 +00:00
pooka 05e0f1dba9 Update to use newstyle rump_module interfaces. 2010-03-05 18:49:30 +00:00
pooka c2efc59235 During bootstrap, process all modinfos in a DSO in one go. Get
rid of dependency tricks, since they are no longer necessary.
2010-03-05 18:47:49 +00:00
enami 3df6d33667 Fix race condition on reallocation of huge category.
We need to remove the old region before mremap() since if it relesae the
old region, other thread may map it for the same huge category allocation
and insert it to the tree before we acquire a lock after mremap().

Fixes PR/42876.
2010-03-04 22:48:31 +00:00
roy 1f27d9b179 Convert padding for unknown capabilities as well. 2010-03-04 15:35:26 +00:00
roy 6855db0f30 Convert padding and give terminfo some default assumptions about termcap. 2010-03-04 15:16:39 +00:00
roy ca77b139e2 Abort an error. 2010-03-03 12:09:49 +00:00
roy 4b2d6106cf Use _ti_get_token instead of strsep when parsing termcap entries.
This allows us to handle \E\ as a valid sequence.
2010-03-02 14:11:11 +00:00
christos 4fc887422c - KNF
- fix hertz()
- fix error and warning messages
2010-03-01 19:52:38 +00:00
pooka 15a168ac89 Join today's manpage mania by updating this to reflect the current
situation a "little" better.
2010-03-01 17:20:44 +00:00
pooka 510a73e003 Introduce RUMP_COMPONENT. It behaves mostly like a simplified
module which is linked into the kernel and cannot be unloaded.
The main purpose is to get the proper constructors run and create
any /dev nodes necessary for said component.  Once more of the
kernel (e.g. networking stack and device drivers) are converted to
MODULE and devfs pops up from somewhere, rump components can be
retired.
2010-03-01 13:12:19 +00:00
roy c6aefd4d60 Escape , when converting to terminfo. 2010-03-01 11:02:31 +00:00
dholland 5c7d0d1fb6 compile.c needs sys/endian.h; PR 42875 from Henning Petersen. 2010-03-01 01:59:48 +00:00
pooka 6e4a9f9133 librumpuser is not _KERNEL code and does not belong in sys. Move
the source files from src/sys/rump/librump/rumpuser to src/lib/librumpuser
(from where it is already built).  Even so, keep rumpuser.h in
sys/rump/include for kernel source tree self-containment.
2010-02-26 18:54:20 +00:00
wiz 6d85ff35e1 '>' replacement for HTML output, be explicit about slash. 2010-02-26 07:03:49 +00:00
roy 007ba6f7e2 Implement captoinfo so that we can convert $TERMCAP into $TERMINFO.
We don't currently map %> %B %D.
That means no conversion for regent100, hz1500, act4, act5, mime terms.
2010-02-26 00:09:00 +00:00
roy 478e5b9ae4 If we only have a name then we flatten to an alias. 2010-02-25 23:44:02 +00:00
matt 7b012669b8 Adapt to <powerpc/spr.h> breakup. 2010-02-25 23:34:54 +00:00
wiz d2a81ca5b2 Uncomment crash(8) reference. 2010-02-25 17:15:55 +00:00
drochner 90f3894847 fix wrong widechar assignment for "up arrow" 2010-02-25 10:56:24 +00:00
drochner d32fd438b1 document wsyncup/wsyncdown/wcursyncup 2010-02-24 13:02:13 +00:00
drochner 452834f264 misc fixes and improvements:
-call setlocale(LC_CTYPE, "") before nl_langinfo(CODESET) if the
 locale settings is (still) at "C" - otherwise the CODESET doesn't work
-fix the type of the WACS_* symbols -- this needs to be cchar_t*
-add safeguards where the return value of wcwidth() is used for
 loop counters or indexing -- it can be -1
-use more common code in the widechar support case -- in particular
 let the wchar functions do the work even if chtype ones were called
-implement wcursyncup/wsyncup/wsyncdown
-somewhat experimental: allow ACS_* variables to refer to WACS_*
 table entries -- this way, programs using the old chtype using API
 can use UTF8 line drawing on terminals which support UTF8 but not
 ACS switching
-fix some logics bugs in UTF8 recognition and ALTCHARSET handling
2010-02-23 19:48:26 +00:00
roy fde317d2b1 libterminfo can now compile a single terminfo description which allows
$TERMINFO to be a terminfo description as well as a file reference.

This enables the user to modify the terminfo description on read-only
media.
2010-02-22 23:05:39 +00:00
wiz 66c83b53c8 Bump date for previous. 2010-02-20 10:23:04 +00:00
drochner f138ed81f2 explain a non-portable behavior 2010-02-19 19:09:15 +00:00
joerg 7921be2c51 Link libroken against libcrypt for crypt(3). 2010-02-19 17:57:06 +00:00
joerg e8e2c01488 libss uses strupr from libroken, so depend on that. 2010-02-19 17:48:59 +00:00
njoly 62fab5d4b7 Do clean generated terminfo.5 file. 2010-02-19 13:53:17 +00:00
christos 48bf0eec29 Fix a bug reported by Gene, and debugged by Robert Elz. fsck_ffs can coredump
if the timezone file fails to load, due to late initialization of sp->goahead
to false in tzload, causing localsub to return NULL in the "cannot happen"
case. The fix is belt and suspenders:
	- initialize sp->goback and sp->goahead very early in tzload
	- replace all malloc calls with callocs, and remove the bogus
	  casts (it is not the 70's anymore!)
2010-02-17 17:25:55 +00:00
dyoung 20ecd150d5 Link atomic_cas.3 to atomic_cas_{32,64,ptr,uint,ulong}_ni.3. 2010-02-12 22:34:38 +00:00
dyoung ba71f034aa With help from rmind@, describe the non-interlocked (*_ni) variants of
the standard atomic compare-and-swap operations.  Tell some caveats.

Manual page links, *_ni.3 -> atomic_cas.3 are coming up after a
successful 'build.sh distribution'.
2010-02-12 22:23:17 +00:00
wiz 3127fa5dcf Fix typo. 2010-02-12 12:29:10 +00:00
roy 420f923a19 Store the generated compiled terminfo descriptions so that we can build
a consistent library just from source.
2010-02-12 12:18:33 +00:00
martin 33f9f146f2 Fix an array bounds check - fixes PR lib/42793.
Restore a comment (from libterm/tputs.c), requested by jdc.
2010-02-12 10:36:07 +00:00
roy c1a1881ef9 Don't try to map obsolete termcap bc and nl to terminfo. 2010-02-12 10:18:56 +00:00
roy 1bc5794aa0 Change from scroll_forward to cursor_down.
cursor_down is more similar to our old termcap use of nl.
Fixes PR lib/42770.
2010-02-12 10:06:15 +00:00
wiz 6e41b81e29 Oxford serial comma. 2010-02-11 16:28:06 +00:00
roy 45b8382fe3 Include xterm. 2010-02-11 14:49:56 +00:00
roy 2680cfc1a1 Use $TOOL_TIC 2010-02-11 14:44:44 +00:00
roy b32b792e3b Respect TERMINFO_DIRS and document using an embedded database. 2010-02-11 14:36:09 +00:00
roy a2e27dcd47 Use structures so we know how long each description is. 2010-02-11 13:11:47 +00:00
roy 582936ff0d Don't assume the terminal has a description. 2010-02-11 11:45:47 +00:00
roy 0c02e7a2e0 Allow a NULL description. 2010-02-11 09:42:03 +00:00
roy 1aacca65aa Remove silly debug. 2010-02-11 09:34:12 +00:00
roy 90cead5eeb Embed ansi, dumb, vt100, vt220 and wsvt25 compiled terminal descriptions
into libterminfo.
Constify some foo.
2010-02-11 00:27:09 +00:00
roy bf4a786d84 Correct date 2010-02-11 00:22:41 +00:00
roy 64c4b99ad2 We should always generate terminfo.5 to save human error syncing. 2010-02-09 22:16:12 +00:00
roy a017e721b1 Fix an off-by-one error.
Thanks to Matthias Drochner.
2010-02-08 20:45:22 +00:00
wiz 3d24ede313 Sync with terminfo(5): Remove /etc/terminfo.db. 2010-02-06 07:12:25 +00:00
roy 298c3fd52c Don't look in /etc for a terminfo database.
Don't report the rescue database if we did not find the terminal in
there AND we were able to access prior databases.
2010-02-05 19:21:02 +00:00
he 1c8b1eb3f5 More adaptation for ports with unsigned char as char. 2010-02-05 14:39:07 +00:00
roy ae351fab5b Store the aliases against the entry, so that infocmp can reproduce them.
Handy for creating smaller terminfo databases.
2010-02-05 12:31:56 +00:00
roy e0d0a8eecc Allow loading of a terminfo database in /rescue. 2010-02-05 09:42:21 +00:00
roy d8609d0687 Allow hash to be build on other hosts. 2010-02-04 12:25:08 +00:00
roy 7ffeaa6526 Include nbtool_config.h as we need to be part of the terminfo toolchain. 2010-02-04 10:27:08 +00:00
roy eedd9ade82 Fix build issues on other hosts. 2010-02-04 09:46:26 +00:00
roy c4a14cdcf2 Sync terminfo.5 changes into terminfo.5.in 2010-02-04 09:45:30 +00:00
wiz 69221deade More markup. 2010-02-04 09:12:55 +00:00
snj 51684bf8b3 Regenerate to pick up the changes from terminfo.5.in revision 1.3. 2010-02-03 21:02:39 +00:00
roy 3dc9dc4362 Store our generated files in CVS and remove nbperf from the toolchain.
This allows us to build consistent libs without an ever changing hash.
2010-02-03 20:56:54 +00:00
snj 3ca90ff886 Fix some typos and spelling errors. 2010-02-03 18:49:23 +00:00
roy 5632c35d67 Use $HOST_SH instead of calling directly. 2010-02-03 16:13:14 +00:00
wiz f77393ac8a Use Nx. 2010-02-03 15:49:42 +00:00
wiz bbd22f74c1 Sort SEE ALSO. 2010-02-03 15:47:17 +00:00
wiz 1b9ef36433 Punctuation and whitespace fixes. 2010-02-03 15:47:13 +00:00
roy 37c1003344 Remove termcap as we now use terminfo.
OK: core@, jdc@
2010-02-03 15:37:59 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
roy 4ca00e00d8 Import my terminfo implementation.
This uses the ncurses terminal definitions.

OK: core@, jdc@
2010-02-03 15:16:32 +00:00
wiz 368f216930 Remove trailing whitespace. Use Fn when referencing functions. Sort sections.
New sentence, new line.
2010-02-03 08:47:40 +00:00
christos e89ba73a47 According to TOG:
- asctime{,_r}, ctime{,_r} may return NULL; document that, and avoid coredumps.
- gmtime{,_r}, localtime{,_r} may return NULL and set EOVERFLOW, document and
  set errno.
- when mktime returns (time_t)-1, make it set EOVERFLOW and document it.

XXX: Should be pulled up to 5.x
2010-02-02 19:04:37 +00:00
is 45845cf0d7 Print AppleTalk phase 2 range, too, if available. 2010-01-29 22:26:48 +00:00
drochner b1a1fc216d fix return values for atan2(+-0,+-0) in the POSIX case 2010-01-27 20:23:53 +00:00
drochner 7033707525 retire pw_policy(3) -- it is not found useful, there are other
(more common) ways to enforce a password strength policy
approved by elad
2010-01-27 19:10:30 +00:00
drochner 6cbc5cbff1 fix behavior in case of +-Inf or NaN input: return the proper
values and set *iptr
(This code is only used under non-default build options, and on m68k.)
2010-01-27 14:10:41 +00:00
drochner f12889bbfb fix return value in case of NaN input
(the code also shortcuts the +-inf case, but this was OK before -- it
only avoids an extra check of the mantissa)
2010-01-27 14:07:41 +00:00
is 000fbf6b41 Add AF_APPLETALK support to getnameinfo(); make "route show" use it.
Doesn't print "ranges" yet (should it be done here?); only numeric
output.
2010-01-26 21:27:54 +00:00
drochner e712404ece let the previous fix apply to acos rather than atan2,
and get rid of #ifdef vax
2010-01-20 16:49:42 +00:00
tnozaki 1166d8dc53 PR/42630 asin(2.0) and acos(2.0) doesn't return NaN.
reported by NARUSE, Yui -san, Thanks!
2010-01-20 16:31:35 +00:00
christos 6fbbcd94ce PR/42646: Joachim Kuebart: Shell crashes in libedit when window size changes
(SIGWINCH). Return NULL if el_gets() gets interrupted.
2010-01-20 01:15:52 +00:00
christos 654f9c04e7 Fix wrapper for EL_EDITOR, from Michael L. Hitch 2010-01-19 22:38:08 +00:00
christos 081c24c702 PR/42637: Joachim Kuebart: Shell tab completion crashes due to libedit stack
smashing
2010-01-18 19:17:42 +00:00
wiz 64e964907b Close file handle after using it. Found by cppcheck. 2010-01-17 23:17:08 +00:00
wiz f9884f518a Free malloc()ed buffer in error case. Found by cppcheck. 2010-01-17 23:13:32 +00:00
wiz 62523e18d5 Close file handles in error cases. Found by cppcheck. 2010-01-17 23:12:30 +00:00
wiz ccf859cb7b Close file handle in error case. Found by cppcheck. 2010-01-17 23:10:20 +00:00
wiz 7bd4f0a241 Close log file handle after using it. Found by cppcheck. 2010-01-17 23:09:02 +00:00
wiz 15989318ee Close file handle after using it. Found by cppcheck. 2010-01-17 23:06:31 +00:00
joerg 56da4fa7b5 Move AMD64's bswap64 implementation from libc to src/common and share it
with the kernel.
2010-01-14 02:09:46 +00:00
christos 139d3d5a3b - call the mapping function directly instead of el_wset().
- save the strings passed to the mapping function so that they don't get
  re-used. This leaks. To fix it properly we could either pass a flag to
  free particular entries before re-using, or allocate all of them.
  Allocating all of them wastes memory, allocating some of them makes
  the code more complex.
This fixes compatibility binding (shell tab completion for example)
2010-01-12 19:40:50 +00:00
christos c9043bbf6e - in the argv conversion, handle NULL as NULL
- when printing tab/nl print them, don't handle them specially.
2010-01-12 19:37:18 +00:00
pooka b95be6c682 Add convenience routine puffs_unmountonsignal(), which does exactly that. 2010-01-12 18:42:38 +00:00
christos de3b931d80 merge conflicting error sections. 2010-01-12 15:51:01 +00:00
christos a61eab08ce remove weak reference for now. 2010-01-11 23:38:24 +00:00
joerg 00711901b6 Use a proper char */size_t pair in __sfileext to keep track of the line
buffer for fgetln and fgetwln. Simplifies code by dropping the INT_MAX
related logic. Drop conditionals around FREELB, free(NULL) is valid.
2010-01-11 20:39:29 +00:00
christos 5f7c431ef4 Add exp2 and exp2m 2010-01-11 16:28:39 +00:00
joerg 635076e0b1 Fix mdoc(7)/man(7) mix up. 2010-01-08 23:14:13 +00:00
joerg 69ebc5167f Fix up mix of man(7)/mdoc(7). 2010-01-08 19:20:21 +00:00
joerg 71f3cc8605 Try to fixup the mess of mdoc(7)/man(7) mixture as created by the merge. 2010-01-08 17:16:56 +00:00
pooka ffe194d485 Use typecast instead of ULL for a less whiny lint on LP64. 2010-01-07 23:03:26 +00:00
pooka cf755ff393 Rewrite puffs_exit() in terms of the PUFFSOP_UNMOUNT kernel request.
Now server exit is a lot quite cleaner than previously.
2010-01-07 22:49:19 +00:00
pooka 0dd997522d Be slightly more forgiving about unknown operation types. 2010-01-07 22:46:11 +00:00
pooka b3cd880417 Set high bit on server->kernel requests to better differentiate
between the direction of the request.
2010-01-07 22:40:11 +00:00
pooka a63d44abdb Dump contents of struct vattr -- i never remember which members
the kernel passes when, so this helps tapping that info.
2010-01-07 20:47:47 +00:00
pooka d0f464047a * make indentation a little less ridiculous
* note that interfaces provided by <puffsdump.h> are not stable and
  are to be used only for debug builds
* remove a few unimplemented/used dump interfaces
2010-01-07 18:09:07 +00:00
skrll 5ddaffd107 Deal with PLABELs in _lwp_makecontext 2010-01-07 12:31:10 +00:00
phx 7377320537 Jump through the PLT in PIC mode to fix the DT_TEXTREL warning on creating
the shared object.
2010-01-06 14:10:57 +00:00
jakllsch ec1d44ba55 Fix copy-paste-o. Per the HID spec, Global Item Tag 0b001101nn is
Physical Minimum, not a alias for Physical Maximum.
2010-01-05 17:57:06 +00:00
pooka 304a850cb9 fix typography 2010-01-04 22:04:50 +00:00
wiz 0d3270a169 Bump date for historyw -> history_w. 2010-01-03 19:05:26 +00:00
christos 73eda9fe27 rename historyw -> history_w for consistency.
add wide tst code and make it the default.
2010-01-03 18:27:10 +00:00
tsutsui 47ef4e54e9 Include "nbtool_config.h" for src/tools/zic/ and
remove bogus -DNOID to disable __RCSID().

XXX: should we also remove #ifndef lint from scheck.c and zic.c?
2010-01-02 10:42:49 +00:00
dholland c281fbb701 POSIX says realpath(NULL, foo) is supposed to yield EINVAL rather than
being allowed to crash. Go figure. Closes PR lib/42559 from Stathis Kamperis.
2010-01-01 19:59:21 +00:00
mlelstv 86162a51cc Import tzcode2009k.
- now understands 64bit time_t and 64bit data in timezone files.
- localtime(), gmtime(), asctime() and ctime() may now fail with
  a NULL result if time_t cannot be represented by struct tm.
2009-12-31 22:49:15 +00:00
christos 4168f34493 expose the encode and decode string functions for the benefit of history
and readline.
2009-12-31 18:32:37 +00:00
christos dc8498bec8 - Document and enable wide character support.
- Fix read function compatibility.
2009-12-31 15:58:26 +00:00
christos 0b9ae3fdf0 Fix wide build, test it, but don't turn it on yet. 2009-12-30 23:54:52 +00:00
christos 34e53048e6 Wide character support (UTF-8) from Johny Mattsson; currently disabled. 2009-12-30 22:37:40 +00:00
mrg 35ea637d2b avoid some subdirs that need -lcrypto, for MKCRYPTO=no. 2009-12-29 23:01:09 +00:00
christos 8106943a02 reduce diff with tcsh 2009-12-28 22:15:36 +00:00
christos b90e7198e7 improve on the listing display by printing only one character after the
filename not two, and no trailing blanks. I will revisit this when I write
the ls-F code.
2009-12-28 21:55:38 +00:00
christos c8b67cd8d5 Reduce diff with tcsh's editor. No functional change intended. 2009-12-28 21:54:21 +00:00
christos 969676ec74 Fix bug where tab completion on the second or > line that caused listing
ended up corrupting the display by an extra space in the beginning. Reported
by Mac Chan.
2009-12-28 21:52:43 +00:00
pooka 3454464e10 Technically we're supposed to use flags from the RUMP_NAMEI namespace
instead of NAMEI directly.  Probably doesn't matter in practise,
since the chances of this running on non-NetBSD are low.  But make
it correct anyway.
2009-12-23 01:15:11 +00:00
pooka 81eb543b62 Use NAMEI_INRENAME to improve the situation with detecting on when
to save componentname instead of looking at SAVESTART.  Not perfect,
but better.  Also, try to be more forgiving of kernel bugs.
2009-12-23 01:11:39 +00:00
wiz 16aa486655 Sort ERRORS. 2009-12-20 02:16:40 +00:00
pooka 0a9d896555 Remove note about portability, since PF_UNSPEC will cause socketpair()
to EAFNOSUPPORT on NetBSD(!).  Additionally, at least slowaris and
linux talk only about PF_LOCAL.  Finally, since I'm reading a NetBSD
man page, I foremost care about the code working on NetBSD.
2009-12-19 23:00:10 +00:00
christos b56987f3f3 PR/42466: Yasuoka Masahiko: vsnprintf_ss() causes infinite loop 2009-12-17 15:19:48 +00:00
mrg 1a9afd2643 don't warn about mcount on mips64* as well.
XXX: someone really should fix mips profile.h's MCOUNT!
2009-12-17 06:54:51 +00:00
pooka 13777d56f1 Don't VOP_PUTPAGES(PGO_FREE) in inactive for tmpfs, since we now
(after some changes to rump) actually free those pages, leaving
the tmpfs vnode feeling quite empty.
(the purpose of the flush is to avoid double caching between the
rump kernel and puffs vfs layer)
2009-12-16 17:20:19 +00:00
enami 08464abb1e Put space after comma in the C code example. 2009-12-15 00:35:36 +00:00
matt f3848e2eb2 Back errant change due to botched merge. 2009-12-14 20:45:02 +00:00
wiz 663935444d Bump date for previous. 2009-12-14 07:31:49 +00:00
wiz 6277279df4 Whitespace nit. 2009-12-14 07:29:23 +00:00
matt c7af27854b Suppress a warning if time_t is __int64_t 2009-12-14 05:51:56 +00:00
dholland 34a411910a whoops, bump date for previous. 2009-12-14 04:40:29 +00:00
dholland cd1a57ae6d Document %ll. Closes PR 42283. 2009-12-14 04:39:29 +00:00
matt f45a8c29f5 Merge from matt-nb5-mips64 2009-12-14 03:04:33 +00:00
matt 42b55ff43a Fix typo. 2009-12-14 02:53:52 +00:00
dholland e2423fa273 getaddrinfo is defined to use the AF_* constants, even though perhaps its
interface ought to have been defined in terms of PF_*. Add a note about
how the distinction has been lost anyway. Fixes PR lib/42384.
2009-12-14 01:53:31 +00:00
matt 1819481222 Merge from matt-nb5-mips64 2009-12-14 01:11:02 +00:00
matt 2288207161 Merge from matt-nb5-mips64. 2009-12-14 01:07:41 +00:00
matt dc05324fb7 Make sure the kernel doesn't pass back 0 for pagesize. 2009-12-14 01:04:46 +00:00
matt 1e301281a1 Merge from matt-nb5-mips64 2009-12-14 01:00:46 +00:00
pooka 9bbaf71ba2 Refcount ukfs_part. Otherwise it's not possible to call ukfs_mount()
several times with only one ukfs_part_probe().
2009-12-13 20:52:36 +00:00
mrg 6af15ae20b if BSD_MK_COMPAT_FILE is defined, .include it. 2009-12-13 09:01:45 +00:00
mrg 6b59d31236 move the include for <bsd.own.mk> down a little. 2009-12-13 08:52:38 +00:00
mrg f7f0bc40ae rename LD32DIR to MLIBDIR. 2009-12-13 08:25:20 +00:00
mrg cba14cb13e look for ${CSU_MACHINE_ARCH}_elf directory first. 2009-12-13 08:03:44 +00:00
pooka 3048f9c8c7 fix error branch 2009-12-12 00:46:04 +00:00
pooka 35b591f8ec uncommit accidental changes 2009-12-11 21:21:52 +00:00
pooka 262f83ce50 Use range locking (fnctl(F_SETLK)) instead of file locking (flock()).
This allows to mount multiple (non-overlapping) partitions from the
same disk image.
2009-12-11 21:20:52 +00:00
pooka 72e7011c7a Init ukfs__part_{na,none} statically instead of at runtime to avoid
init-order lossage from p2k/rump_smbfs, as noted by Tron.
2009-12-11 16:47:33 +00:00