]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoFix a couple of small typos, and remove a duplicate
Doug Barton [Sun, 21 Oct 2007 05:16:52 +0000 (05:16 +0000)]
Fix a couple of small typos, and remove a duplicate

16 years agoRemove references to the 'e_phnum' field of the ELF header. Instead,
Joseph Koshy [Sun, 21 Oct 2007 05:15:07 +0000 (05:15 +0000)]
Remove references to the 'e_phnum' field of the ELF header.  Instead,
point the reader to the elf_getphnum() function.

MFC after: 1 day

16 years agoChange to the original version of the poem titled "The Guy in the Glass,"
Doug Barton [Sun, 21 Oct 2007 05:15:02 +0000 (05:15 +0000)]
Change to the original version of the poem titled "The Guy in the Glass,"
and add the proper attribution. Also add an explanation for the Middle
English word used in the first line.

16 years agoRefer the reader to the elf_update(3) manual page for more information
Joseph Koshy [Sun, 21 Oct 2007 05:08:40 +0000 (05:08 +0000)]
Refer the reader to the elf_update(3) manual page for more information
on application control of ELF object layout.

MFC after: 1 day

16 years agoThis time to the right branch
Julian Elischer [Sun, 21 Oct 2007 04:27:07 +0000 (04:27 +0000)]
This time to the right branch
note the renaming of the kthread_xxx calls

16 years agofix up some code for older systems changed by accident in the last commit
Julian Elischer [Sun, 21 Oct 2007 04:11:13 +0000 (04:11 +0000)]
fix up some code for older systems changed by accident in the last commit
this whole support for systems earlier than 5.0 should probably be removed
but I'll at least FIX it before removing it, so that CVS has it right.

16 years agoMark the point where kthread_xxx disappeared and kproc_xxx appeared
Julian Elischer [Sun, 21 Oct 2007 04:04:09 +0000 (04:04 +0000)]
Mark the point where kthread_xxx disappeared and kproc_xxx appeared

16 years agoRemove out of date comments
Julian Elischer [Sun, 21 Oct 2007 03:31:40 +0000 (03:31 +0000)]
Remove out of date comments

16 years agoNote the temporary removal of these functions.
Julian Elischer [Sun, 21 Oct 2007 02:45:57 +0000 (02:45 +0000)]
Note the temporary removal of these functions.

16 years agoThis was kthread.9
Julian Elischer [Sun, 21 Oct 2007 02:40:28 +0000 (02:40 +0000)]
This was kthread.9
it has  been duplicated to kproc.9

kthread.9 will continue on to describe the coming kthread_xxx
functions which will actually make threads.

16 years agoAdd the show command to print the partition information ala gpt(8).
Marcel Moolenaar [Sun, 21 Oct 2007 00:04:23 +0000 (00:04 +0000)]
Add the show command to print the partition information ala gpt(8).
Update the manpage accordingly. While here, mention the MBR scheme
and add a bugs section. With this commit gpt(8) can be obsoleted.

16 years agoRename the kthread_xxx (e.g. kthread_create()) calls
Julian Elischer [Sat, 20 Oct 2007 23:23:23 +0000 (23:23 +0000)]
Rename the kthread_xxx (e.g. kthread_create()) calls
to kproc_xxx as they actually make whole processes.
Thos makes way for us to add REAL kthread_create() and friends
that actually make theads. it turns out that most of these
calls actually end up being moved back to the thread version
when it's added. but we need to make this cosmetic change first.

I'd LOVE to do this rename in 7.0  so that we can eventually MFC the
new kthread_xxx() calls.

16 years agoFold multiple asm statements into one so that the compiler at a certain
Bjoern A. Zeeb [Sat, 20 Oct 2007 22:18:42 +0000 (22:18 +0000)]
Fold multiple asm statements into one so that the compiler at a certain
optimization level (-march=pentium-mmx for example) does not insert
intermediate ops which would trash the carry.

Change both sys/i386/i386/in_cksum.c[1] and sys/i386/include/in_cksum.h.

To my best understanding the same problem was addressed in rev. 1.16
of src/sys/i386/include/in_cksum.h for just a single function 3y ago.

Reviewed by:  jhb
Submitted by: Zhouyi ZHOU <zhouzhouyi FreeBSD.org> (intial version of [1])
MFC after:    5 days
PR:           115678, 69257

16 years agoRevert back to including the whole net/bpf.h again.
Max Laier [Sat, 20 Oct 2007 20:23:39 +0000 (20:23 +0000)]
Revert back to including the whole net/bpf.h again.

Requested by: sam, nork
X-MFC after: now

16 years ago- Convert NO_INSTALLLIB option to a new syntax: makefiles should
Ruslan Ermilov [Sat, 20 Oct 2007 19:01:50 +0000 (19:01 +0000)]
- Convert NO_INSTALLLIB option to a new syntax: makefiles should
  test MK_INSTALLLIB, users can set WITHOUT_INSTALLLIB.  The old
  NO_INSTALLLIB is still supported as several makefiles set it.

- While here, fix an install when instructed not to install libs
  (usr.bin/lex/lib/Makefile).

PR: bin/114200
Submitted by: Henrik Brix Andersen

16 years agoAlign the warning message with the one in bsd.own.mk.
Ruslan Ermilov [Sat, 20 Oct 2007 18:46:15 +0000 (18:46 +0000)]
Align the warning message with the one in bsd.own.mk.

16 years agoAdd the -h <bindip> option to mountd, similar to the one in nfsd(8)
Matteo Riondato [Sat, 20 Oct 2007 11:25:34 +0000 (11:25 +0000)]
Add the -h <bindip> option to mountd, similar to the one in nfsd(8)

-h bindip
Specify specific IP addresses to bind to for TCP and UDP requests.
This option may be specified multiple times.  If no -h option is
specified, mountd will bind to INADDR_ANY.  Note that when specifying
IP addresses with -h, mountd will automatically add 127.0.0.1 and if
IPv6 is enabled, ::1 to the list.

PR: bin/114097
Reviewed by: pjd (an eariler version of the patch)
MFC after: 1 week

16 years agoRemove redundant prototypes.
Pawel Jakub Dawidek [Sat, 20 Oct 2007 09:41:55 +0000 (09:41 +0000)]
Remove redundant prototypes.

16 years agoUse ETHER_BPF_MTAP so that the vlan tags are visible to bpf(4) when stacked
Andrew Thompson [Sat, 20 Oct 2007 02:43:23 +0000 (02:43 +0000)]
Use ETHER_BPF_MTAP so that the vlan tags are visible to bpf(4) when stacked
under a vlan.

MFC after: 3 days

16 years agoUse ETHER_BPF_MTAP so that the vlan tags are visible to bpf(4) when bridging a
Andrew Thompson [Sat, 20 Oct 2007 02:10:10 +0000 (02:10 +0000)]
Use ETHER_BPF_MTAP so that the vlan tags are visible to bpf(4) when bridging a
vlan trunk.

Discussed with: csjp
MFC after: 3 days

16 years agoAllow adding a user(s) to additional groups in batch mode as well.
Mike Makonnen [Sat, 20 Oct 2007 00:45:31 +0000 (00:45 +0000)]
Allow adding a user(s) to additional groups in batch mode as well.

Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> (modulo minor changes)
MFC after: 2 weeks

16 years agoThe amd_map_program knob can potentially contain a command whose output
Mike Makonnen [Fri, 19 Oct 2007 22:55:42 +0000 (22:55 +0000)]
The amd_map_program knob can potentially contain a command whose output
is then used as an argument to the amd program. This outpu may contain
newlines, but the script did not take care to strip those newlines before
apending it to rc_flags. Revision 1.72 of rc.subr(8) introduced changes that
exposed this problem (specifically putting the final eval'ed command in
quotes).[1]

Also, for correctness' sake, shell directives appended to the command-line
by the script should go into command_args, and not appended directly
to rc_flags.

Reported by: John E Hein <jhein@timing.com> [1]
Tested by: John E Hein <jhein@timing.com>
MFC after: 1 week

16 years agoIPFilter has been updated from 4.1.23 to 4.1.28.
Xin LI [Fri, 19 Oct 2007 20:15:57 +0000 (20:15 +0000)]
IPFilter has been updated from 4.1.23 to 4.1.28.

16 years agoFix build with NETGRAPH_DEBUG.
Ruslan Ermilov [Fri, 19 Oct 2007 20:09:58 +0000 (20:09 +0000)]
Fix build with NETGRAPH_DEBUG.

16 years agoPut comments about syscalls by the correct ones, and use the correct syscall
Ed Maste [Fri, 19 Oct 2007 19:17:53 +0000 (19:17 +0000)]
Put comments about syscalls by the correct ones, and use the correct syscall
number in the comment.

16 years agoChange IPTOS_CE to IPTOS_ECN_CE.
Rui Paulo [Fri, 19 Oct 2007 18:24:19 +0000 (18:24 +0000)]
Change IPTOS_CE to IPTOS_ECN_CE.

Approved by: njl (mentor)

16 years agofix an incorrect setting of `retry times' in case of zd1211b, we
Sam Leffler [Fri, 19 Oct 2007 16:33:31 +0000 (16:33 +0000)]
fix an incorrect setting of `retry times' in case of zd1211b, we
should set the ZYD_MACB_MAX_RETRY register instead of ZYD_MAC_RETRY

Submitted by: Weongyo Jeong
MFC after: 1 week

16 years agoTrim release notes for 8-CURRENT.
Bruce A. Mah [Fri, 19 Oct 2007 16:02:17 +0000 (16:02 +0000)]
Trim release notes for 8-CURRENT.

16 years ago- Gigabyte G33-S2H fixup, due to the present of multiple competing
Ariff Abdullah [Fri, 19 Oct 2007 15:49:39 +0000 (15:49 +0000)]
- Gigabyte G33-S2H fixup, due to the present of multiple competing
  codecs. Codec at address 0 seems purely digital, or perhaps an HDMI
  interface. Let the driver skip it and continue scanning the codecs
  starting with address 2 (Realtek ALC885).
  * Due to possibilities of future similar cases, put enough logic
    in hdac_scan_codecs() to force codec scanning starting from
    XX address via tunable "hint.pcm.%d.codec_index".

  Reported / Tested by: Toomas Pelberg <toomasp@gmx.net>

- Trivial headphone / speaker automute fixup for Fujitsu-Siemens
  AMILO Si 1848 laptop.

  Reported / Tested by: Ed <ed@bsd.it>

- Trivial headphone / speaker automute fixup for Fujitsu-Siemens
  Lifebook S7020D laptop.

  Reported / Tested by: Jaromir Dvoracek <jarek@ataxo.com>

- Some smart vendor trying to create interplanetary wormhole by
  screwing pci config space during their BIOS update. The side effects
  of their failure attempt includes mutilated hardware id, broken
  speaker automuting and loosing the entire analog CD connectivity,
  thus causing enough collateral damages to collapse the entire
  universe.  Move along with it.

  Please exercise extra cautious when applying BIOS updates.

  Reported / Tested by: Pietro Cerutti <gahr@gahr.ch>
                        - assembled laptop, based on the MSI-1034
                          (662) which is now becoming MSI-034A.

- Fix no sound issues (on headphones) for Lenovo ThinkCentre A55 due
  to global automute table entry which is not applicable for
  non-laptops.

  Reported / Tested by: Piotr Smyrak <piotr.smyrak@heron.pl>

- Speaker mute control for HP DC7700 since the front headphone jack
  does not generate any interesting unsolicited signal/response.

  Reported / Tested by: tyop @ irc.freenode.net

Approved by: re (kensmith)
MFC after: 3 days

16 years agoImplement new apply callback mechanism to handle item forwarding.
Alexander Motin [Fri, 19 Oct 2007 15:04:17 +0000 (15:04 +0000)]
Implement new apply callback mechanism to handle item forwarding.
When item forwarded refence counter is incremented, when item
processed, counter decremented. When counter reaches zero,
apply handler is getting called.
Now it allows to report right connect() call status from user-level
at the right time.

16 years agoRegen (nscd -> cached, WITHOUT_LIBPTHREAD disabling BIND).
Ruslan Ermilov [Fri, 19 Oct 2007 14:03:05 +0000 (14:03 +0000)]
Regen (nscd -> cached, WITHOUT_LIBPTHREAD disabling BIND).

16 years agocached -> nscd
Ruslan Ermilov [Fri, 19 Oct 2007 14:01:25 +0000 (14:01 +0000)]
cached -> nscd

16 years agoComply with the removal of IPTOS_CE and IPTOS_ECT.
Rui Paulo [Fri, 19 Oct 2007 12:48:02 +0000 (12:48 +0000)]
Comply with the removal of IPTOS_CE and IPTOS_ECT.
Discussed on freebsd-net with no objections.

Approved by: njl (mentor), rwatson

16 years agoRemove IPTOS_CE and IPTOS_ECT constants. They were defined in RFC 2481
Rui Paulo [Fri, 19 Oct 2007 12:46:15 +0000 (12:46 +0000)]
Remove IPTOS_CE and IPTOS_ECT constants. They were defined in RFC 2481
but later obsoleted by RFC 3168.
Discussed on freebsd-net with no objections.

Approved by: njl (mentor), rwatson

16 years agoSwitch over to ULE as the default scheduler for amd64 and i386
Ken Smith [Fri, 19 Oct 2007 12:30:33 +0000 (12:30 +0000)]
Switch over to ULE as the default scheduler for amd64 and i386
architectures.

16 years agoImplement the async (really, delayed-write) mount option for msdosfs.
Bruce Evans [Fri, 19 Oct 2007 12:23:25 +0000 (12:23 +0000)]
Implement the async (really, delayed-write) mount option for msdosfs.

This is much simpler than for ffs since there are many fewer places
where we need to choose between a delayed write and a sync write --
just 5 in msdosfs and more than 30 in ffs.

This is more complete and correct than in ffs.  Several places in ffs
are are still missing the choice.  ffs_update() has a layering violation
that breaks callers which want to force a sync update (mainly fsync(2)
and O_SYNC write(2)).

However, fsync(2) and O_SYNC write(2) are still more broken than in
ffs, since they are broken for default (non-sync non-async) mounts
too.  Both fail to sync the FAT in all cases, and both fail to sync
the directory entry in some cases after losing a race.  Async everything
is probably safer than the half-baked sync of metadata given by default
mounts.

16 years agoInstall getaudit_addr(2) and setaudit_addr(2) links to getaudit(2) and
Robert Watson [Fri, 19 Oct 2007 10:37:34 +0000 (10:37 +0000)]
Install getaudit_addr(2) and setaudit_addr(2) links to getaudit(2) and
setaudit(2).

MFC after: 3 days
Submitted by: csjp
Obtained from: TrustedBSD Project

16 years agoPartial backout of rev. 1.6, but instead of putting kerberos5_server_flags
Mike Makonnen [Fri, 19 Oct 2007 08:59:59 +0000 (08:59 +0000)]
Partial backout of rev. 1.6, but instead of putting kerberos5_server_flags
back in command_args, put it where rc.subr(8) expects it: kerberos5_flags.

16 years agoPick the smallest possible TCP window scaling factor that will still allow
Mike Silbersack [Fri, 19 Oct 2007 08:53:14 +0000 (08:53 +0000)]
Pick the smallest possible TCP window scaling factor that will still allow
us to scale up to sb_max, aka kern.ipc.maxsockbuf.

We do this because there are broken firewalls that will corrupt the window
scale option, leading to the other endpoint believing that our advertised
window is unscaled.  At scale factors larger than 5 the unscaled window will
drop below 1500 bytes, leading to serious problems when traversing these
broken firewalls.

With the default maxsockbuf of 256K, a scale factor of 3 will be chosen by
this algorithm.  Those who choose a larger maxsockbuf should watch out
for the compatiblity problems mentioned above.

Reviewed by: andre

16 years agoThe POP daemon's temporary mail file has a leading dot ('.'). This was
Mike Makonnen [Fri, 19 Oct 2007 07:18:56 +0000 (07:18 +0000)]
The POP daemon's temporary mail file has a leading dot ('.'). This was
lost in the shell script rewrite of the rmuser command.

Submitted by: Ian Smith <smithi@nimnet.asn.au>

16 years agoRemove out of date notes, the atoi code is thread-safe and async-cancel
David Xu [Fri, 19 Oct 2007 06:23:39 +0000 (06:23 +0000)]
Remove out of date notes, the atoi code is thread-safe and async-cancel
safe.

Discussed with: desichen

16 years agoRemove stale reference to mount_std.
Craig Rodrigues [Fri, 19 Oct 2007 05:29:18 +0000 (05:29 +0000)]
Remove stale reference to mount_std.

16 years agoSmall fix in man pages after cached -> nscd renaming.
Michael Bushkov [Fri, 19 Oct 2007 00:16:29 +0000 (00:16 +0000)]
Small fix in man pages after cached -> nscd renaming.

Approved by: brooks (mentor)

16 years agoThe previous revision, updating vm_object_page_remove() for the new page
Alan Cox [Thu, 18 Oct 2007 23:02:18 +0000 (23:02 +0000)]
The previous revision, updating vm_object_page_remove() for the new page
cache, did not account for the case where the vm object has nothing but
cached pages.

Reported by: kris, tegge
Reviewed by: tegge
MFC after: 3 days

16 years agoFix cosmetic bug in stale copy of msync_args. 'len' is size_t, not int.
Peter Wemm [Thu, 18 Oct 2007 22:47:39 +0000 (22:47 +0000)]
Fix cosmetic bug in stale copy of msync_args.  'len' is size_t, not int.

16 years agoUse a uint16_t type for the vlan tag rather an int.
Andrew Thompson [Thu, 18 Oct 2007 21:52:31 +0000 (21:52 +0000)]
Use a uint16_t type for the vlan tag rather an int.

16 years agoPullup IPFilter 4.1.28 from the vendor branch into HEAD.
Darren Reed [Thu, 18 Oct 2007 21:52:14 +0000 (21:52 +0000)]
Pullup IPFilter 4.1.28 from the vendor branch into HEAD.

MFC after: 7 days

16 years agoUnbreak arm build by removing duplicate symbols.
Olivier Houchard [Thu, 18 Oct 2007 21:44:21 +0000 (21:44 +0000)]
Unbreak arm build by removing duplicate symbols.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r172771,
Darren Reed [Thu, 18 Oct 2007 21:42:51 +0000 (21:42 +0000)]
This commit was generated by cvs2svn to compensate for changes in r172771,
which included commits to RCS files with non-trunk default branches.

16 years agoImport IPFilter 4.1.28
Darren Reed [Thu, 18 Oct 2007 21:42:51 +0000 (21:42 +0000)]
Import IPFilter 4.1.28

16 years agoImport IPFilter 4.1.28
Darren Reed [Thu, 18 Oct 2007 21:42:51 +0000 (21:42 +0000)]
Import IPFilter 4.1.28

16 years agoThe bridging output function puts the mbuf directly on the interfaces send
Andrew Thompson [Thu, 18 Oct 2007 21:22:15 +0000 (21:22 +0000)]
The bridging output function puts the mbuf directly on the interfaces send
queue so the output network card must support the same tagging mechanism as
how the frame was input (prepended Ethernet header tag or stripped HW mflag).

Now the vlan Ethernet header is _always_ stripped in ether_input and the mbuf
flagged, only only network cards with VLAN_HWTAGGING enabled would properly
re-tag any outgoing vlan frames.

If the outgoing interface does not support hardware tagging then readd the vlan
header to the front of the frame. Move the common vlan encapsulation in to
ether_vlanencap().

Reported by: Erik Osterholm, Jon Otterholm
MFC after: 1 week

16 years agoThis commit was generated by cvs2svn to compensate for changes in r172767,
Simon L. B. Nielsen [Thu, 18 Oct 2007 20:19:33 +0000 (20:19 +0000)]
This commit was generated by cvs2svn to compensate for changes in r172767,
which included commits to RCS files with non-trunk default branches.

16 years agoImport DTLS security fix from upstream OpenSSL_0_9_8-stable branch.
Simon L. B. Nielsen [Thu, 18 Oct 2007 20:19:33 +0000 (20:19 +0000)]
Import DTLS security fix from upstream OpenSSL_0_9_8-stable branch.

From the OpenSSL advisory:

Andy Polyakov discovered a flaw in OpenSSL's DTLS
implementation which could lead to the compromise of clients
and servers with DTLS enabled.

DTLS is a datagram variant of TLS specified in RFC 4347 first
supported in OpenSSL version 0.9.8. Note that the
vulnerabilities do not affect SSL and TLS so only clients and
servers explicitly using DTLS are affected.

We believe this flaw will permit remote code execution.

Security: CVE-2007-4995
Security: http://www.openssl.org/news/secadv_20071012.txt

16 years agoRemove _FREEFALL_CONFIG hacks
Peter Wemm [Thu, 18 Oct 2007 19:42:50 +0000 (19:42 +0000)]
Remove _FREEFALL_CONFIG hacks

16 years agoRemove _FREEFALL_CONFIG hacks. su+pam_ksu works well enough to use on
Peter Wemm [Thu, 18 Oct 2007 19:36:31 +0000 (19:36 +0000)]
Remove _FREEFALL_CONFIG hacks.  su+pam_ksu works well enough to use on
the freebsd.org cluster.

16 years agoForced commit to signify that previous commit was:
Peter Grehan [Thu, 18 Oct 2007 18:58:07 +0000 (18:58 +0000)]
Forced commit to signify that previous commit was:

Reviewed: yar@

16 years agoTeach /etc/rc.d/ppp how to start/stop individual instances
Maksim Yevmenkin [Thu, 18 Oct 2007 17:10:40 +0000 (17:10 +0000)]
Teach /etc/rc.d/ppp how to start/stop individual instances
of ppp. This is an extension of previous commit.

Submitted by: Yuri Kurenkov < y dot kurenkov at init dot ru >
Reviewed by: mtm
MFC after: 3 days

16 years agoAdd a -z flag to nfsstat which zeros the NFS statistics after displaying
John Baldwin [Thu, 18 Oct 2007 16:38:07 +0000 (16:38 +0000)]
Add a -z flag to nfsstat which zeros the NFS statistics after displaying
them.

MFC after: 1 week
Requested by: ps
Submitted by: ps (6 years ago)

16 years agoAdd noclusterr and noclusterw options to the options list. I forgot these
Bruce Evans [Thu, 18 Oct 2007 16:25:47 +0000 (16:25 +0000)]
Add noclusterr and noclusterw options to the options list.  I forgot these
when I implemented clustering.

16 years agoFix some style bugs in the mount options list. Mainly, sort the list,
Bruce Evans [Thu, 18 Oct 2007 15:48:10 +0000 (15:48 +0000)]
Fix some style bugs in the mount options list.  Mainly, sort the list,
leaving space for adding missing options.  Negative options are sorted
after removing their "no" prefix, and generic options are sorted before
msdosfs-specific ones.

16 years agoExplicitly verify if we have found the VERSION_GEN script
Yaroslav Tykhiy [Thu, 18 Oct 2007 15:21:35 +0000 (15:21 +0000)]
Explicitly verify if we have found the VERSION_GEN script
instead of passing the possibly null argument to awk(1) and
getting an obscure error from it.

16 years agoTeach makewhatis.c to treat .SS with the same severity as .SH.
Edwin Groothuis [Thu, 18 Oct 2007 12:53:11 +0000 (12:53 +0000)]
Teach makewhatis.c to treat .SS with the same severity as .SH.

At least one port (net-mgmt/net-snmp) creates man-pages which are
in the format:

.SH NAME
The Net-SNMP agent \- The snmp agent responds to SNMP queries from management stations.

.PP
.SS "Modules"

At this moment, makewhatis determines the end of the .SH NAME section
as where it finds .SH again, but there is none here, is it "terminated"
by the .SS.

PR: bin/116706
Submitted by: edwin@
Approved by: re (Ken Smith), grog (mentor)
MFC after: 1 week

16 years agoThe fork symbols aren't MD, they already live in sys/.
Yaroslav Tykhiy [Thu, 18 Oct 2007 11:28:38 +0000 (11:28 +0000)]
The fork symbols aren't MD, they already live in sys/.

Found by: version_gen.awk
Tested by: md5(1) (libc.so hasn't changed at all)

16 years agoThe upper while loop has already recycled child process, so the if
David Xu [Thu, 18 Oct 2007 11:05:30 +0000 (11:05 +0000)]
The upper while loop has already recycled child process, so the if
statement has never executed as expected, fix it.

MFC after: 3 days

16 years agoAdd Winchiphead (or Nanjin QinHeng Electronics) USB Serial converter driver.
Takanori Watanabe [Thu, 18 Oct 2007 10:51:06 +0000 (10:51 +0000)]
Add Winchiphead (or Nanjin QinHeng Electronics) USB Serial converter driver.
I tested it on cheap serial converter.(Only costs 980JPY.)

16 years agoDistinguish the cases when a dup symbol is in different versions
Yaroslav Tykhiy [Thu, 18 Oct 2007 10:32:28 +0000 (10:32 +0000)]
Distinguish the cases when a dup symbol is in different versions
(evil, needs a error) or in the same version (harmless, deserves
a mere warning).

Noticed by:     grehan@, tinderbox

16 years agoRemoving obsolete etc/cached.conf.
Michael Bushkov [Thu, 18 Oct 2007 09:09:22 +0000 (09:09 +0000)]
Removing obsolete etc/cached.conf.

Approved by: brooks (mentor)

16 years agoDo not bail out for cleanworld target just because
Xin LI [Thu, 18 Oct 2007 08:41:52 +0000 (08:41 +0000)]
Do not bail out for cleanworld target just because
chflags is failed.

16 years agoForced commit to note cached.conf -> nscd.conf repocopy. etc/Makefile
Michael Bushkov [Thu, 18 Oct 2007 08:26:20 +0000 (08:26 +0000)]
Forced commit to note cached.conf -> nscd.conf repocopy. etc/Makefile
changed accordingly.

Approved by: brooks (mentor)

16 years agoIn msdosfs_settattr(), don't do synchronous updates of the denode
Bruce Evans [Thu, 18 Oct 2007 07:26:21 +0000 (07:26 +0000)]
In msdosfs_settattr(), don't do synchronous updates of the denode
(except indirectly for the size pseudo-attribute).  If anything deserves
a sync update, then it is ids and immutable flags, since these are
related to security, but ffs never synced these and msdosfs doesn't
support them.  (ufs_setattr() only does an update in one case where
it is least needed (for timestamps); it did pessimal sync updates for
timestamps until 1998/03/08 but was changed for unlogged reasons related
to soft updates.)

Now msdosfs calls deupdat() with waitfor == 0, which normally gives a
delayed update to disk but always gives a sync update of timestamps
in core, while for ffs everything is delayed until the syncer daemon
or other activity causes an update (except for timestamps).

This gives a large optimization mainly for things like cp -p, where
attribute adjustment could easily triple the number of physical I/O's
if it is done synchronously (but cp -p to msdosfs is not as bad as
that, since msdosfs doesn't support many attributes so null adjustments
are more common, and msdosfs doesn't support ctimes so even if cp
doesn't weed out null adjustments they don't become non-null after
clobbering the ctime).

16 years agoFix build from errors exposed with recent version_gen.awk commit.
Peter Grehan [Thu, 18 Oct 2007 07:23:31 +0000 (07:23 +0000)]
Fix build from errors exposed with recent version_gen.awk commit.
Not quite sure if this is 100% correct: awaiting review. But quieten
tinderbox in the meantime.

16 years agocorrect guard variable names.
Warner Losh [Thu, 18 Oct 2007 05:43:44 +0000 (05:43 +0000)]
correct guard variable names.

16 years agoMerge support from p4 (from NetBSD) for arm9e and arm10, arm11 cores. Not
Warner Losh [Thu, 18 Oct 2007 05:33:06 +0000 (05:33 +0000)]
Merge support from p4 (from NetBSD) for arm9e and arm10, arm11 cores.  Not
yet connected to the build, but reduces diffs to p4 repo.

Obtained from: NetBSD

16 years agoMerge definitions for ARM9E, ARM10 and ARM11 processors from p4 (which
Warner Losh [Thu, 18 Oct 2007 05:06:58 +0000 (05:06 +0000)]
Merge definitions for ARM9E, ARM10 and ARM11 processors from p4 (which
got them from NetBSD).

16 years ago- Correctly define CACHED_SOCKET_PATH as /var/run/nscd after cached to
Tom McLaughlin [Wed, 17 Oct 2007 23:20:49 +0000 (23:20 +0000)]
- Correctly define CACHED_SOCKET_PATH as /var/run/nscd after cached to
  nscd renaming.

Approved by: mux

16 years agoMFp4:
Yaroslav Tykhiy [Wed, 17 Oct 2007 20:09:56 +0000 (20:09 +0000)]
MFp4:

- Check for duplicated symbols and suggest moving them to ObsoleteVersions.
- Improve and unify error handling.
- Make the regular expressions more uniform, robust, and less sensitive
  to harmless variations in the input such as those to whitespace amount.

Reviewed by: deischen
Tested with: md5 (Version.map files in /usr/obj stay the same)

16 years agoDelete an extra backslash at the end of the xterm-basic entry.
Yaroslav Tykhiy [Wed, 17 Oct 2007 19:58:50 +0000 (19:58 +0000)]
Delete an extra backslash at the end of the xterm-basic entry.
It can be missed easily that the following blank line formally
belongs to the xterm-basic entry due to the unneeded backslash.

PR: bin/80256 (audit trail)

16 years agoMention that less was upgraded to 409.
Xin LI [Wed, 17 Oct 2007 17:52:31 +0000 (17:52 +0000)]
Mention that less was upgraded to 409.

16 years agoAdd whitespace.
Kirill Ponomarev [Wed, 17 Oct 2007 13:47:10 +0000 (13:47 +0000)]
Add whitespace.

16 years agoUpdate for INDEX-8 support.
Kirill Ponomarev [Wed, 17 Oct 2007 13:45:43 +0000 (13:45 +0000)]
Update for INDEX-8 support.

16 years agoPrevent strange crashes in fmt with absurd goal lengths introduced by the
Juli Mallett [Wed, 17 Oct 2007 11:41:40 +0000 (11:41 +0000)]
Prevent strange crashes in fmt with absurd goal lengths introduced by the
support for wide characters.

If the sizeof (wchar_t) times max_length would yield a value beyond
representation in a size_t, exit with a usage error up front, rather than
strange errors down the line from trying to malloc (well, realloc) with a size
of 0.

This is perhaps not the optimal behaviour - a clamp may be more appropriate as
we clamp the value of max_length now anyway, but this is at least better than
segfaulting or worse.  On systems which are friendly to malloc with a value of 0
the results could end up being strange corruption of the output.

16 years agoFix incorrect string formats for netstat/s
Randall Stewart [Wed, 17 Oct 2007 10:16:20 +0000 (10:16 +0000)]
Fix incorrect string formats for netstat/s

PR: 117175
Obtained from: Weongyo Jeong (weongyo.jeong@gmail.com)
MFC after: 1 week

16 years agoFix various memory leaks.
Konstantin Belousov [Wed, 17 Oct 2007 09:52:08 +0000 (09:52 +0000)]
Fix various memory leaks.

Submitted by: rdivacky
Obtained from: OpenBSD
MFC after: 1 week

16 years agoThe previous version included too many file system types in the scan,
Stefan Eßer [Wed, 17 Oct 2007 07:27:51 +0000 (07:27 +0000)]
The previous version included too many file system types in the scan,
since "local" includes also synthetic file systems (e.g. /dev, /proc)
and loopback mounts.

This version uses lsvfs to identify file system types that are local
and additionally not synthetik, loopback mounts, or read-only. This
has been suggested by Craig Rodrigues half a year ago. The patch that
has been committed is based on his suggestion, but slightly modified.

The comments in locate.rc have been updated to reflect the change and
o include zfs and xfs in the example file system parameter that can
be used to override the default outlined above.

PR: 114101
Submitted by: rodrigc at crodrigues dot org (Craig Rodrigues)
MFC: 2 weeks

16 years agoUse the direct mapping, if available, for pmap_zero_page_xscale() as well.
Olivier Houchard [Tue, 16 Oct 2007 20:40:04 +0000 (20:40 +0000)]
Use the direct mapping, if available, for pmap_zero_page_xscale() as well.

16 years agoULE works fine on arm; allow it to be used
Sam Leffler [Tue, 16 Oct 2007 19:25:26 +0000 (19:25 +0000)]
ULE works fine on arm; allow it to be used

Reviewed by: jeff, cognet, imp
MFC after: 1 week

16 years ago- Fix the handling of R_SPARC_OLO10, which is a bit of a special case
Marius Strobl [Tue, 16 Oct 2007 19:17:48 +0000 (19:17 +0000)]
- Fix the handling of R_SPARC_OLO10, which is a bit of a special case
  in the way we implement handling of relocations.
  As for the kernel part this fixes the loading of lots of modules,
  which failed to load due to unresolvable symbols when built after
  the GCC 4.2.0 import. This wasn't due to a change in GCC itself
  though but one of several changes in configuration done along the
  import. Specfically, HAVE_AS_REGISTER_PSEUDO_OP, which causes GCC
  to denote global registers used for scratch purposes and in turn
  GAS uses R_SPARC_OLO10 relocations for, is now defined.
  While at it replace some more ELF_R_TYPE which should have been
  ELF64_R_TYPE_ID but didn't cause problems so far.
- Sync a sanity check between kernel and rtld(1) and change it to be
  maintenance free regarding the type used for the lookup table.
- Sprinkle const on lookup tables.
- Use __FBSDID.

Reported and tested by: yongari
MFC after: 5 days

16 years agoBackout rev 1.62, and revert to use -march=armv5te -D__XSCALE__ instead
Olivier Houchard [Tue, 16 Oct 2007 18:32:37 +0000 (18:32 +0000)]
Backout rev 1.62, and revert to use -march=armv5te -D__XSCALE__ instead
of -mcpu=xscale for XScale.
gcc still has issues with -mcpu=xscale, and now crashes while building
systat.

Reported by: sam
MFC After: 3 days

16 years agoPrint the stack bounds of the thread.
Marcel Moolenaar [Tue, 16 Oct 2007 17:52:59 +0000 (17:52 +0000)]
Print the stack bounds of the thread.

16 years ago- fix sctp_ifn initial refcount issue (prevents deletion)
Randall Stewart [Tue, 16 Oct 2007 14:05:51 +0000 (14:05 +0000)]
- fix sctp_ifn initial refcount issue (prevents deletion)
- fix a bug during cookie collision that prevented an
  association from coming up in a specific restart case.
- Fix it so the shutdown-pending flag gets removed (this is
  more for correctness then needed) when we enter shutdown-sent
  or shutdown-ack-sent states.
- Fix a bug that caused the receiver to sometimes NOT send
  a SACK when a duplicate TSN arrived. Without this fix
  it was possible for the association to fall down if the
- Deleted primary destination is also stored when SCTP_MOBILITY_BASE.
  (Previously, it is stored when only SCTP_MOBILITY_FASTHANDOFF)
- Fix a locking issue where we might call send_initiate_ack() and
  incorrectly state the lock held/not held. Also fix it so that
  when we release the lock the inp cannot be deleted on us.
- Add the debug option that can cause the stack to panic instead
  of aborting an assoc. This does not and should never show up
  in options but is useful for debugging unexpected aborts.
- Add cumack_log sent to track sending cumack information for
  the debug case where we are running a special log per assoc.
- Added extra () aroudn sctp_sbspace macro to avoid compile warnings.
MFC after: 1 week

16 years agoRescue hw.machine_arch in CTL_HW_NAMES.
Ruslan Ermilov [Tue, 16 Oct 2007 11:46:44 +0000 (11:46 +0000)]
Rescue hw.machine_arch in CTL_HW_NAMES.

16 years agoRescue whitespace nits.
Ruslan Ermilov [Tue, 16 Oct 2007 11:39:28 +0000 (11:39 +0000)]
Rescue whitespace nits.

16 years agoFix CTL_VM_NAMES.
Ruslan Ermilov [Tue, 16 Oct 2007 11:32:57 +0000 (11:32 +0000)]
Fix CTL_VM_NAMES.

16 years agoVM_METER is long deprecated.
Ruslan Ermilov [Tue, 16 Oct 2007 11:29:13 +0000 (11:29 +0000)]
VM_METER is long deprecated.

16 years agoRescue parts of the sensorsd commit that are still relevant:
Ruslan Ermilov [Tue, 16 Oct 2007 11:22:58 +0000 (11:22 +0000)]
Rescue parts of the sensorsd commit that are still relevant:

- HW_FLOATINGPOINT renamed to HW_FLOATINGPT.
- Documented HW_REALMEM.
- Sorted as per <sys/sysctl.h>.

16 years agoGet rid of qaddr_t.
Alfred Perlstein [Tue, 16 Oct 2007 10:54:55 +0000 (10:54 +0000)]
Get rid of qaddr_t.

Requested by: bde

16 years agoExport maxswzone, maxbcache, maxtsiz, dfldsiz, maxdsiz, dflssiz, maxssiz,
Alfred Perlstein [Tue, 16 Oct 2007 10:40:53 +0000 (10:40 +0000)]
Export maxswzone, maxbcache, maxtsiz, dfldsiz, maxdsiz, dflssiz, maxssiz,
and sgrowsiz via sysctl.

MFC after: 1 week

16 years agoUse macro THR_CLEANUP_PUSH/POP, they are cheaper than pthread_cleanup_push/pop.
David Xu [Tue, 16 Oct 2007 07:46:15 +0000 (07:46 +0000)]
Use macro THR_CLEANUP_PUSH/POP, they are cheaper than pthread_cleanup_push/pop.

16 years agoReverse the logic of UP and SMP.
David Xu [Tue, 16 Oct 2007 07:36:02 +0000 (07:36 +0000)]
Reverse the logic of UP and SMP.

Submitted by: jasone