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
joerg
f65504295d
Fix markup.
2009-12-09 18:06:08 +00:00
roy
c9c21f1ecc
Test against SSIZE_MAX as pointed out by enami tsugutomo.
2009-12-07 21:31:43 +00:00
uebayasi
37469dacdd
Provide the phony "tags" target as previous. Make it depend on the real
...
target. In case someone assumes the target as an interface.
2009-12-06 12:56:59 +00:00
uebayasi
0b52043222
Fix typo in previous.
2009-12-06 11:16:26 +00:00
uebayasi
09afef2063
Rename ${SRCS.{alpha,arm,...}.gen} to ${LSRCS.{alpha,arm,...}.gen} because
...
they ended up in ${LSRCS}, not ${SRCS}. ${SRCS.*} namespace will be used
for more useful things. No functional changes intended.
2009-12-06 07:12:17 +00:00
uebayasi
619e0bd90e
Set ${SRCS.softfloat}.
2009-12-06 07:05:50 +00:00
uebayasi
c1fa6bf05b
Make the local "tags" target an absolute path, ${.OBJDIR}/tags, otherwise
...
it conflicts with the "tags" target defined in bsd.own.mk, which is .PHONY,
which causes you to re-build "tags" everytime you re-run make.
2009-12-06 06:30:52 +00:00
uebayasi
f0d2ed931c
Assign quad / softfloat specific ${SRCS} to ${SRCS.quad} / ${SRCS.softfloat}
...
then append them to ${SRCS}. Those will be used to generate quad / softfloat
symbol lists.
2009-12-06 05:34:42 +00:00
pooka
7431f4f63d
Add an error handler which syslogs but does not abort() and make it
...
the default. Most servers just shovel bits from their backend to
the kernel without checking the contents and dumping core in case
the backend gives garbage is a bit harsh.
2009-12-05 20:54:10 +00:00
pooka
689551bfdb
Remove suspension support from here too.
2009-12-05 12:13:08 +00:00
pooka
a1c4673949
Adapt ukfs users to the new ukfs_part interface.
2009-12-03 14:27:16 +00:00
pooka
0c29df1074
Improve the ukfs magicpath interface a bit:
...
* rename PART to DISKLABEL
* allow to take an OFFSET range to make it possible to access an image
where there is no disklabel present
* make future extensions easier and less intrusive for the callers
2009-12-03 14:23:49 +00:00
pooka
5f6578a865
tyop de fix
2009-12-02 12:50:27 +00:00
pooka
304d27696e
Document that strtouq can return UQUAD_MAX.
2009-12-02 12:45:35 +00:00
roy
5eba354808
Pass lint.
2009-12-02 11:14:47 +00:00
enami
8f4cd2bee8
Retain old variables when failed to allocate memory.
2009-12-02 09:34:51 +00:00
roy
7cfa046806
Reinstate __getdelim which does no locking.
...
Callers are now required to FLOCKFILE so they can operate on fp as well.
2009-12-02 09:03:13 +00:00
uebayasi
5f297383d5
struct _locale_time_t _global_locale is a datum. Declare it as extern.
2009-12-02 08:53:03 +00:00
roy
142091db36
Protect getline.
2009-12-02 08:46:33 +00:00
wiz
9e3ffe49a3
Make HTML-ready, use standard section headers, fix Xr.
2009-12-01 08:15:50 +00:00
explorer
7ba2798f6e
Assign copyright to TNF
2009-12-01 01:33:25 +00:00
roy
3490b83a1f
Protect getdelim when used internally.
2009-12-01 00:52:13 +00:00
roy
755657be4b
Remove __getdelim and just use getdelim.
...
fgetstr now works with strings up to SSIZE_MAX as a result, but may
reallocate buffers needlessly just like it used to when the buffer size
exceeds INT_MAX.
fgetstr converts errno EOVERFLOW to EINVAL on getdelim error.
2009-12-01 00:03:53 +00:00
roy
ec4d484515
Note that callers should use feof(3) or ferror(3) to distinguish between
...
EOF or an error.
2009-11-30 23:23:29 +00:00
roy
4cf0472d7d
Note that EOF returns -1 when no characters are read.
...
Add code example.
2009-11-30 22:51:46 +00:00
christos
ad4d8ed92e
Add no/op routines for m68000 for the sticky, mask, and round settings.
2009-11-28 23:46:38 +00:00
tnozaki
3f8ca7c44a
guard single-dot from modification by the application
...
(SUSv3 spec don't forbid this brutal operation).
this idea taken from OpenBSD's version of basename(3) and dirname(3).
2009-11-24 13:34:20 +00:00
plunky
369de522d5
fix VIS_HTTPSTYLE to not convert "safe" ($-_.+) and "extra" (!*'(),)
...
characters as mentioned in rfc1738 and rfc1808 and, I think intended
all along in this code but the logic was inverted.
Don't use strchr as it also matches the NUL character which we want
to escape, just compare against the chars directly as done in the
FreeBSD code.
2009-11-23 10:08:47 +00:00
mbalmer
124961627e
s/the the/the/
2009-11-22 18:40:26 +00:00
pooka
5a9a1f8306
Update. Especially, describe ukfs_mount_disk(), ukfs_release() flags
...
and return value, and remove obsolete info in BUGS.
2009-11-22 18:14:49 +00:00
mbalmer
4c993ba354
one more the
2009-11-22 18:07:39 +00:00
mbalmer
ca310c45c1
remove one the to much.
2009-11-22 18:05:50 +00:00
mbalmer
25c6d8b7c2
the doo doo doo, the daa daa daa...
2009-11-22 18:04:37 +00:00
wiz
ca692c48bd
Fix typo and uppercase UID.
2009-11-21 22:32:52 +00:00
pooka
a9552d686b
Update for recent interface additions.
2009-11-21 12:28:51 +00:00
pooka
cf93a6e109
nuke leading whitespace
2009-11-21 12:16:19 +00:00
pooka
18382772a4
document P2K_WIZARDUID
2009-11-21 11:40:52 +00:00
pooka
251fbb35dc
Report actual group array size instead of 0 (which always gives back 0 grousp).
2009-11-20 14:24:58 +00:00
pooka
2a93cba43c
In getgroups(), copy only up to the number of supplementary groups
...
that actually exist.
2009-11-20 14:23:54 +00:00
pooka
96ae77ca39
Add "wizardmode", which allows to specify the uid which is used to
...
access the file system instead of using the caller uid. This is
useful for example when modifying the root fs image for an OS
installation without wanting to dance around as root on the host.
idspispopd
2009-11-20 14:11:38 +00:00
drochner
fa423103c6
if changing the password, don't clear PAM_AUTHTOK at the beginning -- this
...
sabotages external password strength checkers
2009-11-18 17:06:23 +00:00
drochner
f7e3ae7c1f
-delete prototypes which are already in <ssp/ssp.h>
...
-make __fail __noreturn__
2009-11-17 20:46:20 +00:00
drochner
683ac0b2d3
make the "src" strings const as in the unchecked equivalents
2009-11-17 20:44:26 +00:00
wiz
567e675c3f
Mention that it is included in IEEE Std 1003.1-2008.
2009-11-17 15:02:08 +00:00
wiz
2e7202c574
Mention that getsubopt is an XSI extension for IEEE Std 1003.1, 2004 Edition. Bump date.
2009-11-17 14:52:21 +00:00
njoly
978f600106
Add RTLD_LAZY to dlopen call, to make it work on Linux hosts.
...
ok by pooka.
2009-11-16 17:21:26 +00:00
joerg
2ec9715635
Do not use \." for comments, always use .\". Discussed with uwe@.
2009-11-12 00:43:52 +00:00
is
c4a186ea1c
Move to two-clause license.
2009-11-09 15:35:27 +00:00
skrll
7a915839ac
Make lib/csu compile. XXX somewhat bogus.
2009-11-09 14:34:42 +00:00
tnozaki
4c40fc3cdc
redo: change _RUNTYPE_SW0 bit, mklocale(1) can't treat SWIDTH0 correctly.
2009-11-09 14:22:31 +00:00
tnozaki
80c3941c48
revert previous change.
2009-11-09 14:20:49 +00:00
tnozaki
5ebbcf6e82
change _RUNTYPE_SW0 bit, mklocale(1) can't treat SWIDTH0 correctly.
2009-11-09 14:17:47 +00:00
joerg
f3abef9367
Improve portability and clarity by using uint8_t for the byte data
...
and expanding u_int to not depend on the !POSIX types.
2009-11-06 20:31:18 +00:00
pooka
44dcee46bd
default to UKFS_PARTITION_NONE in argvprobe
2009-11-05 14:22:54 +00:00
dsl
ef7eea8bfd
Read input from the correct FILE.
2009-11-04 21:51:11 +00:00
dsl
bc1d032082
Round timeout values up.
...
More importantly convert 1..99 to 1, not 0.
2009-11-04 21:24:57 +00:00
snj
32381fa0dd
Follow upstream license changes for files with Michael Shalayeff's
...
copyright. In most cases, this means dropping the 3rd and 4th clauses.
2009-11-03 05:07:25 +00:00
stacktic
da8c43524c
Make sure fts_statp is NULL when FTS_NOSTAT is set
2009-11-02 17:17:34 +00:00
plunky
212bd4a35c
remove old libevent sources
2009-11-02 10:14:28 +00:00
plunky
c75313ecdf
switch build to use libevent-1.4.12-stable from external
2009-11-02 10:13:19 +00:00
dsl
905b39a994
Move calls to __restore_termios() into the failing path of the functions
...
that fail - instead of in most of the callers.
All rather pointless if tcsetattr() fails to set the mode we want we
are very unlikely to be able to restore any later on.
2009-11-01 22:11:27 +00:00
christos
2853bbf4b7
use %option instead of #define YY_NO_...
2009-10-29 14:49:02 +00:00
wiz
bd339365ac
Sort ERRORS. Add comma in enumeration.
2009-10-29 01:52:01 +00:00
njoly
b83467c466
Make flock(2) more robust to invalid operation, such as
...
(LOCK_EX|LOCK_SH).
2009-10-28 18:24:44 +00:00
christos
fb86afc52f
hook the new flex.
2009-10-26 21:36:46 +00:00
jnemeth
906faa3823
mention MODULE_CLASS_SECMODEL
2009-10-26 20:43:37 +00:00
jnemeth
79487327f2
XXX - confirmed that ms_required is comma-delimited
...
XXX - MODULE_CLASS_ANY shouldn't be returned, but potentially could
be if a module were declared that way
2009-10-26 20:40:00 +00:00
dholland
f1c1c5ddec
Edit - expand descriptions; document data structures in English rather
...
than in C; use more markup; make nroff output not exceed 80 columns.
2009-10-26 05:57:36 +00:00
christos
4958d088d0
back to old lex
2009-10-26 04:08:25 +00:00
christos
d4aeae3f68
hook the new flex library
2009-10-26 01:18:46 +00:00
christos
cfbb35ed03
revert some of dsl's changes to make things build on i386; he can undo what
...
he wants when he comes back.
2009-10-25 20:44:13 +00:00
dsl
5f1a9bea9e
Lint is differentially far too picky...
...
Remove some warnings that only appear on i386 (not on amd64) and that
for some reason best known to others are deemed fatal for i386.
Making this code 'pass lint' does absolutely nothing for its readability (etc).
2009-10-25 17:09:34 +00:00
mlelstv
7aea3a0d0a
import tzcode2009k
2009-10-25 16:20:16 +00:00
christos
3b0d9a876a
don't read hostaliases using unbuffered reads. there is no security benefit.
2009-10-24 21:37:57 +00:00
christos
9d8aeaab57
simplify the example; only register the set of events to watch once since
...
it does not change. Also print that ATTR means changing times too.
2009-10-24 17:49:58 +00:00
christos
e942b6ecb2
expose res_check.
2009-10-24 17:24:01 +00:00
mlelstv
df0cec4903
With 64bit time_t years can be negative and lapyear computation
...
requires rounding down. This avoids an infinite loop in localtime().
2009-10-24 17:01:04 +00:00
dsl
0b807be843
Remove a load of pointless casts - one that even lint doesn't bleat about.
2009-10-24 15:20:15 +00:00
dsl
695bc79994
Check for EOF before erroring fgets() with length <= 0.
...
If length is invalid, set errno = EINVAL and __SERR as well returning NULL.
Should let me close PR/41992.
2009-10-24 14:50:48 +00:00
reed
192dabfaf3
Add missing comma in the NAME Nm list.
2009-10-24 11:17:13 +00:00
christos
249296c41c
Add a knote to keep track when resolv.conf gets changed and re-initialize.
...
While here fix a memory leak when calling res_vinit with an already inited
res_state.
2009-10-24 05:35:37 +00:00
joerg
d3ac1c4282
Disable the use of mandoc for now until support for conditional
...
expression exists.
2009-10-23 23:42:52 +00:00
cegger
6e975d4155
fix typo: rag -> reg
2009-10-23 15:41:58 +00:00
tsarna
8c31ceec62
Update my email address to one I have used in this millenium.
2009-10-22 23:08:03 +00:00
bouyer
e0f9b22254
Remove closes 3 and 4 from my copyright.
2009-10-22 21:50:01 +00:00
snj
799a191e36
Pull in revisions 1.24 and 1.25 from upstream, which change this file's
...
license to ISC-style.
2009-10-22 01:38:18 +00:00
rmind
40cf6f3659
Remove uarea swap-out functionality:
...
- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.
Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).
Discussed on <tech-kern>, reviewed by <ad>.
2009-10-21 21:11:57 +00:00
skrll
43f47d3c56
G/C bcopy.m4 and references to it.
2009-10-21 19:30:46 +00:00
snj
550147bd6a
Remove 3rd and 4th clauses in christos' license. OK christos.
2009-10-21 01:07:44 +00:00
snj
4988388746
Remove 3rd and 4th clause on Leo Weppelman's license. OK leo@.
2009-10-20 19:10:09 +00:00
jnemeth
1cadc32cd7
First pass at a manpage for modctl(2) (hi ad!).
2009-10-20 04:41:28 +00:00
joerg
be403b3398
Fix header to include. From Kristaps Dzonsons.
2009-10-19 22:38:56 +00:00
christos
236714187a
PR/42201: NAKAJIMA Yoshihiro: fts(3): broken compatibility
...
As new field types were added, we did not provide overrides for older compat
versions. This restores compatibility.
2009-10-19 17:52:01 +00:00
pooka
a37ccec12c
Default "recycle" to false in inactive. File system drivers do
...
not always set it.
2009-10-19 17:34:07 +00:00
pooka
d33c69eb5f
bump minor for puffs_setmntinfo()
2009-10-18 20:26:33 +00:00
pooka
f0d8515717
include some headers we use
2009-10-18 20:14:06 +00:00
pooka
38a8ac9c61
Split init routines a bit more to allow for p2k init without having
...
to pass any real configuration data. This benefits things like
rump_smbfs which need to init rump before running the userspace
mount routines (because they make rump system calls) but cannot
run p2k_setup() at that stage because it requires data provided by
the userspace mount routines. And p2k_setup() in turn forks (to
detach), so it cannot be run after rump has been inited and threads
have been created.
2009-10-18 19:36:41 +00:00
pooka
0f699dcf1d
Make it possible to supply parameters to puffs_init() later (but
...
before puffs_mount()).
2009-10-18 19:09:20 +00:00
pooka
dd0a0505f1
Implement abortop.
2009-10-17 23:20:15 +00:00
pooka
75008bfc31
Dispatch puffs_node_abortop().
...
Note: We use the storage of puffs_cache_write from puffs_ops for
this purpose. It's not issued by the kernel and hence currently
unused, and this saves us from the trouble of bumping the lib major
version.
2009-10-17 23:19:52 +00:00
pooka
eea7b3ade4
Add some comments on how to act when major is bumped the next time.
2009-10-17 21:36:02 +00:00
pooka
2ce66cd910
use newstyle rump lwp interfaces
2009-10-15 16:41:08 +00:00
dsl
40f437887d
Reverse previous, committed by mistake.
2009-10-15 06:19:35 +00:00
roy
5f96926957
Handle errors from getdelim better.
2009-10-15 00:36:24 +00:00
dsl
01a0f8ea84
Change a while () {} into a do {} while() so that fgets(buf, 1, file)
...
detects EOF on an empty file.
Fixes most of PR/41992
2009-10-14 21:25:52 +00:00
roy
6e80fcc98f
Store the allocated buffer against FILE, plugging a memory leak.
...
Fixes PR bin/42183.
2009-10-14 20:54:51 +00:00
pooka
bf3992af18
Adjust names of external rump control interfaces to match the
...
new rump_pub namespace.
2009-10-14 18:22:50 +00:00
joerg
178d0fc825
Do not nest displays, use lists instead. Discussed with wiz.
...
Fix markup.
2009-10-14 17:24:03 +00:00
pooka
363b14551a
In a furious blaze of *facepalm* / "what was i thinking?", fix the
...
open routine function pointer prototype of opendisk1() to match
the prototype of open().
2009-10-13 22:00:31 +00:00
joerg
6fc39b6fcb
No .Pp inside .Rs/.Re.
2009-10-13 21:39:55 +00:00
pooka
e0ace4590b
Expand rump curlwp macro.
2009-10-13 20:06:38 +00:00
bad
6947118ad3
Implement prop_array_externalize_to_pref(), prop_array_copyin(),
...
prop_dictionary_externalize_to_pref() and prop_dictionary_copyin()
as discussed in the thread:
http://mail-index.netbsd.org/tech-kern/2009/07/29/msg005594.html
Bump libprop shlib minor.
2009-10-10 18:06:53 +00:00
pooka
476b5ba667
Expose a separate mount and run interface for those servers which
...
want to perform actions after mounting.
2009-10-09 16:37:30 +00:00
pooka
50efcfca57
When converting the locking path of mutex+counter to a real recursive
...
mutex, it's a good idea to convert the unlock path too so that the
recursive mutex gets released as many times as it was locked.
Fixes pthread + cxa deadlock.
2009-10-08 16:33:45 +00:00
pooka
a06931db70
puffs might call getattr after we decided to recycle node. protect.
2009-10-07 20:56:29 +00:00
pooka
0605ce2bd4
Provide p2k_run_diskfs(), which acts like p2k_run_fs(), but taps
...
into ukfs_mount_disk() instead of ukfs_mount()
2009-10-07 20:55:25 +00:00
pooka
a230afc74e
fix warning whine
2009-10-07 20:53:38 +00:00
pooka
ae7625c02d
Add what is essentially disklabel support. All disk-based file
...
systems should be mounted with ukfs_mount_disk() from now on. The
partition argument specifies which label is being mounted (or the
entire image). E.g. partition 4 should be label 'e'.
2009-10-07 20:51:00 +00:00
jdc
7ffe6d60fa
Return the same information whether or not we have wide characters.
...
Problem pointed out by Rhialto on current-users.
2009-10-06 20:03:27 +00:00
pooka
b02819edcd
don't double free p2m
2009-10-06 16:57:54 +00:00
pooka
5290e6c820
Give a p2k node an internal state. This allows us to do proper
...
reference counting and not release nodes based just on puffs'
impression of if they are free.
This also allows us to reclaim vnodes already in inactive if the
file system so desires. Some file systems, most notably ffs, change
file state already in inactive. This could lead to a deadlock in
the middle of inactive and reclaim if some other puffs operation
was processed in between (as exposed by haad's open(at) test
program).
Also, properly thread the componentname from lookup to the actual
vnode operation. This required the changes the rump componentname
routines. Yes, the rename case is truly mindbogglingly disgusting.
Puke for yourself.
2009-10-06 16:23:03 +00:00
rmind
63a834705c
pthread_attr(3): sync with reality i.e. uncomment descriptions about
...
various functions we support. Fix license style.
2009-10-05 23:37:01 +00:00
rmind
26ce5a50b4
pthread(3): mention that we use 1:1 threading model; remove descriptions
...
of no longer used environment variables.
2009-10-05 23:35:42 +00:00
rmind
81bc3e51a5
Add check to avoid multiple inclusions and redefinitions.
...
KNF while here.
2009-10-05 23:33:48 +00:00
wiz
00f6672d21
Mention NetBSD in HISTORY as well.
2009-10-04 22:11:22 +00:00
christos
26573d8819
add f{min,max,dim}{,l,f} from FreeBSD
2009-10-04 22:04:30 +00:00
tnozaki
6c81c0d804
fix lib/42124: setlocale(3) never returns NULL with none existing locale.
...
reported by kambe-san, thanks!
2009-10-04 21:05:18 +00:00
christos
85ddadbfdc
Don't just look only at the first element in the deadqueue to find lwp's
...
to reuse, because if we lose the race with the kernel we are never going
to reuse any elements. Look in the whole list instead.
XXX: should be pulled up to 5.x
2009-10-03 23:49:50 +00:00
phx
c9394f466a
SystemV-R4 ABI for M68k returns pointers in %a0, so we have to make sure
...
that CERROR returns -1 in %a0 in addition to %d0 and %d1, to make functions
like mmap(2), mremap(2), shmat(2) or sbrk(2) return -1 in case of an error.
A side effect of this bug was a segfault caused by jemalloc, when mmap()
failed.
2009-10-03 22:28:33 +00:00
pooka
323d1b6573
* allow callers to store a private data pointer behind the ukfs handle
...
* release reference on root vnode before unmounting
(and reaquire the root vnode if unmount fails)
* return correct error value if unmount fails
2009-10-02 09:32:01 +00:00
wiz
3dee657aa5
Revert a -> an changes: Adding an 'n' follows pronunciation, not writing.
2009-10-02 07:41:08 +00:00
wiz
b9f34d69ea
Bump date for new allocaddrinfo.
2009-10-02 06:59:37 +00:00
cegger
45db136e91
fix grammar: a -> an
2009-10-02 06:49:23 +00:00
tsarna
1f4f234ea9
Introduce allocaddrinfo(3) to make writing getaddrinfo() nss plugins easier.
...
Discussed on tech-net.
2009-10-02 02:45:28 +00:00
pooka
e99ca06d65
Give rump_sys_unmount() in ukfs_release() a curlwp context. This
...
prevents use-after-free and should fix crashy cases reported by
Arnaud Ysmal.
2009-09-29 11:17:00 +00:00
elad
6780ec6543
CTLFLAG_READONLY[12] are long gone.
2009-09-26 04:43:48 +00:00
pooka
4c1e54d82b
Add Solarisa-like dlinfo() interface to the ELF dynamic linker.
...
Implement RTLD_DI_LINKMAP which returns a pointer to the linkmap
chain at the given object. Other Solaris queries are currently
unimplemented.
2009-09-24 21:21:33 +00:00
roy
86eafd3e05
__getdelim works on strings up to SIZE_MAX - 2 and returns 0 on EOF.
...
getdelim works on strings up to SSIZE_MAX and returns -1 on EOF.
__fgetstr is now just a wrapper around __getdelim and ensures that
the buffer doesn't overflow the one provided by FILE.
__slbexpand is now static in fgetwln as it is the only consumer of that func.
2009-09-24 20:38:53 +00:00
pooka
70d95ce59f
fix markup
2009-09-14 20:54:34 +00:00
apb
50a2fd2471
Make the documentation match reality. If no explicit kernel name is
...
provided, kvm_open() and kvm_openfiles() will try _PATH_KSYMS first,
then either the path from sysctl machdep.booted_kernel (if that's
available) or _PATH_UNIX (if the sysctl is not available).
2009-09-14 19:34:12 +00:00
apb
8a61809cf3
Move the code that tries to open _PATH_KSYMS first into a common path,
...
so that it is used both for the /dev/mem case and the core dump case.
Output from savecore(8) before:
savecore - - - (null): kvm_openfiles: /netbsd: No such file or directory
and after:
savecore - - - no core dump
2009-09-14 19:29:20 +00:00
pooka
aaaf93f1d4
Add opendisk1(), which functions like opendisk(), but takes a function
...
pointer to the routine to be used for open().
2009-09-08 21:34:57 +00:00
christos
ea3813ed2f
apply apple patches from:
...
http://opensource.apple.com/source/libedit/libedit-11/patches/
2009-09-07 21:24:33 +00:00
dsl
602976fff6
Ansify functions and remove __P/
2009-09-05 08:53:06 +00:00
dholland
9af4cd75f3
Add parentheses around a misleading string constant concatenation,
...
from (my own, very old) PR 36064.
2009-09-05 06:44:27 +00:00