]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoDon't assume file descriptors fit in a short, use an int instead.
tjr [Thu, 18 Jul 2002 12:24:35 +0000 (12:24 +0000)]
Don't assume file descriptors fit in a short, use an int instead.

21 years agoAdded groff(1) and natd(8) entries.
ru [Thu, 18 Jul 2002 12:12:15 +0000 (12:12 +0000)]
Added groff(1) and natd(8) entries.

21 years agos/${INSTALL} -c/${INSTALL} ${COPY}/
ru [Thu, 18 Jul 2002 12:07:49 +0000 (12:07 +0000)]
s/${INSTALL} -c/${INSTALL} ${COPY}/

21 years agos/install -c/${INSTALL} ${COPY}/
ru [Thu, 18 Jul 2002 12:02:20 +0000 (12:02 +0000)]
s/install -c/${INSTALL} ${COPY}/

21 years agoAdd an entry for the AMD Elan SC520 hostbridge. I do not belive we can
phk [Thu, 18 Jul 2002 10:57:20 +0000 (10:57 +0000)]
Add an entry for the AMD Elan SC520 hostbridge.  I do not belive we can
identify this gadget on the CPUID result alone, so I intend to activate
the necessary magic (i8254 frequency for instance) for it based on the
precense of the on-chip host to PCI bridge.

21 years ago(VM_MAX_KERNEL_ADDRESS - KERNBASE) / PAGE_SIZE may not fit in an integer.
peter [Thu, 18 Jul 2002 10:28:00 +0000 (10:28 +0000)]
(VM_MAX_KERNEL_ADDRESS - KERNBASE) / PAGE_SIZE  may not fit in an integer.
Use lmin(long, long), not min(u_int, u_int).  This is a problem here on
ia64 which has *way* more than 2^32 pages of KVA.  281474976710655 pages
to be precice.

21 years agoAvoid using ints or shorts to store process id's, use pid_t instead.
tjr [Thu, 18 Jul 2002 10:22:42 +0000 (10:22 +0000)]
Avoid using ints or shorts to store process id's, use pid_t instead.
The pgrp member of struct job was declared as a short and could not store
every possible process group ID value, the rest of them were benign because
pid_t happens to be an int.

21 years agoMake the message that is printed when the foreground process is terminated
tjr [Thu, 18 Jul 2002 09:37:51 +0000 (09:37 +0000)]
Make the message that is printed when the foreground process is terminated
by a signal the same as pdksh/bash/sh before rev. 1.34.

21 years agoMove the definition of FreeBSD 4.6 back to where it belongs.
ru [Thu, 18 Jul 2002 09:32:15 +0000 (09:32 +0000)]
Move the definition of FreeBSD 4.6 back to where it belongs.

21 years agoAdd definition for FreeBSD 4.6.1.
murray [Thu, 18 Jul 2002 09:22:33 +0000 (09:22 +0000)]
Add definition for FreeBSD 4.6.1.

21 years agoRevert last change.
murray [Thu, 18 Jul 2002 09:15:54 +0000 (09:15 +0000)]
Revert last change.

Requested by: ru

21 years agoIntegrate the hw.pcic.pd6722_vsense tunable from the nomads list.
imp [Thu, 18 Jul 2002 08:13:45 +0000 (08:13 +0000)]
Integrate the hw.pcic.pd6722_vsense tunable from the nomads list.
This allows one to select the method of 3.3V card detection from the
three possible choices (none (0), the "6710 way" (1) and the "6729
way" (2)).  The default is the 6710 way, since it works in the most
cases.  The datasheets for the 6722 suggest that the '29 way is more
correct, but experience has shown this method to cause some laptops to
hang solid.  See source code for details until I update the man page.

Submitted by: shibata-san (chiharu shibata <chi@bd.mbn.or.jp>)

21 years agoSome strange hacks for the clpd6729:
imp [Thu, 18 Jul 2002 08:05:00 +0000 (08:05 +0000)]
Some strange hacks for the clpd6729:
o It needs to have pcic_isa_intr intrrupt handler
o for pci interrupts, in the func interrupt handler it needs to check the isa
  registers rather than the pci ones for card present.
o better commentary for some of the strangeness of the 6729 on pci
o fix some crunchy comments to better reflect reality.

With this I almost have the WL200 working, but an interrupt storm
after attach is causing problems for reasons unknown.  This code
doesn't seem to break the normal clpd6729 case, and I'd like others
with 6729 cards to try to test it (there were some that were used for
external pccard slots in pci only systems).

21 years agoTeach mdoc about FreeBSD 4.6.1
murray [Thu, 18 Jul 2002 08:04:12 +0000 (08:04 +0000)]
Teach mdoc about FreeBSD 4.6.1

21 years agoThe Compaq WL200 is a CL-PD6729 based pci card with a prism 2 pcmcia
imp [Thu, 18 Jul 2002 06:01:35 +0000 (06:01 +0000)]
The Compaq WL200 is a CL-PD6729 based pci card with a prism 2 pcmcia
card behind it (without the pcmcia form factor).  This entry gets to
the point of attaching, but there's something wrong with the '29
support, so it doesn't quite work yet.

21 years agoMove IPFW2 definition before including ip_fw.h
luigi [Thu, 18 Jul 2002 05:18:41 +0000 (05:18 +0000)]
Move IPFW2 definition before including ip_fw.h

Make indentation of new parts consistent with the style used for this file.

21 years agoRemove spurious "echo '.'".
dd [Thu, 18 Jul 2002 05:00:23 +0000 (05:00 +0000)]
Remove spurious "echo '.'".

21 years agoApply same fix as Rev 1.19 of /etc/rc.diskless2: create sendmail
bsd [Thu, 18 Jul 2002 05:00:22 +0000 (05:00 +0000)]
Apply same fix as Rev 1.19 of /etc/rc.diskless2: create sendmail
required directories if sendmail_enable is not set to "none".

Suggested by:   gordon

21 years agoAnonymize the "portmap" program to get better compatibility with
dougb [Thu, 18 Jul 2002 05:00:21 +0000 (05:00 +0000)]
Anonymize the "portmap" program to get better compatibility with
rpcbind in -current.

Submitted by:   Alexander Kabaev <ak03@gte.com>

21 years agoMake nisdomainname=NO DTRT
dougb [Thu, 18 Jul 2002 05:00:20 +0000 (05:00 +0000)]
Make nisdomainname=NO DTRT

Submitted by:   des, via Mike Makonnen <makonnen@pacbell.net>

21 years agoCleanup some pollution from the NetBSD sync, and add gif setup.
dougb [Thu, 18 Jul 2002 05:00:19 +0000 (05:00 +0000)]
Cleanup some pollution from the NetBSD sync, and add gif setup.

Submitted by:   Mike Makonnen <makonnen@pacbell.net>

21 years agoFix a typo that caused dhclient not to work.
gordon [Thu, 18 Jul 2002 05:00:18 +0000 (05:00 +0000)]
Fix a typo that caused dhclient not to work.

Submitted by:   Dennis Kristensen <snicki@snicki.dk>
Reviewed by:    Mike Makonnen <makonnen@pacbell.net>

21 years agoMerge in all the changes that Mike Makonnen has been maintaining for a
gordon [Thu, 18 Jul 2002 05:00:17 +0000 (05:00 +0000)]
Merge in all the changes that Mike Makonnen has been maintaining for a
while. This is only the script pieces, the glue for the build comes next.

Submitted by:   Mike Makonnen <makonnen@pacbell.net>
Reviewed by:    silence on -current and -hackers
Prodded by:     rwatson

21 years agobe able to configure to run an IPv6 routing daemon even on
ume [Thu, 18 Jul 2002 05:00:16 +0000 (05:00 +0000)]
be able to configure to run an IPv6 routing daemon even on
an end node.

Requested by: Masachika ISHIZUKA <ishizuka@ish.org>
MFC after: 1 week

21 years agofixed to make mbuf chain.
ume [Thu, 18 Jul 2002 04:18:56 +0000 (04:18 +0000)]
fixed to make mbuf chain.

Obtained from: KAME
MFC after: 1 week

21 years ago o Introduce an argument, VM_ALLOC_WIRED, that requests vm_page_alloc()
alc [Thu, 18 Jul 2002 04:08:10 +0000 (04:08 +0000)]
 o Introduce an argument, VM_ALLOC_WIRED, that requests vm_page_alloc()
   to return a wired page.
 o Use VM_ALLOC_WIRED within Alpha's pmap_growkernel().  Also, because
   Alpha's pmap_growkernel() calls vm_page_alloc() from within a critical
   section, specify VM_ALLOC_INTERRUPT instead of VM_ALLOC_SYSTEM.  (Only
   VM_ALLOC_INTERRUPT is implemented entirely with a spin mutex.)
 o Assert that the page queues mutex is held in vm_page_wire()
   on Alpha, just like the other platforms.

21 years agoUse pmap_kenter() rather than vtopte() and bashing the page tables
peter [Thu, 18 Jul 2002 00:42:53 +0000 (00:42 +0000)]
Use pmap_kenter() rather than vtopte() and bashing the page tables
directly.

21 years agoFix a transcription typo. s/ACPI_PTR/ACPI_POINTER/
peter [Wed, 17 Jul 2002 23:49:55 +0000 (23:49 +0000)]
Fix a transcription typo.  s/ACPI_PTR/ACPI_POINTER/

21 years agoia64 does not have the same degree of stealth include file nesting,
peter [Wed, 17 Jul 2002 23:43:55 +0000 (23:43 +0000)]
ia64 does not have the same degree of stealth include file nesting,
so it needs an explicit #include <machine/frame.h> to get 'struct
trapframe'.  The fact that it needs this at this level is rather bogus
but it will not compile without it.

21 years agoThis is a userland tool, not a kernel component or libstand client.
peter [Wed, 17 Jul 2002 23:41:58 +0000 (23:41 +0000)]
This is a userland tool, not a kernel component or libstand client.

21 years agoPacify gcc on ia64
peter [Wed, 17 Jul 2002 23:32:13 +0000 (23:32 +0000)]
Pacify gcc on ia64

21 years agoI don't know how the minimum retransmit timeout managed to get set to
dillon [Wed, 17 Jul 2002 23:32:03 +0000 (23:32 +0000)]
I don't know how the minimum retransmit timeout managed to get set to
one second but it badly breaks throughput on networks with minor packet
loss.

Complaints by: at least two people tracked down to this.
MFC after: 3 days

21 years agoFix some typos in 1.68 from over a week ago.
peter [Wed, 17 Jul 2002 23:22:50 +0000 (23:22 +0000)]
Fix some typos in 1.68 from over a week ago.

21 years agoCap the initial PV and PTE table preallocations. Otherwise we explode
peter [Wed, 17 Jul 2002 23:21:59 +0000 (23:21 +0000)]
Cap the initial PV and PTE table preallocations.  Otherwise we explode
on the Itanium2 system I have when we use up *all* of the initial 256MB
direct mapped region before we are ready to dynamically expand it.

The machine that I have has 4 cpus and a very big hole in the middle.
This makes the bogus '(last_address - first_address) / PAGE_SIZE'
calculations especially dangerous and caused many millions of initial
PV/PTE's to be preallocated.

21 years agoBe sure to use a logical address for the SAL table. For some reason the
peter [Wed, 17 Jul 2002 23:17:49 +0000 (23:17 +0000)]
Be sure to use a logical address for the SAL table.  For some reason the
phsysical address is still mapped at this stage of boot on the Itanium1
SDV boxes we have.  But Itanium2 does *not* let us get away with this.

21 years agoUpdate for new ACPICA import. Gah.
peter [Wed, 17 Jul 2002 23:14:41 +0000 (23:14 +0000)]
Update for new ACPICA import.  Gah.

21 years agoAdd END markers to asm functions so that debuggers can find their size.
jake [Wed, 17 Jul 2002 22:20:41 +0000 (22:20 +0000)]
Add END markers to asm functions so that debuggers can find their size.

21 years agoAvoid trying to set PG_G on the first 4MB when we set up the 4MB page.
peter [Wed, 17 Jul 2002 21:47:05 +0000 (21:47 +0000)]
Avoid trying to set PG_G on the first 4MB when we set up the 4MB page.
This solves the SMP panic for at least one system.  I'd still like to know
why my xeon works though.

Tested by: bmilekic

21 years agoAvoid passing NULL to freehostent(3).
yar [Wed, 17 Jul 2002 19:29:25 +0000 (19:29 +0000)]
Avoid passing NULL to freehostent(3).

MFC after: 1 week

21 years agoFix a reversed test.
julian [Wed, 17 Jul 2002 19:20:48 +0000 (19:20 +0000)]
Fix a reversed test.
Fix some style nits.
Fix a KASSERT message.
Add/fix some comments.

Submitted by: bde@freebsd.org

21 years agoMake sure the process state for the idle proc is set correctly
julian [Wed, 17 Jul 2002 19:18:45 +0000 (19:18 +0000)]
Make sure the process state for the idle proc is set correctly
from the beginning.

21 years agoFix setting parameters for getipnodebyaddr(3):
yar [Wed, 17 Jul 2002 19:07:07 +0000 (19:07 +0000)]
Fix setting parameters for getipnodebyaddr(3):
o "struct addrinfo" contains a pointer to "struct sockaddr,"
  not "struct sockaddr" itself
o the function takes a pointer to "struct in*_addr", not to
  "struct sockaddr," so the address length must be corresponding

MFC after: 1 week

21 years agoAdd myself.
scop [Wed, 17 Jul 2002 19:00:37 +0000 (19:00 +0000)]
Add myself.

Approved by: knu (mentor)

21 years agoIn pam_init_ctx(), register a cleanup function that will kill the child
des [Wed, 17 Jul 2002 17:44:02 +0000 (17:44 +0000)]
In pam_init_ctx(), register a cleanup function that will kill the child
process if a fatal error occurs.  Deregister it in pam_free_ctx().

21 years agoSort FILES.
ru [Wed, 17 Jul 2002 16:35:00 +0000 (16:35 +0000)]
Sort FILES.

21 years agoFix a spelling mistake.
dwmalone [Wed, 17 Jul 2002 16:22:24 +0000 (16:22 +0000)]
Fix a spelling mistake.

PR: 40695
Submitted by: Maxim Maximov <mcsi@agava.com>
MFC after: 1 week

21 years agoClean up the syntax WRT semicolons at the end of function-like-macros, and protect...
markm [Wed, 17 Jul 2002 16:19:37 +0000 (16:19 +0000)]
Clean up the syntax WRT semicolons at the end of function-like-macros, and protect GCCisms from non-GNU compilers and lint.

21 years agoFix installworld.
roberto [Wed, 17 Jul 2002 15:35:31 +0000 (15:35 +0000)]
Fix installworld.

Submitted by: Udo Schweigert <Udo.Schweigert@siemens.com>

21 years agoOne external utility was ommitted in the previous delta:
sheldonh [Wed, 17 Jul 2002 15:34:25 +0000 (15:34 +0000)]
One external utility was ommitted in the previous delta:

alias

21 years agoMFi386: revision 1.524.
nyan [Wed, 17 Jul 2002 12:43:52 +0000 (12:43 +0000)]
MFi386: revision 1.524.

21 years agoMFi386: revision 1.350.
nyan [Wed, 17 Jul 2002 12:42:37 +0000 (12:42 +0000)]
MFi386: revision 1.350.

21 years agodi_createtime -> di_birthtime.
roberto [Wed, 17 Jul 2002 10:31:38 +0000 (10:31 +0000)]
di_createtime -> di_birthtime.

Submitted by: Udo Schweigert <Udo.Schweigert@siemens.com>

21 years agoHandle installation of links through bsd.links.mk.
ru [Wed, 17 Jul 2002 08:21:50 +0000 (08:21 +0000)]
Handle installation of links through bsd.links.mk.
Removed comments that no longer directly apply here.

21 years agoFix a panic when doing "ipfw add pipe 1 log ..."
luigi [Wed, 17 Jul 2002 07:21:42 +0000 (07:21 +0000)]
Fix a panic when doing "ipfw add pipe 1 log ..."

Also synchronize ip_dummynet.c with the version in RELENG_4 to
ease MFC's.

21 years agoThe following builtins are now available as external commands as well:
sheldonh [Wed, 17 Jul 2002 07:12:37 +0000 (07:12 +0000)]
The following builtins are now available as external commands as well:

bg
        cd
        command
        fc
        fg
        getopts
        jobs
        read
        umask
        unalias
        wait

21 years agoBetter verbage on hw.pcic sysctls, delete now obsolete comment
imp [Wed, 17 Jul 2002 06:29:35 +0000 (06:29 +0000)]
Better verbage on hw.pcic sysctls, delete now obsolete comment

21 years agoo Remove workaround that I put in to mask the BadVcc problem.
imp [Wed, 17 Jul 2002 06:02:07 +0000 (06:02 +0000)]
o Remove workaround that I put in to mask the BadVcc problem.
o Add preliminary support for Cirrus Logic CL-PD6729 using PCI
  interrupts.  To use it you you need to set hw.pcic.pd6729_intr_path
  to 2.  This is allow us to still default to ISA intrrupt path for
  this part (which is found much more often in laptops using ISA IRQs).
  But some PCI cards have this part on them and this should allow them
  to be used.  It is untested on PCI, but it seems to not break the ISA
  case.
o Better sysctl descriptions (I hope).

21 years agoBe more conservative about the address ranges we assign. Some
imp [Wed, 17 Jul 2002 05:50:06 +0000 (05:50 +0000)]
Be more conservative about the address ranges we assign.  Some
machines don't like the more liberal default, so be more conservative
about what we do by default.

21 years agoGLOB_QUOTE has been retired.
mikeh [Wed, 17 Jul 2002 05:47:49 +0000 (05:47 +0000)]
GLOB_QUOTE has been retired.

21 years agoAdd definitions for the Ext 1 register on cirrus logic PD-6729.
imp [Wed, 17 Jul 2002 05:43:39 +0000 (05:43 +0000)]
Add definitions for the Ext 1 register on cirrus logic PD-6729.

21 years agoQualify comment on machdep.cpu_idle_hlt. Turning this on on a SMP
dillon [Wed, 17 Jul 2002 05:41:43 +0000 (05:41 +0000)]
Qualify comment on machdep.cpu_idle_hlt.  Turning this on on a SMP
machine will result in approximately a 4.2% loss of performance (buildworld)
and approximately a 5% reduction in power consumption (when idle).  Add XXX
note on how to really make hlt work (send an IPI to wakeup HLTed cpus on
a thread-schedule event?  Generate an interrupt somehow?).

21 years agopccard_common.c is no longer necssary
imp [Wed, 17 Jul 2002 05:22:00 +0000 (05:22 +0000)]
pccard_common.c is no longer necssary

21 years agoEliminate the need for pccard_common.c by moving the function inline
imp [Wed, 17 Jul 2002 05:20:43 +0000 (05:20 +0000)]
Eliminate the need for pccard_common.c by moving the function inline
in the .h file.  Make it static __inline to make sure that it doesn't
wind up defined in any files.

Also, fix a typo that said null_do_attach instead of null_do_probe.

21 years agoUpdate glob(3) to add all the POSIX required options, specifically:
mikeh [Wed, 17 Jul 2002 04:58:09 +0000 (04:58 +0000)]
Update glob(3) to add all the POSIX required options, specifically:

- add GLOB_NOMATCH return value and use it when we don't get a match
- rename GLOB_ABEND to GLOB_ABORTED and use it instead of returning 1
  in some places
- add GLOB_NOESCAPE flag and retire GLOB_QUOTE to compatibility
  section

Suggestions/advice on correct usage of POSIX defines: wollman

21 years agoAdd support for Elsa XI325, Netgear MA401RA, and Nokia C110. From OpenBSD
imp [Wed, 17 Jul 2002 04:07:07 +0000 (04:07 +0000)]
Add support for Elsa XI325, Netgear MA401RA, and Nokia C110.  From OpenBSD
by various people there.

21 years agoregen from pccarddevs 1.33
imp [Wed, 17 Jul 2002 04:02:52 +0000 (04:02 +0000)]
regen from pccarddevs 1.33

21 years agoMFOpenBSD:
imp [Wed, 17 Jul 2002 04:01:57 +0000 (04:01 +0000)]
MFOpenBSD:

1.93; henning; MA401RA wi card
1.92; millert; elsa XI-325 wi card
1.91; fgsch; gemplus cpr400 smartcard reader
1.90; mickey; Nokia c110/c111 is prism2 card
1.89-1.86 (similar to what we do already)

21 years ago- Use more correct values to initialize the AGP controller during setup.
jhb [Wed, 17 Jul 2002 02:52:01 +0000 (02:52 +0000)]
- Use more correct values to initialize the AGP controller during setup.
  The value we use is still questionable for 440BX chipsets.
- When flushing the TLB just toggle the bit in question instead of writing
  a magic value that could trash other unrelated bits.

21 years agoPreallocate a struct file as the first thing in falloc() before we lock
jhb [Wed, 17 Jul 2002 02:48:43 +0000 (02:48 +0000)]
Preallocate a struct file as the first thing in falloc() before we lock
the filelist_lock and check nfiles.  This closes a race where we had to
unlock the filedesc to re-lock the filelist_lock.

Reported by: David Xu
Reviewed by: bde (mostly)

21 years agoAdd a KASSERT() to assert that td_critnest is == 1 when mi_switch() is
jhb [Wed, 17 Jul 2002 02:46:13 +0000 (02:46 +0000)]
Add a KASSERT() to assert that td_critnest is == 1 when mi_switch() is
called.

21 years agoAllow alphas to do crashdumps: Refuse to run anything in choosethread()
gallatin [Wed, 17 Jul 2002 02:23:44 +0000 (02:23 +0000)]
Allow alphas to do crashdumps:  Refuse to run anything in choosethread()
after a panic which is not an interrupt thread, or the thread which
caused the panic.  Also, remove panicstr checks from msleep() and from
cv_wait() in order to allow threads to go to sleep and yeild the cpu
to the panicing thread, or to an interrupt thread which might
be doing the crashdump.

Reviewed by: jhb  (and it was mostly his idea too)

21 years agoChange utimes to set the file creation time (for filesystems that
mckusick [Wed, 17 Jul 2002 02:03:19 +0000 (02:03 +0000)]
Change utimes to set the file creation time (for filesystems that
support creation times such as UFS2) to the value of the
modification time if the value of the modification time is older
than the current creation time. See utimes(2) for further details.

Sponsored by: DARPA & NAI Labs.

21 years agoIntroduce the DEVFS "rule" subsystem. DEVFS rules permit the
dd [Wed, 17 Jul 2002 01:46:48 +0000 (01:46 +0000)]
Introduce the DEVFS "rule" subsystem.  DEVFS rules permit the
administrator to define certain properties of new devfs nodes before
they become visible to the userland.  Both static (e.g., /dev/speaker)
and dynamic (e.g., /dev/bpf*, some removable devices) nodes are
supported.  Each DEVFS mount may have a different ruleset assigned to
it, permitting different policies to be implemented for things like
jails.

Approved by: phk

21 years ago'recm' was not being unconditionally cleared for each loop, leading to
dillon [Wed, 17 Jul 2002 01:07:08 +0000 (01:07 +0000)]
'recm' was not being unconditionally cleared for each loop, leading to
system lockups (infinite loops) when a zero-length RPC is received.
Linux clients will sometimes send zero-length RPC requests.

Reorganize the use of recm in the loop.

Cc: security@freebsd.org
Submitted by: Mike Junk <junk@isilon.com>
MFC after: 3 days

21 years agoThe new implementation of 'lpc topq' is intended to be upwardly compatible
gad [Wed, 17 Jul 2002 00:52:06 +0000 (00:52 +0000)]
The new implementation of 'lpc topq' is intended to be upwardly compatible
with the previous implementation.  One noticeable difference is the order
in which messages are printed.  In the previous implementation, the
command "lpc topq lp 1 20 300" might print:

lp:
    moved cfA300some.host.org
    moved cfA020some.host.org
    moved cfA001some.host.org

while in the new implementation you'll see:

lp:
    moved cfA001some.host.org
    moved cfA020some.host.org
    moved cfA300some.host.org

The final order of jobs in the queue is exactly the same, it's just
that the jobs are now moved in the same order they were specified,
instead of being moved (and thus listed) in the reverse order.

The new implementation also supports more options for how to select
which jobs should be moved.  The previous topq allowed the user to
select jobs based on a job number, or based on a userid:
    topq lp 17
    topq lp drosehn

The new one also allows for a range of job numbers, or a hostname
(matching jobs that were sent from that hostname).  To specify a
hostname, you must prefix it with an '@'-sign:
    topq lp 17
    topq lp 15-25
    topq lp drosehn
    topq lp @some.host.com

or a combination of those things:
    topq lp drosehn:17
    topq lp 15-25:drosehn
    topq lp 15-25@some.host.edu
    topq lp gad:15-25@some.host.edu

Futhermore, in the new implementation the user can also use
filename-style pattern-matching on the userid or hostname fields:
    topq lp dros[ie]hn
    topq lp @samba*
    topq lp gad@*freebsd.org

(although the user should probably include those in quotes when they
are specifying the topq command as part of the 'lpc' command, just
to make sure the pattern-matching characters are not expanded by
whatever shell they are typing the command into)

The operator can still specify several of these job-specifiers in a
single command:
   topq lp 17 22 27 drosihn:23 gad@*freebsd.org 97

If a job is matched by multiple job-specifiers on a single command,
then its final position in the queue is based on the first job-specifer
which matched it.

The previous implementation also recognized a jobnumber followed by
a hostname (with no separator), or a hostname:jobnumber, although
neither of these options were documented.  Eg:
    topq lp 42some.host.org
    topq lp some.host.org:42

The new version allows the first one, and will also recognize the
second one *iff* the hostname includes a period (otherwise it is
assumed to be a userid followed by a job number).  Both remain
undocumented, and are only provided in case there were some users
who did know about those options, and are used to typing them in.

The new implementation also fixes a few subtle security issues in
the old one (mainly just making sure all error-messages are printed
while the process is "not-priv"), avoids integer-overflow issues on
bad user input, and prints out more descriptive messages in a number
of circumstances.

The new bottomq command accepts all the same arguments as topq, but
moves the selected jobs to the bottom of the queue instead of the top.

21 years agoChanges which rewrite 'lpc topq', and which add 'lpc bottomq'. These
gad [Wed, 17 Jul 2002 00:51:19 +0000 (00:51 +0000)]
Changes which rewrite 'lpc topq', and which add 'lpc bottomq'.  These
reflect much valuable feedback from wollman.  More details on the new
'lpc topq' are in the log message for revision 1.2 of lpc/movejobs.c.

The previous implementation of 'lpc topq' is available as 'lpc xtopq',
in case there are any problems noticed in the new implementation.  If
there are no problems with this version, a later update will remove the
'lpc xtopq' command.

Reviewed by: freebsd-print@bostonradio.org
MFC after: 6 days

21 years agoFixed some print format errors. Avoid some warnings about possible
bde [Tue, 16 Jul 2002 23:18:29 +0000 (23:18 +0000)]
Fixed some print format errors.  Avoid some warnings about possible
(but not actual) alignment problems.  Both of these bugs were detected
on ia64's and were fatal on ia64's due to premature setting of WARNS
to 4.

21 years agoChange the name of st_createtime to st_birthtime. This change is
mckusick [Tue, 16 Jul 2002 22:36:00 +0000 (22:36 +0000)]
Change the name of st_createtime to st_birthtime. This change is
made to reduce confusion between st_ctime and st_createtime.

Submitted by: Eric Allman <eric@sendmail.org>
Sponsored by: DARPA & NAI Labs.

21 years agoA little bit more thought has resulted in a generic script which can
wollman [Tue, 16 Jul 2002 22:16:05 +0000 (22:16 +0000)]
A little bit more thought has resulted in a generic script which can
implement any of the useless POSIX-required ``regular shell builtin''
utilities, saving one frag and one inode each.  The script moves to
usr.bin/alias which is alphabetically the first of these commands.

21 years agoForgot to change command name in Makefile. (Where's the pointy hat?)
wollman [Tue, 16 Jul 2002 21:14:01 +0000 (21:14 +0000)]
Forgot to change command name in Makefile.  (Where's the pointy hat?)

21 years agoPOSIX requires these shell builtins to also exist as totally pointless
wollman [Tue, 16 Jul 2002 21:13:11 +0000 (21:13 +0000)]
POSIX requires these shell builtins to also exist as totally pointless
external commands.  Since they serve no useful purpose, it's OK that their
implementation is not the most efficient possible.

21 years agoDon't ask me how I consistently turned struct statvfs into struct vfsconf....
wollman [Tue, 16 Jul 2002 20:40:12 +0000 (20:40 +0000)]
Don't ask me how I consistently turned struct statvfs into struct vfsconf....

21 years agoFix a bug nfs_write() related to ^C'ing during a file write on an
dillon [Tue, 16 Jul 2002 19:43:59 +0000 (19:43 +0000)]
Fix a bug nfs_write() related to ^C'ing during a file write on an
interruptable mount.  We were returning from inside the loop without
releasing the rslock.

Submitted by: Mike Junk <junk@isilon.com>
MFC after: 3 days

21 years ago o Use vm_pageq_remove_nowakeup() and vm_pageq_enqueue() in
alc [Tue, 16 Jul 2002 19:39:40 +0000 (19:39 +0000)]
 o Use vm_pageq_remove_nowakeup() and vm_pageq_enqueue() in
   vm_page_zero_idle() instead of partially duplicated implementations.
   In particular, this change guarantees that the number of free pages
   in the free queue(s) matches the global free page count when Giant
   is released.

Submitted by: peter (via his p4 "pmap" branch)

21 years agoVarious comment and minor style fixes. No actual content changes.
jhb [Tue, 16 Jul 2002 18:20:17 +0000 (18:20 +0000)]
Various comment and minor style fixes.  No actual content changes.

Inspired by: bde

21 years agoWhen multiple IOMMUs are present in a system, use a single TSB for all
tmm [Tue, 16 Jul 2002 18:17:03 +0000 (18:17 +0000)]
When multiple IOMMUs are present in a system, use a single TSB for all
of them, and couple them by always performing all operations on all
present IOMMUs. This is required because with the current API there
is no way to determine on which bus a busdma operation is performed.

While being there, clean up the iommu code a bit.

This should be a step in the direction of allow some of larger machines
to work; tests have shown that there still seem to be problems left.

21 years agoDon't imply that setting the boot_ variables to "NO" will disable them.
mp [Tue, 16 Jul 2002 18:16:01 +0000 (18:16 +0000)]
Don't imply that setting the boot_ variables to "NO" will disable them.

MFC after: 3 days

21 years agoAdd new UltraSPARC-III VIS II instructions.
tmm [Tue, 16 Jul 2002 17:44:01 +0000 (17:44 +0000)]
Add new UltraSPARC-III VIS II instructions.

21 years ago- Use IO mode to reset the controller (82544 and beyond)
pdeuskar [Tue, 16 Jul 2002 16:55:03 +0000 (16:55 +0000)]
- Use IO mode to reset the controller (82544 and beyond)
- Read the Mac address only once during attach.
  (This fixes the failover issue observed using the bonding driver)

MFC after: 3 days

21 years agoUse the right indent for the closing brace: it belongs to `if',
yar [Tue, 16 Jul 2002 16:48:15 +0000 (16:48 +0000)]
Use the right indent for the closing brace: it belongs to `if',
not to `for'.  The previous indent was reather misleading for
the code reader.

MFC after: 1 week

21 years agoReplace the awkward hackery about strtok(3)
yar [Tue, 16 Jul 2002 16:30:41 +0000 (16:30 +0000)]
Replace the awkward hackery about strtok(3)
by conventional one-way parsing of ftphosts(5).
Don't let NULL hostname pointers into virtual
host records as well.

PR: bin/18410
MFC after: 1 month

21 years agoAdd new LSU bits for UltraSPARC-III.
tmm [Tue, 16 Jul 2002 16:24:03 +0000 (16:24 +0000)]
Add new LSU bits for UltraSPARC-III.

21 years agoAdd ASI definitions of UltraSPARC-III (Cu) processors, and add some
tmm [Tue, 16 Jul 2002 16:22:25 +0000 (16:22 +0000)]
Add ASI definitions of UltraSPARC-III (Cu) processors, and add some
previously missing US-I and II ones.

21 years agoAdd missing quotes around ID string in __FBSDID().
tmm [Tue, 16 Jul 2002 16:20:44 +0000 (16:20 +0000)]
Add missing quotes around ID string in __FBSDID().

Pointy hat to: obrien

21 years agoThis isn't quite ready for WARNS=3 in the sparc64 case.
mike [Tue, 16 Jul 2002 16:10:39 +0000 (16:10 +0000)]
This isn't quite ready for WARNS=3 in the sparc64 case.

Noticed by: sparc64 tinderbox

21 years agoSome style cleanups.
jhb [Tue, 16 Jul 2002 15:40:19 +0000 (15:40 +0000)]
Some style cleanups.

Submitted by: bde

21 years agoIf we get a receive error in nfs_receive() and then get an error trying to
jhb [Tue, 16 Jul 2002 15:12:07 +0000 (15:12 +0000)]
If we get a receive error in nfs_receive() and then get an error trying to
obtain the send lock, we would bogusly try to unlock the send lock before
returning resulting in a panic.  Instead, only unlock the send lock if
nfs_sndlock() succeeds and nfs_reconnect() fails.

MFC after: 3 days
Sponsored by: The Weather Channel

21 years agoChange include order.
nyan [Tue, 16 Jul 2002 14:39:52 +0000 (14:39 +0000)]
Change include order.

21 years agoCheck return status from fd_in() function.
nyan [Tue, 16 Jul 2002 14:34:38 +0000 (14:34 +0000)]
Check return status from fd_in() function.

21 years agoThe main reason for this is to reduce diffs between all the crt1.c's.
markm [Tue, 16 Jul 2002 12:28:50 +0000 (12:28 +0000)]
The main reason for this is to reduce diffs between all the crt1.c's.

Assembler macros are tidied up and made as similar as sanely possible.
The macros are translated into C (__inline static) functions for lint.

Declaration orders are made the same.
Declarations are all ISOfied and tidied up.

Comment contents have gratuitous diffs removed.

The net result is a bunch of crt1.c's that are 90% the same.
It may be possible to now encapsulate the differences in one
MD header, and have only one MI crt1.c file (although the macros
to do this may be ugly).

Helpful comments by: obrien, bde
Alpha tested by: des
i386-elf tested by: markm