mouse working again
OK, this morning I cvsup'd and recompiled my kernel and moused. My mouse is working again. Thanks - David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
mouse not working as of latest kernel
Hello - My mouse stopped working with the latest kernel compile. The mouse was working with my November 11 2003 kernel though. it is an IBM optical mouse using USB. my dmesg is attached. - David Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-CURRENT #1: Sun Nov 16 22:13:02 EST 2003 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/WIND Preloaded elf kernel /boot/kernel/kernel at 0xc08e1000. Preloaded acpi_dsdt /boot/dell.dsl at 0xc08e126c. Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz (1695.01-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf24 Stepping = 4 Features=0x3febf9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM real memory = 267911168 (255 MB) avail memory = 250535936 (238 MB) Pentium Pro MTRR support enabled ACPI: DSDT was overridden. ACPI-0375: *** Info: Table [DSDT] replaced by host OS acpi0: DELL RSDT on motherboard pcibios: BIOS version 2.10 Using $PIR table, 8 entries at 0xc00fdf40 acpi0: Power Button (fixed) Timecounter ACPI-fast frequency 3579545 Hz quality 1000 acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0 acpi_cpu0: CPU port 0x530-0x537 on acpi0 acpi_lid0: Control Method Lid Switch on acpi0 acpi_button0: Power Button on acpi0 acpi_button1: Sleep Button on acpi0 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: ACPI PCI bus on pcib0 pcib0: slot 29 INTA is routed to irq 10 pcib0: slot 29 INTB is routed to irq 11 pcib0: slot 31 INTB is routed to irq 10 pcib0: slot 31 INTB is routed to irq 10 pcib0: slot 31 INTB is routed to irq 10 agp0: Intel 82845 host to AGP bridge mem 0xec00-0xefff at device 0.0 on pci0 pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0 pci1: ACPI PCI bus on pcib1 pcib1: slot 0 INTA is routed to irq 10 pci1: display, VGA at device 0.0 (no driver attached) uhci0: Intel 82801CA/CAM (ICH3) USB controller USB-A port 0x1800-0x181f irq 10 at device 29.0 on pci0 usb0: Intel 82801CA/CAM (ICH3) USB controller USB-A on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ums0: Primax Electronics product 0x4d03, rev 1.00/4.41, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. uhci1: Intel 82801CA/CAM (ICH3) USB controller USB-B port 0x1820-0x183f irq 11 at device 29.1 on pci0 usb1: Intel 82801CA/CAM (ICH3) USB controller USB-B on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pcib2: ACPI PCI-PCI bridge at device 30.0 on pci0 pci2: ACPI PCI bus on pcib2 pcib2: slot 1 INTA is routed to irq 10 pcib2: slot 4 INTA is routed to irq 10 xl0: 3Com 3c905C-TX Fast Etherlink XL port 0x3000-0x307f mem 0xe800-0xe87f irq 10 at device 1.0 on pci2 xl0: Ethernet address: 00:08:74:3f:d1:e3 miibus0: MII bus on xl0 ukphy0: Generic IEEE 802.3u media interface on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto cbb0: O2Micro OZ6912/6972 PCI-CardBus Bridge irq 10 at device 4.0 on pci2 cardbus0: CardBus bus on cbb0 pccard0: 16-bit PCCard bus on cbb0 cbb0: [MPSAFE] isab0: PCI-ISA bridge at device 31.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel ICH3 UDMA100 controller port 0x1840-0x184f,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] pci0: serial bus, SMBus at device 31.3 (no driver attached) pcm0: Intel ICH3 (82801CA) port 0x1880-0x18bf,0x1c00-0x1cff irq 10 at device 31.5 on pci0 pcm0: SigmaTel STAC9700/83/84 AC97 Codec pci0: simple comms at device 31.6 (no driver attached) atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0 atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: PS/2 Mouse irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 acpi_acad0: AC Adapter on acpi0 acpi_ec0: Embedded Controller: GPE 0x1c port 0x66,0x62 on acpi0 acpi_ec0: info: new max delay is 27 us acpi_ec0: info: new max delay is 50 us acpi_ec0: info: new max delay is 130 us acpi_ec0: info: new max delay is 200 us acpi_cmbat0: Control Method Battery on acpi0 ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: Parallel port bus on ppc0 plip0: PLIP network interface on ppbus0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 fdc0: Enhanced floppy controller (i82077, NE72065 or clone) port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: 1440-KB 3.5 drive on fdc0 drive 0 npx0: [FAST] npx0: math processor on motherboard npx0: INT 16 interface orm0: Option ROMs at iomem
hostname lookup issue
Hello - I seem to not be able to get the IP address of a site. I am guessing its an issue with gethostbyname() and have a - at the end of the hostname... Both mozilla and ping cannot resolve the address. However, I works just fine using Windows and IE. I am not sure if this is just a FreeBSD issue or not. # ping mandrake-.deviantart.com ping: cannot resolve mandrake-.deviantart.com: Unknown server error wind# nslookup mandrake-.deviantart.com Server: ns2.attbi.com Address: 216.148.227.68 Name:mandrake-.deviantart.com Address: 66.28.104.19 # uname -a FreeBSD localhost 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Nov 11 13:34:21 EST 2003 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/WIND i386 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
ipfw feature request
Hello - I apologize in advance if this feature is already implemented. Is there anyway for ipfw to automatically get the IP from the interface? In OpenBSD's PF, putting ()'s around the interface name will cause that rule to be refreshed on an IP change, such as DHCP, making reloading the rules manually unnecessary. Thanks David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
savecore options
Hello - savecore and its manpage are missing options. savecore is missing -z and -N from its usage list. savecore manpage is missing -N. Thanks David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
sockstat -6
Hello - I get a mismatch error when i run sockstat -6. kernel and userland are in sync. FreeBSD localhost 5.1-CURRENT FreeBSD 5.1-CURRENT #3: Tue Jul 22 07:49:10 EDT 2003 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/WIND i386 (david wind:/home/david)% sockstat -6 sockstat: struct xtcpcb size mismatch USER COMMANDPID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
kernel panic when kldload'ing nvidia without WITNESS_SKIPSPIN
Hello - When I kldload nvidia, i receive a kernel panic. options INVARIANTS options INVARIANT_SUPPORT options DDB options WITNESS panic: spin lock ctl.mtx_rm not in order list panic messages: --- Reading symbols from /usr/src/sys/i386/compile/WIND/modules/usr/src/sys/modules/ linux/linux.ko.debug...done. Loaded symbols for /usr/src/sys/i386/compile/WIND/modules/usr/src/sys/modules/li nux/linux.ko.debug Reading symbols from /boot/kernel/nvidia.ko...done. Loaded symbols for /boot/kernel/nvidia.ko #0 0xc0212dab in doadump () (kgdb) where #0 0xc0212dab in doadump () #1 0xc02133dc in boot () #2 0xc0213767 in panic () #3 0xc012d502 in db_panic () #4 0xc012d482 in db_command () #5 0xc012d5a5 in db_command_loop () #6 0xc01304a5 in db_trap () #7 0xc035108c in kdb_trap () #8 0xc0361e0a in trap () #9 0xc0352a78 in calltrap () #10 0xc02136f5 in panic () #11 0xc0238f64 in enroll () #12 0xc0237bf5 in witness_init () #13 0xc020a33b in mtx_init () #14 0xc2a5949b in nvidia_ctl_attach () from /boot/kernel/nvidia.ko #15 0xc2a5a934 in nvidia_attach () from /boot/kernel/nvidia.ko #16 0xc2a5a4fd in nvidia_pci_attach () from /boot/kernel/nvidia.ko #17 0xc022cc88 in DEVICE_ATTACH () #18 0xc022b237 in device_probe_and_attach () #19 0xc022bc7e in bus_generic_driver_added () #20 0xc022cf8f in BUS_DRIVER_ADDED () #21 0xc0229ed8 in devclass_add_driver () #22 0xc022c715 in driver_module_handler () #23 0xc0208c31 in module_register_init () #24 0xc0203320 in linker_file_sysinit () #25 0xc0203671 in linker_load_file () #26 0xc0205bd7 in linker_load_module () #27 0xc0204153 in kldload () #28 0xc0362723 in syscall () #29 0xc0352acd in Xint0x80_syscall () I tried a new kernel in which i add WITNESS_SKIPSPIN to the kernel config. It loaded and worked just fine. - David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
debugging a lockup
Hello - cu -l /dev/cuaa0 completely locks up my machine... How can I debug this? Thanks David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
acpi: iasl errors
Hello - I am trying to create a custom acpi dsdt for my Dell Inspiron 2650. Does anyone know how to correct these Errors and Warnings? Thanks David wind# acpidump -o dell.dsdt dell.asl wind# iasl -d dell.dsdt wind# iasl dell.dsl Intel ACPI Component Architecture ASL Optimizing Compiler / AML Disassembler version 20030522 [Jul 15 2003] Copyright (C) 2000 - 2003 Intel Corporation Supports ACPI Specification Revision 2.0b dell.dsl 132: Method (\_WAK, 1, NotSerialized) Warning 2026 - ^ Reserved method must return a value (_WAK) dell.dsl 1019: SRST, 1, Error1051 -^ Access width of Field Unit extends beyond region limit dell.dsl 1022: ACPW, 1 Error1051 -^ Access width of Field Unit extends beyond region limit dell.dsl 2373: Field (ERAM, AnyAcc, Lock, Preserve) Error1048 - ^ Host Operation Region requires ByteAcc access dell.dsl 2874: Name (PBUF, Buffer (0x14) Warning 2079 - Statement is unreachable ^ ASL Input: dell.dsl - 3644 lines, 136006 bytes, 1734 keywords Compilation complete. 3 Errors, 2 Warnings, 0 Remarks, 388 Optimizations ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: acpi: iasl errors
On Tue, 15 Jul 2003 12:43:21 + (UTC) [EMAIL PROTECTED] (David Hill) wrote: Hello - I am trying to create a custom acpi dsdt for my Dell Inspiron 2650. Does anyone know how to correct these Errors and Warnings? Thanks David wind# acpidump -o dell.dsdt dell.asl wind# iasl -d dell.dsdt wind# iasl dell.dsl Intel ACPI Component Architecture ASL Optimizing Compiler / AML Disassembler version 20030522 [Jul 15 2003] Copyright (C) 2000 - 2003 Intel Corporation Supports ACPI Specification Revision 2.0b dell.dsl 132: Method (\_WAK, 1, NotSerialized) Warning 2026 - ^ Reserved method must return a value (_WAK) dell.dsl 1019: SRST, 1, Error1051 -^ Access width of Field Unit extends beyond region limit dell.dsl 1022: ACPW, 1 Error1051 -^ Access width of Field Unit extends beyond region limit dell.dsl 2373: Field (ERAM, AnyAcc, Lock, Preserve) Error1048 - ^ Host Operation Region requires ByteAcc access dell.dsl 2874: Name (PBUF, Buffer (0x14) Warning 2079 - Statement is unreachable ^ ASL Input: dell.dsl - 3644 lines, 136006 bytes, 1734 keywords Compilation complete. 3 Errors, 2 Warnings, 0 Remarks, 388 Optimizations ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED] Nevermind, I fixed it :) http://www.cpqlinux.com/acpi-howto.html ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
acpi not working
Hello - My machine is a Dell Inspiron 2650 notebook. wind# kldstat Id Refs AddressSize Name 18 0xc010 3c4414 kernel 21 0xc04c5000 4b440acpi.ko 32 0xc28f9000 18000linux.ko 41 0xc2914000 186000 nvidia.ko wind# acpiconf -e wind# acpiconf -d wind# acpiconf -e acpi0: attempt to register more than one interrupt handler ACPI-0210: *** Error: Unable to install System Control Interrupt Handler, AE_ALREADY_EXISTS ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPCB.ACAD._PSR] (Node 0xc25e7740), AE_AML_REGION_LIMIT ACPI-0438: *** Error: Handler for [EmbeddedControl] returned AE_NO_HARDWARE_RESPONSE ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc25e95c0), AE_NO_HARDWARE_RESPONSE ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPCB.ACAD._PSR] (Node 0xc25e7740), AE_AML_REGION_LIMIT acpiconf: enable failed: Device not configured wind# wind# dmesg -a Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-CURRENT #0: Mon Jul 14 12:28:47 EDT 2003 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/WIND Preloaded elf kernel /boot/kernel/kernel at 0xc0512000. Preloaded elf module /boot/kernel/acpi.ko at 0xc051226c. Timecounter i8254 frequency 1193182 Hz Timecounter TSC frequency 1695005672 Hz CPU: Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz (1695.01-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf24 Stepping = 4 Features=0x3febf9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS ,HTT,TM real memory = 267911168 (255 MB) avail memory = 254590976 (242 MB) Pentium Pro MTRR support enabled npx0: math processor on motherboard npx0: INT 16 interface acpi0: DELL RSDT on motherboard pcibios: BIOS version 2.10 Using $PIR table, 8 entries at 0xc00fdf40 acpi0: power button is handled as a fixed feature programming model. Timecounter ACPI-fast frequency 3579545 Hz acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0 acpi_cpu0: CPU port 0x530-0x537 on acpi0 acpi_lid0: Control Method Lid Switch on acpi0 acpi_button0: Power Button on acpi0 acpi_button1: Sleep Button on acpi0 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: ACPI PCI bus on pcib0 pcib0: slot 29 INTA is routed to irq 10 pcib0: slot 29 INTB is routed to irq 11 pcib0: slot 31 INTB is routed to irq 10 pcib0: slot 31 INTB is routed to irq 10 pcib0: slot 31 INTB is routed to irq 10 agp0: Intel 82845 host to AGP bridge mem 0xec00-0xefff at device 0.0 on pci0 pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0 pci1: ACPI PCI bus on pcib1 pcib1: slot 0 INTA is routed to irq 10 pci1: display, VGA at device 0.0 (no driver attached) uhci0: Intel 82801CA/CAM (ICH3) USB controller USB-A port 0x1800-0x181f irq 10 at device 29.0 on pci0 usb0: Intel 82801CA/CAM (ICH3) USB controller USB-A on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ums0: Primax Electronics product 0x4d03, rev 1.00/4.41, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. uhci1: Intel 82801CA/CAM (ICH3) USB controller USB-B port 0x1820-0x183f irq 11 at device 29.1 on pci0 usb1: Intel 82801CA/CAM (ICH3) USB controller USB-B on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pcib2: ACPI PCI-PCI bridge at device 30.0 on pci0 pci2: ACPI PCI bus on pcib2 pcib2: slot 1 INTA is routed to irq 10 pcib2: slot 4 INTA is routed to irq 10 xl0: 3Com 3c905C-TX Fast Etherlink XL port 0x3000-0x307f mem 0xe800-0xe87f irq 10 at device 1.0 on pci2 xl0: Ethernet address: 00:08:74:3f:d1:e3 miibus0: MII bus on xl0 ukphy0: Generic IEEE 802.3u media interface on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto cbb0: O2Micro OZ6912/6972 PCI-CardBus Bridge irq 10 at device 4.0 on pci2 cardbus0: CardBus bus on cbb0 pccard0: 16-bit PCCard bus on cbb0 isab0: PCI-ISA bridge at device 31.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel ICH3 UDMA100 controller port 0x1840-0x184f,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: serial bus, SMBus at device 31.3 (no driver attached) pcm0: Intel ICH3 (82801CA) port 0x1880-0x18bf,0x1c00-0x1cff irq 10 at device 31.5 on pci0 pcm0: SigmaTel STAC9700/83/84 AC97 Codec pci0: simple comms at device 31.6 (no driver attached) atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0 atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: PS/2 Mouse irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 acpi_acad0: AC adapter on acpi0 acpi_ec0: embedded controller port 0x66,0x62 on acpi0 acpi_cmbat0: Control method Battery on acpi0 fdc0: Enhanced
panic on install
Hello - I have never been able to get 5-current on my laptop. I have tried 5.0-release, 5.1-release, and i try snapshots every few weeks or so. I get an integer divide fault panic. I was wondering if it is possible on install, to drop to a debugger? If so, what commands could i type that would report beneficial information so I can send a bug report in? Machine: Dell Inspirion 2650 Notebook. Thanks David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
bktr patch
Hello - This concerns PR kern/47453: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/47453 A friend and I have the same problem with the LeadTek card. Applying the solution in the PR does fix it on both of our machines. Can this be committed to -CURRENT? Thanks David ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to [EMAIL PROTECTED]
3com 3cxfe575bt
Hello Does CURRENT currently support the 3com 3cxfe575bt cardbus pc card? Thanks David
sftp and lastlog
Hello - Currently, if a user logs in using sftp, it does not log that user to the lastlog. In my opinion, I think it should log the connection. Is this how it is supposed to be? or is it worth bringing up to the OpenSSH people? $ uname -a FreeBSD rain.hill.hom 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Mon Dec 17 20:39:33 GMT 2001 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/RAIN i386 $ ssh -V OpenSSH_2.9 FreeBSD localisations 20010713, SSH protocols 1.5/2.0, OpenSSL 0x0090602f Thanks David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: write.c patch
On Mon, 3 Dec 2001 17:48:43 + David Hill [EMAIL PROTECTED] wrote: This patch was done on -CURRENT. It is both pasted and attached to this message. Thanks David --- write.c.origMon Dec 3 17:42:45 2001 +++ write.c Mon Dec 3 17:45:22 2001 @@ -190,8 +190,7 @@ while (read(ufd, (char *) u, sizeof(u)) == sizeof(u)) if (strncmp(user, u.ut_name, sizeof(u.ut_name)) == 0) { ++nloggedttys; - (void)strncpy(atty, u.ut_line, UT_LINESIZE); - atty[UT_LINESIZE] = '\0'; + (void)strlcpy(atty, u.ut_line, UT_LINESIZE); if (term_chk(atty, msgsok, atime, 0)) continue; /* bad term? skip */ if (myuid !msgsok) @@ -240,7 +239,7 @@ warn(%s, path); return(1); } - *msgsokP = (s.st_mode (S_IWRITE 3)) != 0; /* group write bit */ + *msgsokP = (s.st_mode S_IWGRP) != 0; /* group write bit */ *atimeP = s.st_atime; return(0); } Will someone please take a look at this patch? It is for usr.bin/write/write.c Thanks David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
write.c patch
This patch was done on -CURRENT. It is both pasted and attached to this message. Thanks David --- write.c.origMon Dec 3 17:42:45 2001 +++ write.c Mon Dec 3 17:45:22 2001 @@ -190,8 +190,7 @@ while (read(ufd, (char *) u, sizeof(u)) == sizeof(u)) if (strncmp(user, u.ut_name, sizeof(u.ut_name)) == 0) { ++nloggedttys; - (void)strncpy(atty, u.ut_line, UT_LINESIZE); - atty[UT_LINESIZE] = '\0'; + (void)strlcpy(atty, u.ut_line, UT_LINESIZE); if (term_chk(atty, msgsok, atime, 0)) continue; /* bad term? skip */ if (myuid !msgsok) @@ -240,7 +239,7 @@ warn(%s, path); return(1); } - *msgsokP = (s.st_mode (S_IWRITE 3)) != 0; /* group write bit */ + *msgsokP = (s.st_mode S_IWGRP) != 0; /* group write bit */ *atimeP = s.st_atime; return(0); } write.c.diff Description: Binary data
Re: write.c patch
On Mon, 3 Dec 2001 17:29:32 -0600 Alfred Perlstein [EMAIL PROTECTED] wrote: * David Hill [EMAIL PROTECTED] [011203 16:50] wrote: This patch was done on -CURRENT. It is both pasted and attached to this message. Which write.c is this to be applied to? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message Sorry $SRC/usr.bin/write/write.c David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
merging openbsd's pf into FreeBSD
Hello - I am wondering if the FreeBSD team has any thoughts about importing OpenBSD's new pf into FreeBSD. Has anyone looked at the code? During an interview with Theo himself, he talked about the new features of pf, compared with ipf. http://www.kerneltrap.org/article.php?sid=389 Thanks David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
libfetch kqueue patch
Hello - This patch converts libfetch to use kqueue instead of select. Thanks David Hill fetch-common.c.patch Description: Binary data
/etc/services missing dict
Hello - Would it be okay to add the dictionary protocol to /etc/services? URL: http://www.dict.org RFC: ftp://ftp.isi.edu/in-notes/rfc2229.txt dict 2628/tcp # A Dictionary Server Protocol Thanks - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
adduser login class bug
Hello - I added a login class to my /etc/login.conf and then ran cap_mkdb /etc/login.conf test:\ :passwd_format=blf: I then proceeded to add a user. When it came to login class, i put in test. After the adduser script was done, i looked in /etc/master.passwd, and the password was encrypted with des. I then ran passwd user, and changed his password. This changed it to blowfish. So, does adduser need to check for the passwd_format in /etc/login.conf and run something like crypt_set_format() ? Thanks - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: -current TCP performance hosed?
On Fri, 14 Sep 2001 23:40:21 +0200 Geoff Rehmet [EMAIL PROTECTED] wrote: On Fri, Sep 14, 2001 at 04:13:37PM -0400, Bosko Milekic wrote: On Fri, Sep 14, 2001 at 09:57:24PM +0200, Geoff Rehmet wrote: I was just wondering if anyone has been experiencing problems with TCP performance on -current -- my box built on 11 Sept is dog slow - max 60kbps over 10baseT. I'm going to try and revert to an older kernel and see if there is a difference. No. Not here. Make sure that all the debugging options are OFF in your kernel configuration file? Nope, no debug options, but I am getting loads of microuptime() went backwards (29804.3839847 - 29804.925730) microuptime() went backwards (29804.3839847 - 29804.926005) microuptime() went backwards (29804.3839847 - 29804.926316) microuptime() went backwards (29804.3839847 - 29804.926741) microuptime() went backwards (29804.3839847 - 29804.927119) microuptime() went backwards (29804.3839847 - 29804.928361) microuptime() went backwards (29804.3839847 - 29804.928867) microuptime() went backwards (29804.3839847 - 29804.932863) microuptime() went backwards (29804.3839847 - 29804.945770) microuptime() went backwards (29804.3839847 - 29804.946271) microuptime() went backwards (29804.3839847 - 29804.948524) microuptime() went backwards (29804.3839847 - 29804.949926) microuptime() went backwards (29804.3839847 - 29804.950331) microuptime() went backwards (29804.3839847 - 29804.952237) microuptime() went backwards (29804.3839847 - 29804.953419) microuptime() went backwards (29804.3839847 - 29804.955314) microuptime() went backwards (29804.3839847 - 29804.955781) -- Geoff Rehmet, Internet Solutions tel: +27-11-283-5462, fax: +27-11-283-5401 mobile: +27-83-292-5800 email: [EMAIL PROTECTED] URL: http://www.is.co.za To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message Remove apm0 from your kernel. recompile, reboot. There is a bug with APM. - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: FreeBSD current is very slow
- Original Message - From: Liu Siwei [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 10, 2001 8:58 PM Subject: FreeBSD current is very slow Hi,all: Do you run freebsd-current? what current? I make a clean SNAP of freebsd-current through make release. And make a CD. I install freebsd-current from my own CD. All things are fine. But its multimedia is not soundable. I compile gnome-1.4 on this current-SNAP smoothly from source through ports. But when I first run gnome desktop environment, it takes long time to appear desktop environment. But when I disable the gnome's sound event and restart it again, it is very quickly start up. This is one reason I say that. Secondly, I make mpg123 from ports by source(current ports). I start it in background like this: mpg123 my.mp3 , I use top command to see my system's load, I was surpised: mpg123 only takes no more than 5% system resources, but the interrupt TAKES more than 90% system resources. So my system is very slow to run other software. Why? and I want to know what's the interrupt and it relates what? Now, I have installed FreeBSD 4.4RC1. I compile mpg123 again, and play it background, I find the interrupt takes no more than 5% system resource! Is it FreeBSD-current's BUGs??? Best Regard. __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com FreeBSD-current, by default, has debugging turned on in the kernel. Try recompiling your kernel without the debugging options, and it should work very quickly. - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
ipfw syntax - should this error?
The following ipfw commands produce an error. Could we make this work: ipfw add allow udp from any to any lowport,higherport1-higherport2 Instead of ipfw add allow udp from any to any highport1-highport2,lowpot Could we make this work: ipfw add allow udp from any to any range1-range2, range3-range4 Instead of having to do ipfw add allow udp from any to any range1-range2 ipfw add allow udp from any to any range3-range4 fog# uname -a FreeBSD fog.hill.hom 4.4-RC FreeBSD 4.4-RC #0: Thu Aug 30 15:02:13 EDT 2001 david@fog:/usr/src/sys/compile/FOG i386 Thanks David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
options HZ
Hello - Could someone please document options HZ into LINT?. I found it while reading the dummynet(4) manpage. Thanks - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: write.c patch (WARNS 2)
On Fri, 10 Aug 2001 23:06:49 -0400 David Hill [EMAIL PROTECTED] wrote: Hello - Here is my patch to make write.c work when WARNS=2. I also did some code cleanup 1. Constify 2. Changed a strncpy to strlcpy 3. Changed (S_IWRITE 3) to S_IWGRP 4. Cleaned up 2 pieces of code (declaration and unused variable) when WARNS=2 is set. - David Could someone please review this patch and comment on it? Thank you - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
kill -s does not work.
While reading the exports(5) manpage, near the bottom is an example kill -s HUP `cat /var/run/mountd.pid` does kill -s causes this error: # kill -s HUP s: Unknown signal; kill -l lists signals. However, reading the kill(1) manpage, -s is documented. So, I am thinking this is a bug in kill(1). Does anyone have any comments? - David Hill To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
commit Perl 5.6.1 into -current
I am suggesting the import of Perl 5.6.1 into -CURRENT before -CURRENT is -STABLE. Is this a large task? Thanks - David
usr.bin/write/write.c patch
Hello - I patched up write.c a bit. 1. Constified 2. Changed a strncpy to strlcpy 3. change S_IWRITE 3 to S_IWGRP 4. Changed fileno(stdin/stdout/stderr) to STD*_FILENO 5. cleaned up 2 pieces of code so it will compile when WARNS=2 is set. The patch is attached, and can be found at http://www.phobia.ms/patches/write.c.20072001.diff Any comments? - David Hill write.c.20072001.diff
leave patch
Hello - This leave patche gets rid of white space before the input, and after the +, if there is one. I also moved the #define's to the top of the source file, and change 1 to STDOUT_FILENO. The patch is included with this email, and is available online at http://www.phobia.ms/patches/leave.c.18072001.patch Thanks - David leave.c.18072001.patch
handbook typo
Hello - Under the sysctl Tuning section, the sysctl command is missing the -w option to set the values. Thanks - David Hill To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
system and (v)fork
Hello - Reading Advanced Programming in the UNIX Environment by Richard W. Stevens, I see that he says that vfork() should be used instead of fork() when you just need to use one of the exec() functions, since it doesn't need to fully copy the address space. Later in the book, he has an example system() which uses fork() to run /bin/sh -c via the execl() function. Why wouldn't he use vfork() instead of fork()? I ran FreeBSD's version of system() both by the default (using fork()) and by using vfork() I ran a loop 1000 times that called system(echo); Here are my results: time ./app fork() vfork() 1. 4.528 3.056 0.050 0.058 2.078 1.492 2. 3.652 2.865 0.060 0.060 2.036 1.484 3. 3.735 3.022 0.068 0.041 2.031 1.506 As you can see, vfork() performed better. But, I am sure there is good reasoning for using fork() over vfork() in the system() call, and I am just curious why. Can anyone explain this? Thanks - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: system and (v)fork
On Tue, 3 Jul 2001 22:50:18 -0700 Gregory Neil Shapiro [EMAIL PROTECTED] wrote: djhill Reading Advanced Programming in the UNIX Environment by Richard djhill W. Stevens, I see that he says that vfork() should be used instead djhill of fork() when you just need to use one of the exec() functions, djhill since it doesn't need to fully copy the address space. djhill Later in the book, he has an example system() which uses fork() to djhill run /bin/sh -c via the execl() function. djhill Why wouldn't he use vfork() instead of fork()? If there is anything that modifies memory or file descripts between the fork() and exec*() call, you can't use vfork(). Ahh, understood. Thanks for the quick response - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: syslogd and -a
On Mon, 2 Jul 2001 09:38:42 +0100 David Malone [EMAIL PROTECTED] wrote: On Sun, Jul 01, 2001 at 09:20:44PM -0700, Crist J. Clark wrote: Hmmm... Looks like, # syslogd -a 192.168.1.0/29 Will work and, # syslogd -a 192.168.1.1/29 Won't. That's the standard behaviour of a netmask, isn't it? The usual way to check if host h is in network/netmask n/m is to check if: (h m == n) this means that the bits of the network which are not in the mask must be zero. David. Ok, changing the .1 to .0 worked for me. The last octect must be the network number. Thanks - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
syslogd and -a
Hello - It seems the -a option for syslogd does not work 100%. I need to log from hosts from 192.168.1.1-.6 doing /usr/sbin/syslogd -a 192.168.1.1/29 does not work (nothing gets logged) but, if i do /usr/sbin/syslogd -a 192.168.1.1/32 -a 192.168.1.2/32, etc... that works can anyone try this out? Thanks - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
kqueue(2) manpage typo
Hello - Quoted from the kqueue(2) manpage: kevent() is used to register events with the queue, and return any pend- ing events to the user. changelist is a pointer to an array of kevent structures, as defined in event.h. event.h should be sys/event.h Thanks - David To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: GNU ld(1) dumps core
I have noticed the same problem when compiling ports/audio/gogo. It worked fine in 4.3-STABLE - David - Original Message - From: Maxim Sobolev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, June 25, 2001 11:26 AM Subject: GNU ld(1) dumps core Hi, It seems that there is a bug in the GNU ld(1) in -CURRENT. Currently it can't link SDL library from ports/devel/sdl12 port (confirmed by bento). When I'm replacing /usr/libexec/elf/ld with the corresponding file from my 4.3-STABLE system the problem disappears. Please check what's wrong or pass this report to the toolchain developers. Attached please find relevant log with backtrace. Thank you! -Maxim To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message