Commit Graph

186620 Commits

Author SHA1 Message Date
agc
46c46156b2 Remove a code excerpt which is not ready for primetime just yet 2009-12-22 06:55:03 +00:00
agc
5836ded60b Modify regression test suite behaviour - remove the (error) tests for
commands with no file arguments, as input will now be taken from stdin,
and output will go to stdout, if no file arguments are given on the
command line.
2009-12-22 06:53:26 +00:00
agc
7e08eafcff Fix error in merge of previous change shown up by regression tests. 2009-12-22 06:51:31 +00:00
agc
d369874e4b Netpgp changes to 1.99.15/20091221
+ some ssh host keys do not have the username of the generator included
  in the key itself. If there is no username in there, create one.
+ added netpgp_encrypt_memory() and netpgp_decrypt_memory()
+ overhaul netpgp(1) to work with stdin/stdout if no filenames specified:

% netpgp --encrypt < a | netpgp --decrypt > b
netpgp: default key set to "C0596823"
netpgp: default key set to "C0596823"
pub 2048/RSA (Encrypt or Sign) 1b68dcfcc0596823 2004-01-12
Key fingerprint: d415 9deb 336d e4cc cdfa 00cd 1b68 dcfc c059 6823
uid              Alistair Crooks <agc@netbsd.org>
uid              Alistair Crooks <agc@pkgsrc.org>
uid              Alistair Crooks <agc@alistaircrooks.com>
uid              Alistair Crooks <alistair@hockley-crooks.com>
netpgp passphrase:
% diff a b
% ls -al a b
-rw-r--r--  1 agc  agc  15243 Dec 20 08:55 a
-rw-r--r--  1 agc  agc  15243 Dec 21 17:15 b
%

% netpgp --sign < a | netpgp --cat > b
netpgp: default key set to "C0596823"
netpgp: default key set to "C0596823"
pub 2048/RSA (Encrypt or Sign) 1b68dcfcc0596823 2004-01-12
Key fingerprint: d415 9deb 336d e4cc cdfa 00cd 1b68 dcfc c059 6823
uid              Alistair Crooks <agc@netbsd.org>
uid              Alistair Crooks <agc@pkgsrc.org>
uid              Alistair Crooks <agc@alistaircrooks.com>
uid              Alistair Crooks <alistair@hockley-crooks.com>
netpgp passphrase:
Good signature for <stdin> made Mon Dec 21 18:25:02 2009
using RSA (Encrypt or Sign) key 1b68dcfcc0596823
pub 2048/RSA (Encrypt or Sign) 1b68dcfcc0596823 2004-01-12
Key fingerprint: d415 9deb 336d e4cc cdfa 00cd 1b68 dcfc c059 6823
uid              Alistair Crooks <alistair@hockley-crooks.com>
uid              Alistair Crooks <agc@pkgsrc.org>
uid              Alistair Crooks <agc@netbsd.org>
uid              Alistair Crooks <agc@alistaircrooks.com>
uid              Alistair Crooks (Yahoo!) <agcrooks@yahoo-inc.com>
%

+ add explanations of memory-based operations to manual pages
2009-12-22 06:03:24 +00:00
dyoung
956cd94758 Describe arguments "allocfn", "freefn", and "source" of vmem_create(9)
in more detail.  Describe vmem_add(9).  Write a new BUGS section that
warns about aspects of vmem(9) behavior that may surprise first-time
users.
2009-12-21 22:49:18 +00:00
dyoung
664580ff00 Fix MKDEBUGLIB=yes builds: add entries
/usr/lib/lib{avl,nvpair,umem,uutil,zfs,zpool}_g.a with keywords
'zfs' and 'debuglib'.  Add the keyword 'binutils' to entries
/usr/lib/lib{bfd,iberty,opcodes}_g.a.
2009-12-21 21:09:41 +00:00
mrg
2dc54d1398 move the build of pax before libelf. fixes my build of tools/libelf,
though i didn't look to see why libelf needs pax.
2009-12-21 20:57:36 +00:00
matt
a0ead35a8e uvm_page_physload takes paddr_t's not vaddr_t's. 2009-12-21 20:57:31 +00:00
gdt
daad9cefc2 In the introduction, point out that RA_WB is intended for recurring
fixed-sized transfers.  Clarification requested by pooka@.
2009-12-21 19:04:36 +00:00
thorpej
3f0d4dd15e Note when this appeared in NetBSD. 2009-12-21 18:27:48 +00:00
thorpej
aa6d6cf7b8 Add support for building libelf in a host-tool environment.
XXX Makefile.disklabel is really mis-named, but I'm not going to tackle
that problem right now.
2009-12-21 18:21:17 +00:00
njoly
54d7ff3b44 Add netbsd32_compat_50.c to netbsd32 module sources list. 2009-12-21 16:40:58 +00:00
njoly
5d50e994de Do not include fs_lfs.h unless _KERNEL_OPT is defined. 2009-12-21 16:18:17 +00:00
mbalmer
9e1aa40062 Better wording. 2009-12-21 15:48:33 +00:00
uebayasi
3db267ebd3 s/sed/${SED}/; s/xargs/${XARGS}/ 2009-12-21 15:37:25 +00:00
njoly
a82811a116 Remove SYS_compat_50_mq_timedreceive/SYS_compat_50_mq_timedsend
duplicate entries.

Fix a KASSERT when unloading the compat kernel module.
2009-12-21 15:13:13 +00:00
christos
7b9eb38d5c Remove unnecessary casts. 2009-12-21 12:44:48 +00:00
nonaka
2d1090dc2d Added dmesg, mount_msdos. 2009-12-21 11:22:41 +00:00
nonaka
7fea745bdc comment out KLOADER. 2009-12-21 11:20:07 +00:00
wiz
8bdb893510 Free pt in another error case.
Found by Henning Petersen using cppcheck, in PR 42488.
2009-12-21 09:17:37 +00:00
mbalmer
0b145a4077 Fix synopsis to make it clear that at least one lladdr is required. 2009-12-21 08:42:39 +00:00
christos
0283f36219 PR/42486: Ed Ravin nfsd sometimes exits prematurely during port-scan fix
from freebsd bin 61084 applied (preserving errno properly). The accept
code should be merged.
2009-12-21 05:06:55 +00:00
thorpej
a2307e2ec3 - _libelf_globals::libelf_arch and _libelf_globals::libelf_class are
completely unused.  Remove them.
- _libelf_globals::libelf_byteorder is really all about the byte order of
  the host running libelf, so replace it with a _libelf_host_byteorder()
  internal function that computes the host byte order in a very portable
  way (doesn't rely on BSD-specific header files).
2009-12-20 23:23:46 +00:00
rmind
4fff15550a Add comment about locking. 2009-12-20 23:00:59 +00:00
mrg
9a7ae38999 remove dated and wrong comments about curlwp being NULL.
_kernel_{,un}lock() always assume it is valid now.
2009-12-20 20:42:23 +00:00
christos
3acd53d157 add libelf 2009-12-20 20:15:07 +00:00
mrg
6879cbdf8e create the ecoff copy of the install kernel so the prom can boot it.
from PR 39915.
2009-12-20 19:53:36 +00:00
pooka
ea5f9a0f11 Add a simple terminal program which uses a rump kernel for a ucom@usb
terminal and host terminal stdin/stdout for human interaction.
Tipsy just simply shovels bits between the two.  I can use my
JavaStation Krups (*) serial console with this ... without having
to worry abort those pesky usb drivers crashing my desktop kernel.

*) strictly speaking it's uwe's ;)
2009-12-20 19:50:29 +00:00
pooka
a942008121 Include tty driver here for now to make this usable. Will disappear
from here later when I figure out the proper place.
(I'd commit it as a separate component, but I can't figure out how
to classify it, since it's logically none of vfs/net/dev)
2009-12-20 19:44:21 +00:00
mrg
204f6553a5 PRIVATE_VERSION(arch) isn't ever used, so don't try to setup this member
of _libelf{}.  ELF??_MACHDEP_ID may not be defined if ELFSIZE wasn't
defined before including this file.

this fixes a build error on mips platforms.
2009-12-20 19:38:13 +00:00
pooka
f015d3c5a1 Add a pointing to an explanation of why we have #ifdef pmax stuff in here. 2009-12-20 19:06:44 +00:00
dsl
795733c59e Add a large comment about disk geometries.
Rename (with #defines) the variables use for aligning partitions to
separate them from the bios geometry.
All in advance of allowing other partition alignments (eg 2048 sectors).
2009-12-20 17:32:09 +00:00
jruoho
e050282388 Add myself. 2009-12-20 16:59:39 +00:00
pooka
70b07cba47 +libulpt 2009-12-20 15:43:57 +00:00
pooka
fe1700b9bf Add ucom@usb support. This uses the uplcom hardware driver currently
(because that's the hardware I happen to have), but others can just
be plugged in if a need arises.
2009-12-20 15:43:13 +00:00
pooka
2960de1123 Improve bulk transfer implementation by adding more complete
support for short reads.

Ironically, in some cases this works *worse* than the previous
incorrect implementation which silently ignored short reads.
Namely, I can now probe my sd@umass USB stick only once without
having to replug it.  Some ugen "bus reset" is probably needed,
but what exactly is unknown, and manual handjobs will have to
suffice for now.
2009-12-20 15:32:46 +00:00
dsl
e9c65c5007 Push the mount path for mount_mfs through realpath().
This matches what other fs do.
Fixes PR/20362
2009-12-20 15:21:13 +00:00
pooka
3a5d99a092 add comment about prospective perils to previous 2009-12-20 13:56:36 +00:00
pooka
3b2dd63c4d pthread_cond_timedwait (and therefore rumpuser_cv_timedwait) wants
an absolute time instead of a delta.  Fix bug which caused timed
tsleeps to always wake up immediately (unless the system clock was
around "0", which was not very probable ;).
2009-12-20 13:49:36 +00:00
kiyohara
414776980d Set filter at lan9118_init() and lan9118_ioctl with SIOCSIFFLAGS. 2009-12-20 10:57:35 +00:00
dsl
2a54322c7b If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567
2009-12-20 09:36:05 +00:00
thorpej
cf9dd0698e Add libelf files. 2009-12-20 05:53:34 +00:00
thorpej
d04120af38 Build libelf. 2009-12-20 05:52:41 +00:00
thorpej
acdbfc25c4 Enable __LIBELF_HAVE_ELF_SYMINFO. 2009-12-20 05:52:15 +00:00
thorpej
c6b51a6f4e Add defns for Elf{32,64}_Syminfo. 2009-12-20 05:50:20 +00:00
rmind
3c74cdf150 signal(9) code: add some comments, improve/fix wrong ones. While here, kill
trailing whitespaces, wrap long lines, etc.  No functional changes intended.
2009-12-20 04:49:09 +00:00
rmind
c628fa1620 Fix few problems in evbmips/rmixl:
- mach_init: use mips_init_lwp0_uarea(), do not hardcode it.  Do not call
  ksyms_init(), it's called in MI.  Also, avoid struct user in few places.
- findroot: use deviter interface.
2009-12-20 04:11:37 +00:00
mrg
749956a4dc - remove unused ft_want_ast()
- give nmi_sun* ENTRY() points so they show up in symbols properly
- add some disabled code to use this cpu's idlelwp area when hatching
  a cpu, but right now it makes this worse not better...
2009-12-20 03:53:46 +00:00
mrg
9d650f3d7e make CPU_INFO_FOREACH() set the iterator count to '0' in the !MP case. 2009-12-20 03:50:56 +00:00
mrg
c332dfdee7 fix the previous to compile !MULTIPROCESSOR. 2009-12-20 03:48:30 +00:00