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
apb
a9dda51fb1
Add cross references to new boothowto(9) man page.
2009-09-04 23:29:02 +00:00
pooka
de4fa6c51a
Build & install rumpdev, a device component for rump. It currently
...
supports autoconf and is required for example by pseudo-device rump
components.
2009-09-03 15:35:58 +00:00
pooka
fd46b5b66c
install librumpcrypto component: kernel crypto routines
2009-09-03 12:33:54 +00:00
wiz
9e5519cfe8
Make HTML-ready.
2009-09-01 22:12:05 +00:00
elad
8fbf70d4eb
Add useful example program from
...
http://mail-index.netbsd.org/tech-kern/2009/09/01/msg006020.html
2009-09-01 22:01:48 +00:00
christos
461d0372fd
delete defined(sun), it could be invaded in the user namespace. Suggested
...
by mrg@
2009-08-31 00:05:43 +00:00
christos
5aa87ec494
use __sun || sun instead of _SunOS, from Jess Thrysoee
2009-08-30 15:41:05 +00:00
wiz
0e46e32aae
Note some restrictions for getdelim arguments noted by joerg.
...
Bump date.
2009-08-25 16:28:26 +00:00
dsl
11bcd8ad6a
The 'table' of character weights is allowed to be NULL.
...
The SETUP define sorts it out (in the slowest and nastiest possible way!)
Broken by rev 1.12 almost 10 years ago!
2009-08-21 20:49:50 +00:00
he
6218a6dafa
Introduce a new accessor macro N_NAME() to access the n_name field
...
in struct nlist, since it's accessed differently depending on
whether we do a.out or not. Use this macro as appropriate in the
nlist* functions.
Also replace some includes of <a.out.h> with <nlist.h>, to fix build
problem for mips.
2009-08-21 08:42:02 +00:00
he
f9dd8b23a6
Anoter instance of <sys/exec_aout.h> -> <sys/exec.h>.
2009-08-20 11:18:55 +00:00
martin
bc27f3e093
forward declare struct nlist before including nlist_private.h to avoid a
...
compiler warning.
2009-08-20 11:08:59 +00:00
he
4cf9cdf39a
Actually, when we really need the a.out defines from <nlist.h>, we
...
need to include <a.out.h> anyway. Move it inside #ifdef NLIST_AOUT.
2009-08-20 10:19:36 +00:00
he
3a05737d04
Instead of including <a.out.h> to get at "struct nlist" (with a comment
...
to explain it), include <nlist.h> instead, so that our mips ports don't
error out in the absence of aout_machdep.h.
2009-08-20 08:30:04 +00:00
joerg
8a6f35af57
Fix markup.
2009-08-19 15:43:02 +00:00
tls
3682b97c0d
Oops. As Matthias pointed out, I swapped '-' for '_' in the previous
...
commit. Fix that. Also, some applications written for newer libevent
want event.h to pull in event_config.h by magic.
2009-08-19 15:18:05 +00:00
tls
cf13201bd8
Matthias Drochner pointed out that I lost the _EVENT_ prefix from all
...
the autoconf defines in the installed event_config.h. Of course, the
libevent documentation basically says not to use event_config.h, so it
is a little hard to see why the right fix isn't to just not install it...
...in any event, fix this approximately as the stock libevent Makefile does.
2009-08-19 01:38:39 +00:00
christos
f227975929
Version fts one more time! This is the most versioned API ever... Bump
...
fts_level from short to int to avoid a potential DoS.
From Maksymilian Arciemowicz
2009-08-16 19:33:38 +00:00
matt
3308ff5cbf
Only include <sys/exec_aout.h> if NLIST_AOUT is defined.
...
Don't define NLIST_AOUT for mips anymore.
2009-08-16 03:56:26 +00:00
enami
cc63c84008
Make nanosleep cancelable again.
2009-08-12 23:51:23 +00:00
seanb
612dfc4de9
Watch getservbyport_r() semantics. sv needs scope
...
while results are being looked at which in turn
are no longer valid after a endservent_r().
2009-08-12 20:24:30 +00:00
dsl
a245205b96
Change NO_SRCS lines to specify .S in order to exclude the .c file from
...
SRCS but add it to LSRCS (sort of makes sense!).
2009-08-11 17:30:43 +00:00
dsl
05e1772663
Change (slightly) the way NO_SRCS is processed, update big comment!
...
Now the .c file is removed from SRCS for both .S and .c in NO_SRSC.
The .c file is added to LSRCS for .S files in NO_SRCS.
(.S files in SRCS have the same treatment - but also get compiled.)
Allows vax build to be fixed.
Also the previous version failed to add to LSRCS correctly.
2009-08-11 17:29:04 +00:00
dsl
4ef3fc9143
Add text to the description saying that normal applications should not
...
use syscall().
Add text to bugs saying that high bits of the syscall number may be masked.
Fixes bug PR/11088
2009-08-07 19:34:46 +00:00
wiz
9c8f6f63d2
Bump date for previous.
2009-08-05 23:15:52 +00:00
pooka
27db690df3
fhopen() needs sys/mount.h
...
(if someone disagrees, feel free to fix as much as your heart desires)
2009-08-05 23:03:08 +00:00
dsl
f687cf7e68
If the current locale doesn't define the 'thousands' grouping info
...
then use sane defaults (',' every 3 digits).
Fixes PR/40714
2009-08-05 20:46:01 +00:00
joerg
eb96fdd9a2
ffs(3) lives in strings.h, so include the correct header. ANSIfy.
2009-08-05 16:08:00 +00:00
joerg
466a3e5dee
Revert to revision 1.8. Blindly ignoring options is not acceptable
...
behavior and hides more problems than it is fixing.
Discussion:
http://mail-index.netbsd.org/current-users/2009/02/03/msg007761.html
Approved by: core@
2009-08-05 15:17:02 +00:00
pooka
6e1d010d65
supply proper flags to pager
2009-08-04 13:39:18 +00:00
pooka
1752ac9b33
If opening the device fails, skip etfs registration only if it is
...
because of ENOENT. Otherwise, let the file system handle it.
2009-08-04 12:37:14 +00:00
wiz
835184f2b5
Formatting nits.
2009-08-03 22:13:47 +00:00
drochner
aa89e1b426
As noticed by Stathis Kamperis, the original implementation does not
...
always return the correct principal value (with real>=0).
(eg cacosh(ccos(1.0I)) was -1)
Replace by a more ground-up one which should do better.
2009-08-03 19:41:32 +00:00
plunky
bd42c2e8d0
Add bt_dev(3), an platform neutral API for accessing (locally configured)
...
Bluetooth devices, and bump libbluetooth minor version.
This is a reimplementation of an API largely developed by Maksim Yevmenkin
on FreeBSD to make it easier to port BlueZ/Linux programs which depend on
something similar. Alas, the BlueZ/Linux API is incompatible and unportable
as it depends on a 'device' being referenced by an int, but this will
hopefully make it easier to port software using that.
(bump libbluetooth minor version)
2009-08-03 15:59:41 +00:00
pooka
d90603b573
fix errno reporting
2009-08-03 15:08:37 +00:00
pooka
8bf6866a3f
* use new etfs interface
...
+ attempt to register only if we can stat() the devpath. this works
around e.g. nfs devpath, which is useless to register to etfs
XXX: the caller should decide
2009-08-03 14:24:58 +00:00
dsl
d3c3d024a7
bzero.S defines memset(), so exclude memset.c
2009-08-03 06:26:41 +00:00
dsl
af129c0bc8
bzero.S also defines memset(), so exclude memset.c
2009-08-03 06:25:34 +00:00
dsl
8190cfe5fa
Don't remove imaxdiv.c
2009-07-31 20:54:35 +00:00
dsl
10ad5ffa71
Add the 'abs', 'div' and 'erand48' sources to stdlib/Makefile.inc.
...
Change the arch files only include the .S files.
This adds imaxdiv() to some archs where it was missing.
2009-07-31 20:39:59 +00:00
dsl
027bacee22
Use a 'register only' str[c]spn() on 64 bit systems.
2009-07-30 21:42:06 +00:00
dsl
f0a25cf095
Stop bcopy.c and bzero.c being compiled
2009-07-30 21:26:36 +00:00
dsl
0d34d14bb9
If SRCS contains any .S files then remove the corresponding .c file from
...
SRCS and add to LSRCS (for lint).
Change the 'string' Makefiles so that the arch/*/string/Makefile.inc
need only specify the .S files for that architecture and not the .c
files for all the files they don't override.
2009-07-30 20:57:15 +00:00
christos
304c3bd293
fix debugging build. Hi Roy!
2009-07-28 18:38:43 +00:00
tls
3a2b6e4519
According to the libevent 1.4.12 change announcement, problems have been
...
observed with GCC 4 and strict-aliasing in the libevent code. Add
-fno-strict-aliasing to work around this (same thing libevent did
upstream).
2009-07-26 21:33:46 +00:00
christos
085c78fd1f
Ignore comment lines in .editrc from Jess Thrysoee
2009-07-25 21:19:23 +00:00
plunky
ca5b4d6e1f
add in definitions from the latest Service Discovery Assigned Numbers
...
document from www.bluetooth.com
2009-07-25 17:04:51 +00:00
wiz
fa52b0ad23
Bump date for previous.
2009-07-23 13:37:34 +00:00
dholland
3cfdfcef43
Clarify the description of the errno behavior, based on the recent
...
thread in tech-userlevel.
2009-07-23 02:54:27 +00:00
dholland
6687b6883d
Mention, along with the behavior of succeeding system calls, the
...
normal behavior of succeeding library functions regarding errno.
(That is, they may leave arbitrary nonzero values in errno.)
Ok kleink@; related to PR lib/41567 as well as a recent thread on
tech-userlevel.
2009-07-23 02:31:56 +00:00
pooka
c39552c570
return proper errno from mount
2009-07-23 01:01:31 +00:00
alc
3831d4ed46
Bump date.
2009-07-22 22:54:15 +00:00
alc
2f42139c8e
Constify the fourth argument of sysctlbtname(3) (ie. `newp', the pointer to
...
the new value).
This change sync sysctl(3) and sysctlbtname(3) prototypes.
No objection on <tech-userlevel>
2009-07-22 22:53:41 +00:00
pooka
77d8bc0d04
delint
2009-07-22 21:05:30 +00:00
pooka
d51d08a74d
* catch up with the ukfs changes
...
* leave mounted fs reference counting totally up to le coq grande
and simply force an unmount if the kernel has decided the mountpoint
is not busy
2009-07-22 20:49:28 +00:00
pooka
ee47269736
Since rump rootfs now supports creating directories, mount ukfs
...
mounts at the requested mountpoint instead of as the rump kernel
rootfs. While doing so, generally convert everything to use system
calls instead of handcrafter rump interfaces (e.g. rump_sys_mount()
instead of rump_mnt_mount()). This avoids a lot of unnecessary
fuss.
Change UKFS_DEFAULTMP from / to /ukfs and bump ukfs version.
2009-07-22 20:46:34 +00:00
kleink
9be4603670
Declare strsignal(3) in <string.h>, per POSIX-2008, and adjust
...
documentation accordingly.
Fixes PR standards/41325 from Perry E. Metzger.
2009-07-22 19:48:27 +00:00
christos
bafe66c2cc
Only need path if we have issetugid... From Anon Ymous
2009-07-22 18:25:26 +00:00
roy
43d5eb454b
Prepare curses for the possibility of changing from termcap to terminfo.
...
term.h #defines lines, pad_char and no_color_video macros which conflict
with existing curses code. We change lines to alines and nlines depending
on use, pad_char to padchar and no_color_video becomes no_color_attributes
but with a strong alias from no_color_video.
2009-07-22 16:57:14 +00:00
christos
e304eddfd2
Don't depend on side effects inside an assert
...
From Michael Cook mcook at bbn dot com
2009-07-22 15:58:09 +00:00
christos
cfa16c6369
Fix memory leaks in error paths.
...
From Michael Cook mcook at bbn dot com
2009-07-22 15:57:40 +00:00
christos
83965485c1
Always initialize nread since it is an out param.
...
From Michael Cook mcook at bbn dot com
2009-07-22 15:57:00 +00:00
christos
17a17e3aeb
Move filename to the scope it is being used.
...
From Michael Cook mcook at bbn dot com
2009-07-22 15:56:29 +00:00
wiz
f21bef181d
Add comma in enumeration.
2009-07-22 07:07:27 +00:00
joerg
0578c2ad0f
Move popcount et al to src/common and add popcount32/popcount64.
...
Requested by rmind@. MD should now override popcount32/popcount64 and
provide the aliases as fitting.
2009-07-21 14:55:32 +00:00
wiz
02079c4a1c
Xref popcount(3).
2009-07-21 13:22:15 +00:00
wiz
345d7916c5
Fix typo, add comma in enumeration.
2009-07-21 13:21:41 +00:00
joerg
974b291a6c
Add popcount(3) and the long and long long version. Name is inspired by
...
gnulib, the implementation goes back to the AMD Software Optimizer
guide. A number of platforms will want to replace the C version with
assembler code using native instructions.
2009-07-21 13:18:43 +00:00
joerg
ed9dacacc0
Add HISTORY.
2009-07-21 12:40:52 +00:00
pooka
80f30aa223
Can't see any reason to stat() the .so before dlopen(), so get rid
...
of that call. uses normal ldlib paths now
2009-07-21 00:19:57 +00:00
christos
cbeabf798d
use new openssh tree
2009-07-20 18:01:41 +00:00
christos
6a7d49166f
ssh has moved
2009-07-20 17:35:05 +00:00
christos
75efea6592
bump libcrypto and friends; OpenSSL abi change: do_cipher last argument
...
changed from u_int to size_t. Affects _LP64 only.
2009-07-20 17:30:52 +00:00
christos
8a00156352
use the proper libcrypto
2009-07-20 17:28:51 +00:00
joerg
d6e219476b
Add a fast, platform independent hash function to libc.
...
The algorithm used is the Jenkins hash. The name (mi_vector_hash)
reflects the nature of the hash function.
Add glue for libc ATF tests and include a test case to make sure that
(mis)alignment and endianess are handled correctly.
Bump libc minor to 169.
2009-07-20 17:03:36 +00:00
skrll
8d8039fe60
libcrypto moved.
2009-07-20 12:16:37 +00:00
pooka
c6181c7b2f
Re-add explanation of how to correctly use realloc.
2009-07-20 12:10:03 +00:00
christos
92baa9892f
OpenSSL moved to crypto/external
2009-07-19 23:35:02 +00:00
dsl
6dffe8d42b
Remove references to index.c and rindex.c (strchr.c and strrchr.c
...
now provide the definitions).
2009-07-18 09:44:30 +00:00
dsl
32b43c9199
Remove index() and rindex() from the list (in comment)
2009-07-18 09:41:23 +00:00
dsl
03c902aa70
Change all archs so that strchr.[cS] and strrchr.[cS] exist and generate
...
duplicate symbols for index() and rindex().
libc and kernel build ok for affected archs (i386, amd64, vax, sun3,
evbmips-eb) all seem ok.
(vax might lose an asm index() - but comments imply it is worse than the C)
2009-07-17 19:37:54 +00:00
christos
cfb4e5f917
Simplify the code. No functional change.
2009-07-17 12:28:27 +00:00
christos
e2d0108bb8
- off by one in the term.h case.
...
- make code more similar to tcsh (if we want to handle wide chars, this is
needed; for now it is a no-op)
2009-07-17 12:27:57 +00:00
christos
59a88754a7
handle prompt_esc properly.
2009-07-17 12:26:26 +00:00
christos
537657ed45
Use the proper prompt printing function.
2009-07-17 12:25:52 +00:00
joerg
07c495396f
Fix markup.
2009-07-14 18:56:14 +00:00
roy
6c5916565e
Allow a buffer of SSIZE_MAX + 1 as the returned bytes do not include the NULL.
2009-07-14 18:29:41 +00:00
christos
cfef64a1a4
pass lint
2009-07-14 17:04:32 +00:00
wiz
9400935da7
Fix typo added in previous.
2009-07-13 22:31:59 +00:00
wiz
06601ed792
The character is NUL, the pointer is NULL.
...
Fix a typo.
It's \-1, not -1.
Add "and getline" in a few places.
Add comma in enumeration.
No dot needed in SEE ALSO.
End sentence with a dot.
2009-07-13 22:30:52 +00:00
roy
d4a3cf6a5a
Add implementations for getdelim(3) and getline(3).
2009-07-13 22:19:24 +00:00
wiz
27f99b53d5
Add RCS Id. Fill in name in license. New sentence, new line.
...
Add comma in enumeration.
2009-07-12 23:14:06 +00:00
wiz
1a280fda0f
Bump date for *chgat*.
2009-07-12 23:12:40 +00:00
jakllsch
23f0810103
Add more Keypad usages in the Keyboard/Keypad page
...
from USB HID Usage Tables document version 1.11.
Admitedly these are not going to be noticed when ukbd(4) is around.
While here, correct a typo (that's also in the HUT document),
and normalize to ASCII a non-UTF-8 encoding of "moire".
"This may prove useful to some of you someday,
perhaps in a somewhat bizarre set of circumstances."
- Tom Lehrer
2009-07-10 22:11:58 +00:00
joerg
a8766915af
Ensure that y,x are valid coordinates before using them.
2009-07-09 22:08:45 +00:00
christos
8e714f4b6e
add stdio.h since we are using FILE. From Grant Erickson
2009-07-09 19:02:04 +00:00
tls
e234ec7db5
Update to libevent-1.4.11-stable. This has been a long time coming and
...
fixes many bugs, particularly with signal handling.
The regression tests have also been updated and complete successfully
on amd64.
2009-07-08 21:23:52 +00:00
joerg
2a64051b50
Be strict on xcurses support:
...
- Do not perform wrapping at all by setting the line flags.
- Do not alter the cursor position, even for mv(w)chgat.
2009-07-07 13:10:02 +00:00
joerg
ba2ae25781
chgat() and friends are in X/Open. Noticed by Thomas Dickey.
2009-07-07 11:53:43 +00:00
joerg
eadfd2731f
Add vw_printw and vw_scanw as mandated by SUSv2's xcurses. Follow
...
ncurses and just make the historic vwprintw and vwscanw functions
aliases, ignoring that they should take a varargs.h va_list argument.
2009-07-07 10:16:52 +00:00
joerg
32e50f68cc
Use __printflike/__scanflike.
2009-07-07 09:58:08 +00:00
joerg
1e5025e496
Add support for the chgat(3) family. It is a useful extension from
...
ncurses, supporting it dramatically reduces the need for ncurses in
pkgsrc.
2009-07-06 15:19:49 +00:00
perry
eb247ff739
note that the return value of el_gets doesn't remain valid across
...
calls.
2009-07-05 21:55:24 +00:00
rumble
b222d9680b
"unblocks the mutex" -> "unlocks the mutex"
2009-07-02 19:43:06 +00:00
joerg
cdb510a7bb
Restore use of _lwp_makecontext, the AMD64 bug has been fixed.
2009-07-02 09:59:00 +00:00
joerg
9d87375b3e
Fix stack alignment for the thread stack. The AMD64 stack has 16 Bytes
...
alignment, but this is active before the return address is pushed onto
the stack. Fixes random crashes in va_start when the SSE registers are
saved.
2009-07-02 09:57:09 +00:00
joerg
c1faa994fd
Reduce diff to makecontext.
2009-07-01 16:54:41 +00:00
wiz
e94ec523a3
Bump date for previous.
2009-07-01 11:25:50 +00:00
mrg
c5cc9dbb54
document RLIMIT_AS. text from freebsd. fixes PR#41517.
2009-07-01 06:01:42 +00:00
wiz
04b11be56d
Mark up NULL with Dv. Remove trailing whitespace.
2009-06-29 08:38:07 +00:00
plunky
fc992f3309
add mention of SO_ACCEPTFILTERS, language largely from FreeBSD manpage
2009-06-29 06:22:13 +00:00
agc
9fc49d2576
iscsi sources have moved to src/external/bsd/iscsi
2009-06-25 23:37:50 +00:00
dyoung
6ba25067cf
Add .PATH: ${ISCSIDIST}/src/lib for conffile.c. Compiles, now,
...
but does not install.
2009-06-25 21:04:13 +00:00
dyoung
9d7ba4756e
Update the path to the iSCSI sources, which have moved to
...
external/bsd/iscsi/dist/ from dist/iscsi/.
2009-06-25 20:47:45 +00:00
agc
474f9d04b2
Switch over to building iscsi library, target and initiator from the
...
external framework.
2009-06-25 13:58:59 +00:00
joerg
35173b1fce
Partially revert 1.110: Use makecontext again until the problems with
...
_lwp_makecontext are solved.
2009-06-25 13:38:43 +00:00
zafer
282680c9b1
correct spelling error.
2009-06-24 22:31:58 +00:00
zafer
791f9db912
fix spelling error.
2009-06-24 22:19:14 +00:00
agc
444c5e7dcc
Also build uuid for all platforms, now that we're using our own uuid routines.
2009-06-23 05:15:07 +00:00
tron
3f3fc05a03
Fix typo. Patch supplied by Marc Balmer in private e-mail.
2009-06-22 08:31:13 +00:00
wiz
2518910327
Sort errors.
2009-06-21 18:04:46 +00:00
dholland
6eda430b6b
Fix pastos. From Jukka Salmi in PR 41605, with a very minor adjustment.
2009-06-21 17:52:42 +00:00
christos
87fe4621ba
add a link to pw_copyx; from anon ymous
2009-06-20 14:28:29 +00:00
tonnerre
c08078c2c3
Restore the good old UNIX behavior of root password changing: only root
...
may change the root password.
(Checked that everybody else's password can be changed without any problem,
and checked that root can still change the root password.)
2009-06-14 23:23:54 +00:00
roy
f388a1765a
SuSv2 mandates that tputs should return int instead of void.
2009-06-13 19:23:22 +00:00
christos
287bd18049
decrement the number of levels after the loop (Julien Torres)
2009-06-09 13:04:33 +00:00
yamt
dd8cbf5c36
don't bother to say that some advises are not implemented.
...
ignoring them is a valid implementation.
2009-06-09 11:21:33 +00:00
mrg
7e7627c1df
build libnetpgp and libssh earlier.
...
look for libssh in the right place.
2009-06-09 05:20:15 +00:00
christos
d9b57d2294
another missing \
2009-06-08 17:18:11 +00:00
christos
d6dbd2857d
remove duplicated line
2009-06-08 17:06:22 +00:00
christos
64ef372149
missing \
2009-06-08 17:00:40 +00:00
christos
d37a1d1b07
sort, add missing, fix section
2009-06-08 16:59:52 +00:00
christos
ecb120d5ca
new resolver functions.
2009-06-08 16:57:09 +00:00
christos
190ebc6a17
merge our changes
2009-06-08 16:55:30 +00:00
christos
e55354196b
from Julien Torres, flip the order we pop in the macro array.
2009-06-08 15:10:53 +00:00
christos
dfdd8db89f
remove libmagic
2009-06-07 23:16:21 +00:00
christos
d4fda9c2d5
Disconnect ssh
2009-06-07 22:43:02 +00:00
wiz
cc8abfac27
New sentence, new line.
2009-06-03 09:04:18 +00:00
wiz
cd10aae286
Bump date for previous.
2009-06-03 09:03:24 +00:00
christos
2a6e000238
add _lwp_makecontext for the vax.
2009-06-03 01:02:28 +00:00
pooka
2ff04dc7a0
document errnos 59 and 71. government denies knowledge.
2009-06-02 13:15:41 +00:00
yamt
cef9767a7a
don't describe internal details.
2009-06-01 22:04:54 +00:00
njoly
7e10d34f2a
Note that fcntl(2) returns EINVAL for invalid command.
2009-06-01 09:56:06 +00:00
yamt
99122f39e6
qsort: remove the "switch to insertion sort" optimization because it
...
causes catastrophic performance for certain inputs.
2009-06-01 06:37:40 +00:00
yamt
8a29be6be3
fix NULL dereferences in the compat versions of getpwent, getpwnam,
...
and getpwuid.
2009-06-01 06:04:37 +00:00
joerg
09d5d44150
Add SHA224 implementation to libc.
...
Make libcrypto use the SHA2 implementation of libc.
Bump minor versions of libc and libcrypto.
2009-05-26 08:04:11 +00:00
ginsbach
48dc241150
Crank date for previous.
2009-05-24 02:30:17 +00:00
ginsbach
98fa92ea04
Add %s to strptime(3) to make symmetric with strftime(3).
2009-05-24 02:25:43 +00:00
christos
7966578116
remove stray comma, from anon ymous.
2009-05-23 18:57:25 +00:00
pooka
25c0857635
Support mounting post-time_t rump file systems on a pre-time_t host.
2009-05-22 10:53:59 +00:00
pooka
d2895b1d1d
use compat syscalls if necessary
2009-05-22 08:59:53 +00:00
wiz
a6bd8d398d
New sentence, new line. Get rid of superfluous Pp.
2009-05-21 09:23:50 +00:00
wiz
f6b43a0c43
Markup improvements. No need to mark up numbers as defined values, math
...
did the definition for us ages ago. Make HTML-ready.
2009-05-21 09:13:35 +00:00
christos
fd67370208
mention that these functions return 0 and set errno to ERANGE on invalid base.
2009-05-20 22:01:34 +00:00
plunky
60180f5cfb
adjust markup language according to mdoc(7)
...
.Fa for function arguments (instead of Ar)
.Va for variable names (errno)
.Ft for structure type
2009-05-20 17:22:56 +00:00
christos
189ce7898b
always scroll when we advance past bottom. From Caleb Welton
...
cwelton at greenplum dot com
2009-05-19 21:45:14 +00:00