recent bin/ksh changes - the ctype cleanups one
Hi! I must say, I'm a bit shy about this, so don't rip my head off, I'm obviously not trying to question Theo's commit. I just came across this anomaly: cvs diff -r 1.26 -r 1.27 vi.c @@ -792,8 +792,9 @@ vi_cmd(int argcnt, const char *cmd) return -1; if (*cmd == 'c' (cmd[1]=='w' || cmd[1]=='W') - !isspace(es-cbuf[es-cursor])) { - while (isspace(es-cbuf[--ncursor])) + !isspace((unsigned char)es-cbuf[es-cursor])) { + while ((unsigned char) + isspace(es-cbuf[--ncursor])) ; ncursor++; } That last cast, before isspace(es-...), at line 796; Isn't that cast supposed to be inside the isspace() function, right before es-..., just like in the line above it? So like: --- vi.c.orig 2013-12-18 17:33:03.667236200 +0100 +++ vi.c2013-12-18 17:33:21.810235659 +0100 @@ -793,8 +793,7 @@ vi_cmd(int argcnt, const char *cmd) if (*cmd == 'c' (cmd[1]=='w' || cmd[1]=='W') !isspace((unsigned char)es-cbuf[es-cursor])) { - while ((unsigned char) - isspace(es-cbuf[--ncursor])) + while (isspace((unsigned char)es-cbuf[--ncursor])) ; ncursor++; } I admit, the bug I was hunting was not present somehow on OpenBSD, just on Linux, where I am using this ksh with some modifications and some diffs to make it compile and work on Linux. Nevertheless this fixed it for me. Oh, and the bug was when I entered command mode in vi edit mode, then if I had something like this in my edit buffer: $ cd /foo/bar ... then escape to command mode, move to the very beginning of the line, then press 'c' - 'w' to delete one word. Then the previous behaviour was to delete until before the space, and now after these changes it would delete the space also. Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
editline(3): el_source() and .editrc file
Hi! It seems that the editline(3) man page didn't get updated after el.c r1.7 (some twelve years ago :) ). Index: editline.3 === RCS file: /cvs/src/lib/libedit/editline.3,v retrieving revision 1.32 diff -p -u -r1.32 editline.3 --- editline.3 7 Jul 2011 16:15:47 - 1.32 +++ editline.3 3 Jan 2013 14:41:42 - @@ -575,8 +575,6 @@ If is .Dv NULL , try -.Pa $PWD/.editrc -then .Pa $HOME/.editrc . Refer to .Xr editrc 5 Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: iwn(4) support for Intel WiFi Link 1030/Centrino Wireless-N 1030
On sze, nov 14, 2012 at 13:44:30 +0100, Mark Kettenis wrote: Anybody around with the (currently non-working) Intel WiFi Link 1030 wireless hardware that can test the following diff? You'll need an up-to-date firmware pckage and a bleeding edge -current tree. [...] === ifconfig error when trying to scan before patch: iwn0: fatal firmware error firmware error log: error type = UNKNOWN (0x1999) program counter = 0x00013638 source line = 0x012F error data = 0x000100A4 branch link = 0x0001362C0001362C interrupt link = 0xC15E time= 28088 driver status: tx ring 0: qid=0 cur=0 queued=0 tx ring 1: qid=1 cur=0 queued=0 tx ring 2: qid=2 cur=0 queued=0 tx ring 3: qid=3 cur=0 queued=0 tx ring 4: qid=4 cur=2 queued=0 tx ring 5: qid=5 cur=0 queued=0 tx ring 6: qid=6 cur=0 queued=0 tx ring 7: qid=7 cur=0 queued=0 tx ring 8: qid=8 cur=0 queued=0 tx ring 9: qid=9 cur=0 queued=0 tx ring 10: qid=10 cur=0 queued=0 tx ring 11: qid=11 cur=0 queued=0 tx ring 12: qid=12 cur=0 queued=0 tx ring 13: qid=13 cur=0 queued=0 tx ring 14: qid=14 cur=0 queued=0 tx ring 15: qid=15 cur=0 queued=0 tx ring 16: qid=16 cur=0 queued=0 tx ring 17: qid=17 cur=0 queued=0 tx ring 18: qid=18 cur=0 queued=0 tx ring 19: qid=19 cur=0 queued=0 rx ring: cur=2 802.11 state 0 iwn0: crystal calibration failed iwn0: could not initialize hardware === dmesg before patch: OpenBSD 5.2-current (GENERIC.MP) #98: Tue Nov 13 13:18:33 MST 2012 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (GenuineIntel 686-class) 2 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC real mem = 3394351104 (3237MB) avail mem = 3327934464 (3173MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 06/16/10, SMBIOS rev. 2.6 @ 0xeba00 (56 entries) bios0: vendor Dell Inc. version A07 date 07/18/2011 bios0: Dell Inc. Inspiron N5110 acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG SSDT HPET SSDT SSDT SSDT SSDT OSFR acpi0: wakeup devices USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) USB7(S3) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S3) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) PXSX(S4) RP08(S4) PEGP(S4) PEG0(S4) PEGA(S4) PEG1(S4) PEG2(S4) PEG3(S4) BR20(S4) HDEF(S4) EHC2(S0) EHC1(S0) LID0(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 99MHz cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (GenuineIntel 686-class) 2 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC cpu2 at mainbus0: apid 4 (application processor) cpu2: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (GenuineIntel 686-class) 2 GHz cpu2: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC cpu3 at mainbus0: apid 6 (application processor) cpu3: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (GenuineIntel 686-class) 2 GHz cpu3: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC cpu4 at mainbus0: apid 1 (application processor) cpu4: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (GenuineIntel 686-class) 2 GHz cpu4: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC cpu5 at mainbus0: apid 3 (application processor) cpu5: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (GenuineIntel 686-class) 2 GHz cpu5: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC cpu6 at mainbus0: apid 5 (application processor) cpu6: Intel(R) Core(TM)
Re: DNS options for sppp(4)
On cs, okt 25, 2012 at 10:47:04 +0200, Gerhard Roth wrote: [...] Works for me. Cool feature, I like it :) Thanks! Daniel So anybody out there willing to give me an ok? Sorry if I was too terse. This was tested and now is being used on two separate i386 machines with pppoe (different ISPs), running 5.1-stable. Here are the two dmesgs: OpenBSD 5.1-stable (GENERIC) #2: Wed Oct 24 21:10:21 CEST 2012 root@host:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 2.40GHz (GenuineIntel 686-class) 2.42 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID real mem = 1073213440 (1023MB) avail mem = 1045561344 (997MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/05/02, BIOS32 rev. 0 @ 0xfdb60, SMBIOS rev. 2.3 @ 0xf0630 (32 entries) bios0: vendor American Megatrends Inc. version V1.2 11 date 11/05/2002 bios0: MICRO-STAR INC. MS-6704 acpi0 at bios0: rev 0 acpi0: sleep states S0 S1 S4 S5 acpi0: tables DSDT FACP APIC acpi0: wakeup devices USB1(S3) USB2(S3) USB3(S3) EHCI(S3) ICHB(S4) PS2M(S4) PS2K(S4) UAR1(S4) MC9_(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 133MHz ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 2 (ICHB) acpicpu0 at acpi0 acpipwrres0 at acpi0: URP1 acpipwrres1 at acpi0: URP2 acpipwrres2 at acpi0: FDDP acpipwrres3 at acpi0: LPTP acpibtn0 at acpi0: PWRB bios0: ROM list: 0xc/0xd000 0xcd000/0x4800 0xd1800/0x1000 0xe/0x1000 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82845G Host rev 0x02 intelagp0 at pchb0 agp0 at intelagp0: aperture at 0xe000, size 0x400 ppb0 at pci0 dev 1 function 0 Intel 82845G AGP rev 0x02 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 ATI Radeon 9600 rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) radeondrm0 at vga1: apic 2 int 16 drm0 at radeondrm0 ATI Radeon 9600 XT Sec rev 0x00 at pci1 dev 0 function 1 not configured uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x02: apic 2 int 16 uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x02: apic 2 int 19 uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x02: apic 2 int 18 ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x02: apic 2 int 23 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb1 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0x82 pci2 at ppb1 bus 2 em0 at pci2 dev 0 function 0 Intel PRO/1000GT (82541GI) rev 0x05: apic 2 int 16, address 00:xx:xx:xx:xx:xx pciide0 at pci2 dev 3 function 0 CMD Technology SiI3512 SATA rev 0x01: DMA pciide0: using apic 2 int 19 for native-PCI interrupt pciide0: port 0: device present, speed: 1.5Gb/s wd0 at pciide0 channel 0 drive 0: ST3250310AS wd0: 16-sector PIO, LBA48, 238475MB, 488397168 sectors wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 5 pciide0: port 1: device present, speed: 1.5Gb/s wd1 at pciide0 channel 1 drive 0: SAMSUNG HD501LJ wd1: 16-sector PIO, LBA48, 476940MB, 976773168 sectors wd1(pciide0:1:0): using BIOS timings, Ultra-DMA mode 7 vge0 at pci2 dev 4 function 0 VIA VT612x rev 0x11: apic 2 int 16, address 00:xx:xx:xx:xx:xx ciphy0 at vge0 phy 1: CS8201 10/100/1000TX PHY, rev. 1 ichpcib0 at pci0 dev 31 function 0 Intel 82801DB LPC rev 0x02 ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x02: apic 2 int 17 iic0 at ichiic0 iic0: addr 0x2f 00=00 02=0f 03=00 04=00 06=0f 07=00 08=00 0a=06 0b=00 0c=00 0d=07 0e=85 0f=00 10=c4 11=10 12=00 13=60 words 00=00ff 01= 02=0fff 03=00ff 04=00ff 05= 06=0fff 07=00ff spdmem0 at iic0 addr 0x50: 1GB DDR SDRAM non-parity PC3200CL3.0 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 wbsio0 at isa0 port 0x2e/2: W83627HF rev 0x17 lm1 at wbsio0 port 0x290/8: W83627HF npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 mtrr: Pentium Pro MTRR support vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (69dbc259cb64de66.a) swap on wd0b dump on wd0b pppoe0: received unexpected PADO pppoe0: received unexpected PADO pppoe0: received unexpected PADO pppoe0: received unexpected PADO pppoe0:
Re: DNS options for sppp(4)
On cs, okt 25, 2012 at 10:09:04 +0200, Gerhard Roth wrote: [...] Daniel, the patch contained a modification to sys/net/if_sppp.h adding 'u_int32_t dns_addrs[2]' to struct sppp. Could you please check if that patch applied? In case it did, do a 'make build' so that /usr/include/net/if_sppp.h gets updated. Doh, indeed... My if_sppp.h was still the old one. Sorry. Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: DNS options for sppp(4)
On p, okt 05, 2012 at 13:46:19 +0200, Gerhard Roth wrote: Hi, I trying to revive part of an old patch that was submitted by mpf in 2007. If adds support for DNS server negotiation to the IPCP part of sppp(4). If the PPP server provides IP addresses for DNS servers, they will appear in the ifconfig(8) output. A simple ifstated(8) script could then be used to re-write resolv.conf, e.g. # ifconfig pppoe | sed -n 's/^[[:space:]]*dns.:/nameserver/p' [...] Works for me. Cool feature, I like it :) Thanks! Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh: tab completion fix (again)
On cs, szept 27, 2012 at 01:42:25 +0400, Alexander Polakov wrote: I sent this diff in 2011 (?) with a bunch of other diffs. It fixes tab completion for filenames containing special characters like [], () and so. This code affects interactive mode only, and I don't know a way to do automated testing of this. Suggestions welcome. [...] I've been using this (and the other ones) since then. No problems neither on OpenBSD or Linux. Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh sigwinch
On k, szept 04, 2012 at 18:15:29 -0400, Ted Unangst wrote: I move my windows around and even resize them sometimes. Sometimes ksh catches on, but a lot of the time it doesn't. The problem is if I'm running an editor like vi (kinda common reason why I'd want to resize the terminal), sigwinch doesn't get to ksh. Then when I exit the editor, command line editing is all messed. Fix is simple. Pretend we got a sigwinch whenever we do the regular mailcheck/jobs notify stuff. Then the edit code will check the current status. [...] This doesn't work for me inside either urxvt or xterm. I've resized the windows but the end of the line remained more far than the windows' edge. Do I understand correctly that this patch would make ksh always recalculate the editor's line end if a terminal window resize occurs? Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh sigwinch
On sze, szept 05, 2012 at 07:01:45 -0400, Ted Unangst wrote: [...] This doesn't work for me inside either urxvt or xterm. I've resized the windows but the end of the line remained more far than the windows' edge. Do I understand correctly that this patch would make ksh always recalculate the editor's line end if a terminal window resize occurs? The did we get sigwinch code only runs after you hit enter. The [...] Aha! My bad... It works as advertised after hitting enter. If you want the command line to update in realtime to window changes, that's a trickier change. No need, this is perfect :) Thanks, Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: [Patch] Virtio drivers for OpenBSD V8
Here comes the next revision. Changes from v7: [...] Hi! I've just started to test this with an OpenBSD guest on a Linux host. vio0 NIC and the virtio disk work like a charm. I have a slightly (~10%) better performance with the ide emulation than with virtio, but nevertheless it works. Here is how I use qemu on a Slackware32 -current: qemu-kvm \ -enable-kvm \ -cpu kvm32,+fxsr,+3dnow,+3dnowext,+abm,+cx16,+popcnt,+sse,+sse2,+sse4a,+svm,+ht,+vme,+mmx,+clflush,+pse36,+pat,+cmov,+mca,+pge,+mtrr,+sep,+apic,+cx8,+mce,+pae,+msr,+tsc,+pse,+de,+fpu,+popcnt,+cx16,+monitor,+sse3,+lm,+rdtscp,+pdpe1gb,+fxsr_opt,+mmxext,+nx,+syscall,+lahf_lm -smp 2 \ -m 512 \ -drive index=0,media=disk,file=openbsd-${RELEASE}.img,if=virtio,cache=writeback,format=qcow2 \ -net nic,model=virtio,macaddr=${MAC_ADDRESS} -net tap,ifname=tap0,script=no,downscript=no \ -curses Here is a dmesg from the guest: OpenBSD 5.2-current (GENERIC.MP) #0: Sat Sep 1 15:08:51 CEST 2012 dani...@openbsd.my.domain:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Common 32-bit KVM processor (AuthenticAMD 686-class, 512KB L2 cache) 3.11 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,SVM,ABM,SSE4A real mem = 536387584 (511MB) avail mem = 516661248 (492MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xff046, SMBIOS rev. 2.4 @ 0xfd900 (11 entries) bios0: vendor Bochs version Bochs date 01/01/2007 bios0: Bochs Bochs acpi0 at bios0: rev 0 acpi0: sleep states S3 S4 S5 acpi0: tables DSDT FACP SSDT APIC HPET acpi0: wakeup devices acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat acpihpet0 at acpi0: 1 Hz acpiprt0 at acpi0: bus 0 (PCI0) mpbios0 at bios0: Intel MP Specification 1.4 cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 1000MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Common 32-bit KVM processor (AuthenticAMD 686-class, 512KB L2 cache) 3.11 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,3DNOW2,3DNOW,SSE3,CX16,POPCNT,LAHF,SVM,ABM,SSE4A mpbios0: bus 0 is type PCI mpbios0: bus 1 is type ISA ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 2 bios0: ROM list: 0xc/0x8c00 0xc9000/0xa00 0xca000/0x2400 vmt0 at mainbus0 vmware: open failed, eax=564d5868, ecx=001e, edx=5658 vmt0: failed to open backdoor RPC channel (TCLO protocol) pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82441FX rev 0x02 pcib0 at pci0 dev 1 function 0 Intel 82371SB ISA rev 0x00 pciide0 at pci0 dev 1 function 1 Intel 82371SB IDE rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility pciide0: channel 0 disabled (no drives) atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: QEMU, QEMU DVD-ROM, 1.0, ATAPI 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 piixpm0 at pci0 dev 1 function 3 Intel 82371AB Power rev 0x03: apic 2 int 9 iic0 at piixpm0 iic0: addr 0x19 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 02= 03= 04= 05= 06= 07= iic0: addr 0x1b 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 02= 03= 04= 05= 06= 07= iic0: addr 0x1c 0f=00 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 02= 03= 04= 05= 06= 07= iic0: addr 0x1d 0f=00 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 02= 03= 04= 05= 06= 07= iic0: addr 0x1e 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 02= 03= 04= 05= 06= 07= iic0: addr 0x1f 3e=00 48=00 4a=00 4e=00 fc=00 fe=00 words 00= 01= 02= 03= 04= 05= 06= 07= iic0: addr 0x29 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00= 01= 02= 03= 04= 05= 06= 07= iic0: addr 0x2b 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00= 01= 02= 03= 04= 05= 06= 07= iic0: addr 0x4c 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00= 01= 02= 03= 04= 05= 06= 07= iic0: addr 0x4e 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00= 01= 02= 03= 04= 05= 06= 07= vga1 at pci0 dev 2 function 0 Cirrus Logic CL-GD5446 rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) virtio0 at pci0 dev 3 function 0 Qumranet Virtio Network rev 0x00 Virtio Network Device vio0 at virtio0 +MAC -GSO -MrgRXBuf +Status +CtrlVQ +CtrlRX -CtrlVLAN -CtrlRXExtra -NotifyOnEmpty +RingIndirectDesc
Re: [Patch] Virtio drivers for OpenBSD V8
On szo, szept 01, 2012 at 16:00:06 +0200, LEVAI Daniel wrote: Here comes the next revision. Changes from v7: [...] Hi! I've just started to test this with an OpenBSD guest on a Linux host. vio0 NIC and the virtio disk work like a charm. I have a slightly (~10%) better performance with the ide emulation than with virtio, but nevertheless it works. [...] Well, weird thing is that some time after I've sent this mail, a few messages appeared in the logs while updating /usr/ports on the guest: virtio timeout vioblk0: sc_queued 5 vq_num 128 vq_avail_idx: 27965 vq_avail-idx: 27965 vq_avail-flags: 1 vq_used_idx: 27960 vq_used-idx: 27960 vq_used-flags: 0 Are these errors or just some debug information for the devs? Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
route.8 fix
Hi! I've stumbled upon this: Index: route.8 === RCS file: /cvs/src/sbin/route/route.8,v retrieving revision 1.70 diff -p -u -r1.70 route.8 --- route.8 13 Jul 2012 10:15:53 - 1.70 +++ route.8 21 Aug 2012 13:10:40 - @@ -224,7 +224,7 @@ and cause the destination to be interpreted as a network or a host, respectively. Otherwise, type is chosen based on the following rules: .Pp -The route is assumed to be to a network if any of the following apply to +The route is assumed to be a network if any of the following apply to .Ar destination : .Pp .Bl -bullet -compact Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: route.8 fix
On k, aug 21, 2012 at 15:12:44 +0200, LEVAI Daniel wrote: Hi! I've stumbled upon this: Index: route.8 === RCS file: /cvs/src/sbin/route/route.8,v retrieving revision 1.70 diff -p -u -r1.70 route.8 --- route.8 13 Jul 2012 10:15:53 - 1.70 +++ route.8 21 Aug 2012 13:10:40 - @@ -224,7 +224,7 @@ and cause the destination to be interpreted as a network or a host, respectively. Otherwise, type is chosen based on the following rules: .Pp -The route is assumed to be to a network if any of the following apply to +The route is assumed to be a network if any of the following apply to .Ar destination : .Pp .Bl -bullet -compact Ah, sorry... english is my second language... Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ftp, ignore whitespace at end of Content-Length
As noted on misc, ftp http://www.spamhaus.org/drop/drop.lasso fails due to whitespace after the value of the content-length header. wget/curl/lynx/w3m all handle this. This is really useful, thanks! Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: debugging ports issues, use introspection
On 28.04.2012 16:24, Marc Espie wrote: When things fail while building a port, remember you can almost always check what is really going on. [...] Thanks for this cool write-up, again! I like these informative lectures from time-to-time. When in trouble creating or building ports, I just look up the archived ones. Daniel
Re: systat(1) netstat
On Sun, Jan 29, 2012 at 15:46:10 -0500, Okan Demirmen wrote: Hi, The following small diff does the following: - allows the default to only show all non-listneing scokets, which matches the manpage and what netstat(1) does, sans the aflag (-a). - allows one to use 'a' to toggle the above (include listening or not). - implement [r]eset to reset all toggles to default (all/tcp/udp). - document a/n/r/t/u toggles. comments/feedback/ok? Great, works as advertised :) Thanks! Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh history corruption
On Wed, Aug 31, 2011 at 14:42:26 -0500, Marco Peereboom wrote: Version 4 fixes all reported bugs. Some folks have expressed doubt about the simplistic way of updating the history file. Specifically the rewriting of all entries. I am sensitive to that and know a couple of optimizations that can easily be applied. However before I go there I'd like to get a thumbs up or down on this approach. It trashes the binary history file format and replaces it with flat text. Is this something we want? Great, thanks, works with and without a HISTFILE. Although, I've never used a history file, if this fixes something then definitely yes, *but* please reconsider merging the various great improvements too, that Alexander has created [1] in the past months. (my favorites are the completion improvements and #8 :) ). They are stable; I have been testing them since he had posted the diffs on tech@. Daniel [1] http://plhk.ru/trash/ksh/ -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh completion
On Sun, Jun 19, 2011 at 15:26:26 -0400, STeve Andre' wrote: I hope not. I've seen this as well. I want to test this, seeing as how I just bumped into this. Can you post the last patch for this? Alexander has a whole bunch of excelent stuff for ksh in his repo. Seven patches IIRC, and they really improve the usability of ksh (including the command completing). Hope he'll repost them (or the URL for it) soon. Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh completion
On sze, maj 11, 2011 at 16:13:45 +0200, LEVAI Daniel wrote: On Tue, May 10, 2011 at 15:23:52 +0400, Alexander Polakov wrote: * LEVAI Daniel l...@ecentrum.hu [110510 14:33]: On Tue, May 10, 2011 at 12:28:06 +0200, LEVAI Daniel wrote: [...] Apperantly, adding ':' to ESCAPEDCHARS solves the problem. Do you think there is any sideeffect to this? No, I don't think so. Let's just add it and find out in practice. So far so good. I really like this patch. Thanks for it :) Is it acceptable in the tree? Is this really going down the sewers? Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: MSI for em(4)
This is a fairly conservative diff that enables MSI on the newer em(4) parts, essentially everything handled by the Linux e1000e driver. Please test if you have anything that's vaguely recent. It just works. Although, I only had a chance to test it with a 100Mbit connection. Daniel OpenBSD 4.9-current (GENERIC.MP) #0: Wed Jun 15 15:37:55 CEST 2011 daniell@digidani:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM real mem = 2145775616 (2046MB) avail mem = 2100469760 (2003MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 08/27/09, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS rev. 2.4 @ 0xe0010 (68 entries) bios0: vendor LENOVO version 79ETE5WW (2.25 ) date 08/27/2009 bios0: LENOVO 2007FRG acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 2, remapped to apid 1 acpimcfg0 at acpi0 addr 0xf000, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus 4 (EXP2) acpiprt5 at acpi0: bus 12 (EXP3) acpiprt6 at acpi0: bus 21 (PCI1) acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpipwrres0 at acpi0: PUBS acpitz0 at acpi0: critical temperature is 127 degC acpitz1 at acpi0: critical temperature is 99 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpibat0 at acpi0: BAT0 model 93P5030 serial 2444 type LION oem SONY acpibat1 at acpi0: BAT1 not present acpiac0 at acpi0: AC unit online acpithinkpad0 at acpi0 acpidock0 at acpi0: GDCK not docked (0) bios0: ROM list: 0xc/0xfe00 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 0xe/0x1! cpu0: Enhanced SpeedStep 1829 MHz: speeds: 1833, 1333, 1000 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03 ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: apic 1 int 16 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 ATI Radeon Mobility X1400 rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) radeondrm0 at vga1: apic 1 int 16 drm0 at radeondrm0 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: msi azalia0: codecs: Analog Devices AD1981HD, 0x/0x, using Analog Devices AD1981HD audio0 at azalia0 ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 20 pci2 at ppb1 bus 2 em0 at pci2 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: msi, address 00:16:41:aa:d2:70 ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int 21 pci3 at ppb2 bus 3 wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: msi, MoW2, address 00:18:de:65:2d:37 ppb3 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1 int 22 pci4 at ppb3 bus 4 ppb4 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1 int 23 pci5 at ppb4 bus 12 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 16 uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 17 uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 18 uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 19 ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 19 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2 pci6 at ppb5 bus 21 cbb0 at pci6 dev 0 function 0 TI PCI1510 CardBus rev 0x00: apic 1 int 16 cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 22 device 0 cacheline 0x8, lattimer 0xb0 pcmcia0 at cardslot0 ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02: PM disabled pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVDRAM GSA-4083N, 1.08 ATAPI 5/cdrom
Re: A step towards support for Message Signaled Interrupts
This diff completes the implementation of PCI flags, making sure [...] Hi! Forgive my ignorance, but is PR 6523 related to this? Should I try this with that machine? (http://marc.info/?l=openbsd-miscm=126840264605078w=2) Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh completion
On Tue, May 10, 2011 at 15:23:52 +0400, Alexander Polakov wrote: * LEVAI Daniel l...@ecentrum.hu [110510 14:33]: On Tue, May 10, 2011 at 12:28:06 +0200, LEVAI Daniel wrote: On Tue, May 10, 2011 at 08:41:48 +0200, LEVAI Daniel wrote: On Mon, May 09, 2011 at 23:48:46 +0400, Alexander Polakov wrote: * Alexander Polakov polac...@gmail.com [110502 18:19]: Do you mean something like this or I got it all wrong again and we have to wait another 15 years for someone to dig into this? That diff was wrong, this one is likely less wrong. This is working fine for me. I've just found a usecase where it fails to complete a filename: $ touch 'aaa: bbb ccc' $ touch 'aaa: bbc ddd' $ ls -la aTAB $ ls -la aaa:\ bbTAB aaa: bbb ccc aaa: bbc ddd $ ls -la aaa:\ bbcTAB ^^^ nothing happens Apperantly, adding ':' to ESCAPEDCHARS solves the problem. Do you think there is any sideeffect to this? No, I don't think so. Let's just add it and find out in practice. So far so good. I really like this patch. Thanks for it :) Is it acceptable in the tree? Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh completion
On Tue, May 10, 2011 at 08:41:48 +0200, LEVAI Daniel wrote: On Mon, May 09, 2011 at 23:48:46 +0400, Alexander Polakov wrote: * Alexander Polakov polac...@gmail.com [110502 18:19]: Do you mean something like this or I got it all wrong again and we have to wait another 15 years for someone to dig into this? That diff was wrong, this one is likely less wrong. This is working fine for me. I've just found a usecase where it fails to complete a filename: $ touch 'aaa: bbb ccc' $ touch 'aaa: bbc ddd' $ ls -la aTAB $ ls -la aaa:\ bbTAB aaa: bbb ccc aaa: bbc ddd $ ls -la aaa:\ bbcTAB ^^^ nothing happens Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh completion
On Tue, May 10, 2011 at 12:28:06 +0200, LEVAI Daniel wrote: On Tue, May 10, 2011 at 08:41:48 +0200, LEVAI Daniel wrote: On Mon, May 09, 2011 at 23:48:46 +0400, Alexander Polakov wrote: * Alexander Polakov polac...@gmail.com [110502 18:19]: Do you mean something like this or I got it all wrong again and we have to wait another 15 years for someone to dig into this? That diff was wrong, this one is likely less wrong. This is working fine for me. I've just found a usecase where it fails to complete a filename: $ touch 'aaa: bbb ccc' $ touch 'aaa: bbc ddd' $ ls -la aTAB $ ls -la aaa:\ bbTAB aaa: bbb ccc aaa: bbc ddd $ ls -la aaa:\ bbcTAB ^^^ nothing happens Apperantly, adding ':' to ESCAPEDCHARS solves the problem. Do you think there is any sideeffect to this? Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh completion
On Thu, Mar 24, 2011 at 15:48:56 +0300, Alexander Polakov wrote: And just for the archives, a patch that really works as advertised (and using it for some time I feel like it *is* a good idea). One thing I've noticed: $ touch 'thing [another thing aaa' $ touch 'thing [another thing bbb' $ ls thingTAB $ ls thing\ \[another\ thing\ \\ now hitting 'a' or 'b' and then TAB does nothing. It does not complete further. However without the '[' character in the filename, it does. Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh completion
On Thu, Mar 24, 2011 at 15:48:56 +0300, Alexander Polakov wrote: And just for the archives, a patch that really works as advertised (and using it for some time I feel like it *is* a good idea). It is really working well. Thanks! However, I don't quite understand why '[' needs to be escaped during completion: $ ls -la [\ ]\ [\ ]\ []\ ][ $ ls -la \[\ ]\ \[\ ]\ \[]\ ]\[ these two produce the same result: -rw-r--r-- 1 daniell daniell 0 Mar 24 15:38:38 2011 [ ] [ ] [] ][ Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh completion
On Thu, Mar 24, 2011 at 16:30:12 +0100, Janjaap van Velthooven wrote: On Thu, Mar 24, 2011 at 03:40:56PM +0100, LEVAI Daniel wrote: On Thu, Mar 24, 2011 at 15:48:56 +0300, Alexander Polakov wrote: And just for the archives, a patch that really works as advertised (and using it for some time I feel like it *is* a good idea). It is really working well. Thanks! However, I don't quite understand why '[' needs to be escaped during completion: $ ls -la [\ ]\ [\ ]\ []\ ][ $ ls -la \[\ ]\ \[\ ]\ \[]\ ]\[ these two produce the same result: -rw-r--r-- 1 daniell daniell 0 Mar 24 15:38:38 2011 [ ] [ ] [] ][ for the following for example: $ touch adef '[abc]def' $ ls [abc]def adef $ ls \[abc]def [abc]def $ Oh, how marvelous! Thanks! Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: stat(1) -x option shows no setuid/setgid - patch
On Tue, Oct 05, 2010 at 14:46:42 -0700, Philip Guenther wrote: On Sat, 2 Oct 2010, LEVAI Daniel wrote: [...] Mode: (104555/-r-sr-xr-x) ^^^ Hmm, that doesn't match the Linux/GNU stat behavior, which doesn't show the file-type bits, bits which no sane program looks at except via the macros in sys/stat.h. Might I suggest instead this diff? [...] $ obj/stat -x /usr/bin/passwd ./foo /dev/null File: /usr/bin/passwd Size: 26280FileType: Regular File Mode: (4555/-r-sr-xr-x) Uid: (0/root) Gid: (7/ bin) [...] That makes more sense, indeed! Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
stat(1) -x option shows no setuid/setgid - patch
Hi! I noticed that executin stat -x on a setuid or setgid file don't display the setuid/setgid mode in the numeric Mode: field: $ /usr/bin/stat -x /usr/bin/passwd File: /usr/bin/passwd Size: 22484FileType: Regular File Mode: (0555/-r-sr-xr-x) [...] ^ This patch solves it by removing some format characters: Index: stat.c === RCS file: /cvs/src/usr.bin/stat/stat.c,v retrieving revision 1.16 diff -p -u -r1.16 stat.c --- stat.c 1 Sep 2010 06:35:05 - 1.16 +++ stat.c 2 Oct 2010 17:35:17 - @@ -60,7 +60,7 @@ #define LINUX_FORMAT \ File: \%N\%n \ Size: %-11z FileType: %HT%n \ - Mode: (%04OLp/%.10Sp) Uid: (%5u/%8Su) Gid: (%5g/%8Sg)%n \ + Mode: (%p/%.10Sp) Uid: (%5u/%8Su) Gid: (%5g/%8Sg)%n \ Device: %Hd,%Ld Inode: %iLinks: %l%n \ Access: %Sa%n \ Modify: %Sm%n \ After this: $ /usr/bin/stat -x /usr/bin/passwd File: /usr/bin/passwd Size: 22484FileType: Regular File Mode: (104555/-r-sr-xr-x) ^^^ Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: Looking for testers for a simple X test
On Mon, Aug 30, 2010 at 23:31:25 +0200, Mark Kettenis wrote: The Xorg xserver runs a scary amount of code in a signal handler. It's supposed to make your mouse cursor move more smoothly, but I can't spot the difference when I disable that feature. Instead, this feature breaks certain multi-card setups and god knows what. So we're considering switching this off by default. Before we do that, we'd like to do some wider testing. If you're regularly sitting behind an OpenBSD machine running X, can you add the following lines to /etc/X11/xorg.conf (or create one with these lines): Section ServerFlags Option UseSIGIO false EndSection and restart X. Let me know if you observe any significant changes in behaviour. My cursor acts as usual. It occasionally turns into a big vertical arrow-like thing, and I got the well known radeonhd bug [1] - The cursor shows weird corruptions at some points of the screen, although I'm not using the radeonhd driver. However, using this option, after starting firefox everything gets extremely laggy, and I can interact with my machine with the keyboard or mouse with 4 seconds intervals. After commenting this option, the behaviour returns to the usual. Daniel [1] - https://bugs.freedesktop.org/show_bug.cgi?id=13405 -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: Looking for testers for a simple X test
On Wed, Sep 01, 2010 at 06:30:05 -0400, Kenneth R Westerback wrote: On Wed, Sep 01, 2010 at 09:35:17AM +0200, LEVAI Daniel wrote: [...] However, using this option, after starting firefox everything gets extremely laggy, and I can interact with my machine with the keyboard or mouse with 4 seconds intervals. After commenting this option, the behaviour returns to the usual. I have seen something similar on my testing on an older Dell with Intel 845GM as I recall. The mouse and keyboard are unresponsive while loading a busy page with many ads. I put this down to those particular stations deliberately defeating DNS resolution of many ad generating sites, but I couldn't confirm that with the single test I tried so far. My laggyness was before loading any page. I just started mozilla, and it showed the about:blank page. Daniel -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: disklabel - 'P' option
On Wed, Apr 07, 2010 at 11:21:49AM +, Mark Lumsden wrote: I press 'p' then enter after everything I do in disklabel. 'P' automatically prints out the equivalent of 'p' after each command and saves on finger wear and tear. like/dislike? Neat! Dani -- LIVAI Daniel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F
Re: ksh file completion bug
Hi! Thanks to all who have replied. I'm really baffled with this. I've upgraded to a more recent snapshot, and it has gone away since. However I'm not really sure that the error was in the previous snapshot, in fact it was probably a PEBKAC, but I've no idea what could've been the problem. Anyway, sorry for the noise. Daniel -- LIVAI Daniel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
ksh file completion bug
Hi! With ksh's Vi edit mode I've experienced the following: If a file's size is exactly 2GiB or more, pdksh fails to complete its name during filename completion (eg.: hitting TAB or CTRL+e or whatever). If the file's size is just one byte short of the 2 gigs, then the completion works fine. Quick way to test it: $ dd if=/dev/zero of=./2GiB bs=1024 count=2097152 $ ls -la 2GTABTABTABTAB ... = nothing Daniel ps.: this is under -current and i386 -- LIVAI Daniel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Re: azalia: use line out jack colors in mixer names
On Tuesday 23 June 2009 03.39.55 Jacob Meuser wrote: this is looking good but more test reports are always nice. It is working okay here. ThinkPad T60. [...] azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: apic 1 int 17 (irq 11 ) azalia0: RIRB time out azalia0: codecs: Analog Devices AD1981HD, 0x/0x, using Analog Devices AD1981HD azalia0: RIRB time out audio0 at azalia0 [...] -- LIVAI Daniel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1