Re: typo in faq/upgrade49.html

2011-06-11 Thread Mark Lumsden
I think moving the 1a heading up a bit makes sense. We then
have a paragraph of intro then sysmerge is in 1a and the
patch section in 1b.

ok/comments?

-lum

Index: upgrade49.html
===
RCS file: /cvs/www/faq/upgrade49.html,v
retrieving revision 1.12
diff -u -p -r1.12 upgrade49.html
--- upgrade49.html  3 May 2011 01:44:20 -   1.12
+++ upgrade49.html  11 Jun 2011 05:58:00 -
@@ -273,13 +273,16 @@ file was copied to /dev by the installat
 Whether you upgrade by using an install kernel and doing a formal  
 upgrade process, or do a in-place binary upgrade, you need to update
 the system configuration files which are included in the ttetc49.tgz/tt
-which we have not been dealt with so far.
+which have not been dealt with so far.
 There are two processes we provide for you -- manually copying over some
 files and patching others, or using the
 a 
href=http://www.openbsd.org/cgi-bin/man.cgi?query=sysmergeamp;sektion=8;sysmerge(8)/a
 process.
 
 p
+a name=sysmerge/a
+h31a. Merging locally changed files via sysmerge(8)/h3
+
 bWho should use sysmerge(8):/bbr
 People running highly modified systems or systems that didn't start out
 at the previous release (for example, a snapshot part way between
@@ -310,9 +313,7 @@ files.
 Rest assured, later runs of sysmerge will be far less painful, and often
 completely effortless.
 
-
-a name=sysmerge/a
-h31a. Merging locally changed files via sysmerge(8)/h3
+p
 The
 a 
href=http://www.openbsd.org/cgi-bin/man.cgi?query=sysmergeamp;sektion=8;sysmerge(8)/a
 utility will compare the files that are actually on your system with



Re: updating netbook bios

2011-06-11 Thread patrick keshishian
On Fri, Jun 10, 2011 at 10:52 PM, Francois Pussault
fpussa...@contactoffice.fr wrote:
 hi,

Thanks for the quick reply.


 as far the usb stick is OK, you may put exe on its root directory
 then as you boot from CD,  see USBstick it will be unable to reject it.

OK. I copied the windows exe file to root dir of the USB stick. Still
no go. The error message is:

The command is not recognized  Type HELP for a list of supported commands

 if possible use a fat32  or vfat format on  the USBstick

Hmm.. currently it USB stick is 06 DOS  32MB format. I'll see if I
can find another spare one to reformat with fat32 (0x0b).

 to disable file permitions check.

How does one do this?

--patrick


 I hop it can work like that


 
 From: patrick keshishian pkesh...@gmail.com
 Sent: Sat Jun 11 07:45:02 CEST 2011
 To: misc misc@openbsd.org
 Subject: updating netbook bios


 So I have this gateway lt31 (someshit) netbook that hangs after random
 number of zzz/wake cycles. I posted on misc@ about it a few times and
 both Theo and Mike Larkin chimed in (privately) with advice and
 patches; Much appreciated, but the problem persists.

 So I had the genius idea that updating the bios may help the situation.

 The problem: The bios update is a zip file with one DOS and one
 Winblows executable.

 I don't have either OS. So I borrowed a Win XP and a Windows Server
 2003 CD from friends.

 I am able to boot off both of them (using an external USB CDROM) and
 drop to a command prompt. This is in the hopes of executing the win
 .exe file off a USB stick.

 Recap: I boot off CD fine. I am able to drop to a command prompt OK. I
 am able to see the contents of the USB stick OK too. But I am unable
 to execute the damn executable off the USB stick.

 I can't CD into the directory they are in (error message: not
 allowed). I can DIR folder and get the listing of the
 directory/folder with the executables within it. If I supply the full
 path to the executable it doesn't run (I forget the exact error
 message -- I should've written it down before giving up).

 So the question I have is how can I update this netbook's bios?

 --patrick



 Cordialement
 Francois Pussault
 3701 - 8 rue Marcel Pagnol
 31100 Toulouse
 France
 +33 6 17 230 820   +33 5 34 365 269
 fpussa...@contactoffice.fr



Re: updating netbook bios

2011-06-11 Thread Robert
Hi,

you can create a bootable USB stick with FreeDOS:
http://sourceforge.net/apps/mediawiki/freedos/index.php?title=USB

I use it for BIOS updates and it works fine.

kind regards,
Robert


On Fri, 10 Jun 2011 23:23:55 -0700
patrick keshishian pkesh...@gmail.com wrote:

 On Fri, Jun 10, 2011 at 10:52 PM, Francois Pussault
 fpussa...@contactoffice.fr wrote:
  hi,
 
 Thanks for the quick reply.
 
 
  as far the usb stick is OK, you may put exe on its root directory
  then as you boot from CD,  see USBstick it will be unable to reject it.
 
 OK. I copied the windows exe file to root dir of the USB stick. Still
 no go. The error message is:
 
 The command is not recognized  Type HELP for a list of supported commands
 
  if possible use a fat32  or vfat format on  the USBstick
 
 Hmm.. currently it USB stick is 06 DOS  32MB format. I'll see if I
 can find another spare one to reformat with fat32 (0x0b).
 
  to disable file permitions check.
 
 How does one do this?
 
 --patrick
 
 
  I hop it can work like that
 
 
  
  From: patrick keshishian pkesh...@gmail.com
  Sent: Sat Jun 11 07:45:02 CEST 2011
  To: misc misc@openbsd.org
  Subject: updating netbook bios
 
 
  So I have this gateway lt31 (someshit) netbook that hangs after random
  number of zzz/wake cycles. I posted on misc@ about it a few times and
  both Theo and Mike Larkin chimed in (privately) with advice and
  patches; Much appreciated, but the problem persists.
 
  So I had the genius idea that updating the bios may help the situation.
 
  The problem: The bios update is a zip file with one DOS and one
  Winblows executable.
 
  I don't have either OS. So I borrowed a Win XP and a Windows Server
  2003 CD from friends.
 
  I am able to boot off both of them (using an external USB CDROM) and
  drop to a command prompt. This is in the hopes of executing the win
  .exe file off a USB stick.
 
  Recap: I boot off CD fine. I am able to drop to a command prompt OK. I
  am able to see the contents of the USB stick OK too. But I am unable
  to execute the damn executable off the USB stick.
 
  I can't CD into the directory they are in (error message: not
  allowed). I can DIR folder and get the listing of the
  directory/folder with the executables within it. If I supply the full
  path to the executable it doesn't run (I forget the exact error
  message -- I should've written it down before giving up).
 
  So the question I have is how can I update this netbook's bios?
 
  --patrick
 
 
 
  Cordialement
  Francois Pussault
  3701 - 8 rue Marcel Pagnol
  31100 Toulouse
  France
  +33 6 17 230 820   +33 5 34 365 269
  fpussa...@contactoffice.fr



Re: updating netbook bios

2011-06-11 Thread patrick keshishian
On Fri, Jun 10, 2011 at 11:42 PM, Robert info...@die-optimisten.net wrote:
 Hi,

 you can create a bootable USB stick with FreeDOS:
 http://sourceforge.net/apps/mediawiki/freedos/index.php?title=USB

earlier today I did look at freedos option. But I couldn't find info
on their site on whether or not it would see the USB stick after
booting off one of their ISO images.

The link you provide is more promising as I can place the bios update
image on the usb stick along with the bootable freedos image. But
those steps require either a Linux or a Winblows box. Will have to
wait 'til I get to the office on Monday.

Thanks,
--patrick



 I use it for BIOS updates and it works fine.

 kind regards,
 Robert


 On Fri, 10 Jun 2011 23:23:55 -0700
 patrick keshishian pkesh...@gmail.com wrote:

 On Fri, Jun 10, 2011 at 10:52 PM, Francois Pussault
 fpussa...@contactoffice.fr wrote:
  hi,

 Thanks for the quick reply.


  as far the usb stick is OK, you may put exe on its root directory
  then as you boot from CD,  see USBstick it will be unable to reject it.

 OK. I copied the windows exe file to root dir of the USB stick. Still
 no go. The error message is:

 The command is not recognized  Type HELP for a list of supported
commands

  if possible use a fat32  or vfat format on  the USBstick

 Hmm.. currently it USB stick is 06 DOS  32MB format. I'll see if I
 can find another spare one to reformat with fat32 (0x0b).

  to disable file permitions check.

 How does one do this?

 --patrick


  I hop it can work like that
 
 
  
  From: patrick keshishian pkesh...@gmail.com
  Sent: Sat Jun 11 07:45:02 CEST 2011
  To: misc misc@openbsd.org
  Subject: updating netbook bios
 
 
  So I have this gateway lt31 (someshit) netbook that hangs after random
  number of zzz/wake cycles. I posted on misc@ about it a few times and
  both Theo and Mike Larkin chimed in (privately) with advice and
  patches; Much appreciated, but the problem persists.
 
  So I had the genius idea that updating the bios may help the situation.
 
  The problem: The bios update is a zip file with one DOS and one
  Winblows executable.
 
  I don't have either OS. So I borrowed a Win XP and a Windows Server
  2003 CD from friends.
 
  I am able to boot off both of them (using an external USB CDROM) and
  drop to a command prompt. This is in the hopes of executing the win
  .exe file off a USB stick.
 
  Recap: I boot off CD fine. I am able to drop to a command prompt OK. I
  am able to see the contents of the USB stick OK too. But I am unable
  to execute the damn executable off the USB stick.
 
  I can't CD into the directory they are in (error message: not
  allowed). I can DIR folder and get the listing of the
  directory/folder with the executables within it. If I supply the full
  path to the executable it doesn't run (I forget the exact error
  message -- I should've written it down before giving up).
 
  So the question I have is how can I update this netbook's bios?
 
  --patrick
 
 
 
  Cordialement
  Francois Pussault
  3701 - 8 rue Marcel Pagnol
  31100 Toulouse
  France
  +33 6 17 230 820   +33 5 34 365 269
  fpussa...@contactoffice.fr



Re: updating netbook bios

2011-06-11 Thread Abel Abraham Camarillo Ojeda
On Sat, Jun 11, 2011 at 1:58 AM, patrick keshishian pkesh...@gmail.com
wrote:
 On Fri, Jun 10, 2011 at 11:42 PM, Robert info...@die-optimisten.net
wrote:
 Hi,

 you can create a bootable USB stick with FreeDOS:
 http://sourceforge.net/apps/mediawiki/freedos/index.php?title=USB

 earlier today I did look at freedos option. But I couldn't find info
 on their site on whether or not it would see the USB stick after
 booting off one of their ISO images.

 The link you provide is more promising as I can place the bios update
 image on the usb stick along with the bootable freedos image. But
 those steps require either a Linux or a Winblows box. Will have to
 wait 'til I get to the office on Monday.

 Thanks,
 --patrick



 I use it for BIOS updates and it works fine.

 kind regards,
 Robert


 On Fri, 10 Jun 2011 23:23:55 -0700
 patrick keshishian pkesh...@gmail.com wrote:

 On Fri, Jun 10, 2011 at 10:52 PM, Francois Pussault
 fpussa...@contactoffice.fr wrote:
  hi,

 Thanks for the quick reply.


  as far the usb stick is OK, you may put exe on its root directory
  then as you boot from CD,  see USBstick it will be unable to reject
it.

 OK. I copied the windows exe file to root dir of the USB stick. Still
 no go. The error message is:

 The command is not recognized B Type HELP for a list of supported
 commands

  if possible use a fat32 B or vfat format on B the USBstick

 Hmm.. currently it USB stick is 06 DOS  32MB format. I'll see if I
 can find another spare one to reformat with fat32 (0x0b).

  to disable file permitions check.

 How does one do this?

 --patrick


  I hop it can work like that
 
 
  
  From: patrick keshishian pkesh...@gmail.com
  Sent: Sat Jun 11 07:45:02 CEST 2011
  To: misc misc@openbsd.org
  Subject: updating netbook bios
 
 
  So I have this gateway lt31 (someshit) netbook that hangs after random
  number of zzz/wake cycles. I posted on misc@ about it a few times and
  both Theo and Mike Larkin chimed in (privately) with advice and
  patches; Much appreciated, but the problem persists.
 
  So I had the genius idea that updating the bios may help the
situation.
 
  The problem: The bios update is a zip file with one DOS and one
  Winblows executable.
 
  I don't have either OS. So I borrowed a Win XP and a Windows Server
  2003 CD from friends.
 
  I am able to boot off both of them (using an external USB CDROM) and
  drop to a command prompt. This is in the hopes of executing the win
  .exe file off a USB stick.
 
  Recap: I boot off CD fine. I am able to drop to a command prompt OK. I
  am able to see the contents of the USB stick OK too. But I am unable
  to execute the damn executable off the USB stick.
 
  I can't CD into the directory they are in (error message: not
  allowed). I can DIR folder and get the listing of the
  directory/folder with the executables within it. If I supply the full
  path to the executable it doesn't run (I forget the exact error
  message -- I should've written it down before giving up).
 
  So the question I have is how can I update this netbook's bios?
 
  --patrick
 
 
 
  Cordialement
  Francois Pussault
  3701 - 8 rue Marcel Pagnol
  31100 Toulouse
  France
  +33 6 17 230 820 B  +33 5 34 365 269
  fpussa...@contactoffice.fr



Why don't you try downloading the iso file, and using something like
growisofs to _add_ your bios update files into it, then burn it and run it.

I did that when I needed to update my BIOS...



uhci0 issues?

2011-06-11 Thread Mitja
# dmesg
OpenBSD 4.9 (GENERIC.MP) #819: Wed Mar  2 06:57:49 MST 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3748134912 (3574MB)
avail mem = 3634339840 (3465MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9ac00 (37 entries)
bios0: vendor American Megatrends Inc. version 2.0 date 07/29/10
bios0: Supermicro X8ST3ucomstart: err=IOERROR
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT EINJ BERT ERST HEST
acpi0: wakeup devices P0P1(S4) PS2K(S4) PS2M(S4) USB0(S4) USB1(S4)
USB2(S4) USB5(S4) EUSB(S4) USB3(S4) USB4(S4) USB6(S4) USBE(S4) GBE_(S4)
P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) NPE1(S4) NPE2(S4)
NPE3(S4) NPE4(S4) NPE5(S4) NPE6(S4) NPE7(S4) NPE8(S4) NPE9(S4) NPEA(S4)
SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5504 @ 2.00GHz, 2000.29 MHz
cpu0:
FPU,VME,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,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5504 @ 2.00GHz, 2000.00 MHz
cpu1:
FPU,VME,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,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5504 @ 2.00GHz, 2000.00 MHz
cpu2:
FPU,VME,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,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5504 @ 2.00GHz, 2000.00 MHz
cpu3:
FPU,VME,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,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 8, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 8 (P0P1)
acpiprt2 at acpi0: bus 6 (P0P4)
acpiprt3 at acpi0: bus 7 (P0P5)
acpiprt4 at acpi0: bus -1 (P0P6)
acpiprt5 at acpi0: bus -1 (P0P7)
acpiprt6 at acpi0: bus -1 (P0P8)
acpiprt7 at acpi0: bus -1 (P0P9)
acpiprt8 at acpi0: bus 1 (NPE1)
acpiprt9 at acpi0: bus -1 (NPE2)
acpiprt10 at acpi0: bus 2 (NPE3)
acpiprt11 at acpi0: bus -1 (NPE4)
acpiprt12 at acpi0: bus 3 (NPE5)
acpiprt13 at acpi0: bus -1 (NPE6)
acpiprt14 at acpi0: bus 4 (NPE7)
acpiprt15 at acpi0: bus -1 (NPE8)
acpiprt16 at acpi0: bus 5 (NPE9)
acpiprt17 at acpi0: bus -1 (NPEA)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpicpu2 at acpi0: C3, C2, C1, PSS
acpicpu3 at acpi0: C3, C2, C1, PSS
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2000 MHz: speeds: 2000, 1867, 1733, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel X58 Host rev 0x22
ppb0 at pci0 dev 1 function 0 Intel X58 PCIE rev 0x22
pci1 at ppb0 bus 1
ppb1 at pci0 dev 3 function 0 Intel X58 PCIE rev 0x22
pci2 at ppb1 bus 2
ppb2 at pci0 dev 5 function 0 Intel X58 PCIE rev 0x22
pci3 at ppb2 bus 3
ppb3 at pci0 dev 7 function 0 Intel X58 PCIE rev 0x22
pci4 at ppb3 bus 4
ppb4 at pci0 dev 9 function 0 Intel X58 PCIE rev 0x22
pci5 at ppb4 bus 5
mpi0 at pci5 dev 0 function 0 Symbios Logic SAS1068E rev 0x08: apic 1
int 16 (irq 11)
scsibus0 at mpi0: 173 targets
sd0 at scsibus0 targ 0 lun 0: ATA, ST3500514NS, SN11 SCSI3 0/direct fixed
sd0: 476940MB, 512 bytes/sec, 976773168 sec total
sd1 at scsibus0 targ 1 lun 0: ATA, ST3500514NS, SN11 SCSI3 0/direct fixed
sd1: 476940MB, 512 bytes/sec, 976773168 sec total
sd2 at scsibus0 targ 2 lun 0: ATA, ST3500514NS, SN11 SCSI3 0/direct fixed
sd2: 476940MB, 512 bytes/sec, 976773168 sec total
sd3 at scsibus0 targ 3 lun 0: ATA, ST3500514NS, SN12 SCSI3 0/direct fixed
sd3: 476940MB, 512 bytes/sec, 976773168 sec total
sd4 at scsibus0 targ 4 lun 0: ATA, ST31000524NS, SN12 SCSI3 0/direct fixed
sd4: 953869MB, 512 bytes/sec, 1953525168 sec total
sd5 at scsibus0 targ 5 lun 0: ATA, ST3500514NS, SN12 SCSI3 0/direct fixed
sd5: 476940MB, 512 bytes/sec, 976773168 sec total
sd6 at scsibus0 targ 6 lun 0: ATA, ST31000524NS, SN12 SCSI3 0/direct fixed
sd6: 953869MB, 512 bytes/sec, 1953525168 sec total
Intel X58 Misc rev 0x22 at pci0 dev 20 function 0 not configured
Intel X58 GPIO rev 0x22 at pci0 dev 20 function 1 not configured
Intel X58 RAS rev 0x22 at pci0 

Re: updating netbook bios

2011-06-11 Thread patrick keshishian
On Sat, Jun 11, 2011 at 12:08 AM, Abel Abraham Camarillo Ojeda
acam...@verlet.org wrote:
 Why don't you try downloading the iso file, and using something like
 growisofs to _add_ your bios update files into it, then burn it and run it.

Good idea! .. but ...

 I did that when I needed to update my BIOS...

I would love to know how you did this. I have three new coasters that
show the added files if mounted under OpenBSD, but not when booted
into FreeDOS.

--patrick



Programmatically detect removed usb stick?

2011-06-11 Thread T
Hello,

I'm writing a small program which changes working dir to a
specific directory (using chdir()), and then opens, reads, and
closes files in that directory, depending on user actions.
Sometimes this directory is located on a mounted USB stick.

I'm looking for a simple way to detect, from within my program,
if a user have removed the USB stick without first unmounting it.

The simplest way, I thought, was to check errno for EIO or ENXIO
(depending on whether an error occurs in fread() or fopen()).
However, that does not seem to work, because if I call fopen()
after the USB stick has been removed, the return value is NULL,
and the errno code is ENOENT instead of ENXIO, which sort of
makes sense (the file certainly is not there any more), but the
cause of the error cannot be differentiated from a regular
mis-spelling of the file name.

So is there some reliable way of detecting whether the underlying
storage device has gone away when a library/system call fails,
even if the OS still regards the filesystem as being mounted? Can
I, upon detecting errno==ENOENT after fopen(), use some other
calls (for example ioctl(), getfsstat(), or statfs()) to
determine whether the cause is a mis-spelled filename or removed
USB stick? What is the recommended/preferred way? Can/should I
perhaps do something before attempting the fopen(), to find out
whether the USB stick is still attached?

I prefer simple solutions using standard library/system calls,
and would like to avoid attaching to some notification mechanism,
and tailing the kernel log looking for USB detach messages is a
clumsy last chance solution.

Dave



using PCC in openbsd?

2011-06-11 Thread xPoiSoN
hello all,

it's possible to use PCC for main compiler in openbsd?
I want learn C (just start practice C programming)
and i read in undeadly PCC much better than GCC,

cc command in openbsd soft link to PCC or GCC?

If i use PCC, i'll get incompatibility problem if my work not use PCC (using 
GCC or visual studio).

so for noob like me, which is preferred C compiler i must use?
PCC or GCC ?

thx



Re: using PCC in openbsd?

2011-06-11 Thread Paul de Weerd
On Sat, Jun 11, 2011 at 03:47:50PM +0800, xPoiSoN wrote:
| hello all,
| 
| it's possible to use PCC for main compiler in openbsd?
| I want learn C (just start practice C programming)
| and i read in undeadly PCC much better than GCC,
| 
| cc command in openbsd soft link to PCC or GCC?
| 
| If i use PCC, i'll get incompatibility problem if my work not use
| PCC (using GCC or visual studio).
| 
| so for noob like me, which is preferred C compiler i must use?
| PCC or GCC ?

If 'noob like [you]' writes C code that works with one compiler and
does not with the other you've created a great opportunity for
yourself to learn something.  In general, it's best to try and avoid
those situations when and where you can.  Especially when you're new
to this thing; once you understand the tradeoffs then maybe (maybe)
you can consider taking advantage of a specific feature of a
particular compiler not present in others.  It's not a very portable
practice though, I recommend against it in the general case.

Paul 'WEiRD' de Weerd

-- 
[++-]+++.+++[---].+++[+
+++-].++[-]+.--.[-]
 http://www.weirdnet.nl/ 



Notifica Urgente !

2011-06-11 Thread POSTE ITALIANE
Notifica Urgente !


Legga attentamente il seguente vademecum !
Gentile Cliente, a causa di un recente e massiccio attacco subito dal nostro
sito postepay.it,
durante il quale sono stati compromessi numerosi account di nostri clienti,
siamo stati costretti a bloccare tutte le carte postepay in essere presso il
nostro Istituto.
Il blocco e' temporaneo, e serve a cambiare i codici di utilizzo delle carte,
rendendole inutilizzabili.
Per sbloccare la sua carta e ripristinarne il normale uso, dovra' verificare
tramite

inserimento dei suoi dati, di esserne il titolare, entro 48 ore dal
ricevimento della presente.
In mancanza di tale verifica, la sua carta verra' bloccata DEFINITIVAMENTE.


EFFETTUI ORA IL PROCESSO DI VERIFICA


) Poste italiane 2011 - Partita Iva 01114601006



Re: Programmatically detect removed usb stick?

2011-06-11 Thread Benny Lofgren
On 2011-06-11 10.08, T wrote:
 I'm writing a small program which changes working dir to a
 specific directory (using chdir()), and then opens, reads, and
 closes files in that directory, depending on user actions.
 Sometimes this directory is located on a mounted USB stick.
 
 I'm looking for a simple way to detect, from within my program,
 if a user have removed the USB stick without first unmounting it.
 
 The simplest way, I thought, was to check errno for EIO or ENXIO
 (depending on whether an error occurs in fread() or fopen()).
 However, that does not seem to work, because if I call fopen()
 after the USB stick has been removed, the return value is NULL,
 and the errno code is ENOENT instead of ENXIO, which sort of
 makes sense (the file certainly is not there any more), but the
 cause of the error cannot be differentiated from a regular
 mis-spelling of the file name.
 
 So is there some reliable way of detecting whether the underlying
 storage device has gone away when a library/system call fails,
 even if the OS still regards the filesystem as being mounted? Can
 I, upon detecting errno==ENOENT after fopen(), use some other
 calls (for example ioctl(), getfsstat(), or statfs()) to
 determine whether the cause is a mis-spelled filename or removed
 USB stick? What is the recommended/preferred way? Can/should I
 perhaps do something before attempting the fopen(), to find out
 whether the USB stick is still attached?
 
 I prefer simple solutions using standard library/system calls,
 and would like to avoid attaching to some notification mechanism,
 and tailing the kernel log looking for USB detach messages is a
 clumsy last chance solution.

Try to do an open(., O_RDONLY) if your fopen()/fread() fails.

If you get -1 and ENOENT then the file system where you've parked
your cwd is no longer mounted (statfs() should also work equally
well, but then you'd need to declare a statfs struct you'd have
no further use for).

It's not wise to check before your fopen():s, because they may
still fail if the user pulls the USB stick in the right moment,
only use it as a verification of *what* actually went wrong.


Regards,
/Benny


-- 
internetlabbet.se / work:   +46 8 551 124 80  / Words must
Benny Lvfgren/  mobile: +46 70 718 11 90 /   be weighed,
/   fax:+46 8 551 124 89/not counted.
   /email:  benny -at- internetlabbet.se



Re: IPv4 routing fails after IPv6 default route is added

2011-06-11 Thread Benjamin Kiessling
Hi,

On 2011.06.10 16:35:43 +, Stuart Henderson wrote:
 I would suggest being more specific with your nat rule.
 If you have a default v6 route on gre, this is in group egress
 too, and might get picked as the interface to try and nat packets
 to, but it doesn't have a v4 address so the nat can't work.
 Because you're using (egress:0) rather than just egress:0 to
 track address changes, you won't be able to see what's going on
 using the standard tools (pfctl -vf /etc/pf.conf, pfctl -sr,
 etc) which might otherwise clarify things.

Thanks. That seems to have fixed it. I assumed the skip gre0 would be enough to
disable all rules on the interface/route going over that interface.

Regards,
Benjamin Kiessling



Re: Programmatically detect removed usb stick?

2011-06-11 Thread Martin Schröder
2011/6/11 Benny Lofgren bl-li...@lofgren.biz:
 If you get -1 and ENOENT then the file system where you've parked
 your cwd is no longer mounted (statfs() should also work equally

What if the cwd has been removed by another process instead?

Best
   Martin



Re: updating netbook bios

2011-06-11 Thread David
On 6/10/2011 10:45 PM, patrick keshishian wrote:
 So I have this gateway lt31 (someshit) netbook that hangs after random
 number of zzz/wake cycles. I posted on misc@ about it a few times and
 both Theo and Mike Larkin chimed in (privately) with advice and
 patches; Much appreciated, but the problem persists.
 
 So I had the genius idea that updating the bios may help the situation.
 
 The problem: The bios update is a zip file with one DOS and one
 Winblows executable.
 
 I don't have either OS. So I borrowed a Win XP and a Windows Server
 2003 CD from friends.
 
 I am able to boot off both of them (using an external USB CDROM) and
 drop to a command prompt. This is in the hopes of executing the win
 .exe file off a USB stick.
 
 Recap: I boot off CD fine. I am able to drop to a command prompt OK. I
 am able to see the contents of the USB stick OK too. But I am unable
 to execute the damn executable off the USB stick.
 
 I can't CD into the directory they are in (error message: not
 allowed). I can DIR folder and get the listing of the
 directory/folder with the executables within it. If I supply the full
 path to the executable it doesn't run (I forget the exact error
 message -- I should've written it down before giving up).
 
 So the question I have is how can I update this netbook's bios?
 
 --patrick
 
 
Hate to state the obvious, but have you tried just installing windows on
a hard drive in the notebook, and executing the update from within windows?



Avis de suspension de votre carte?

2011-06-11 Thread Service/visa
VerifedbyvisaVerifedbyvisa

  Cher client ,

  Nous vous informons que votre Carte Bancaire vient d'jtre suspendue
  par nos services suite au nouvelles mesure de sicuriti mise en place
  pour lutter contre les fraudes, Les achats sur Internet sont devenus
  monnaie courante. Avec eux est apparu un besoin croissant de
  sicurisation des paiements tant pour les consommateurs que pour les
  sites commergants.

  Nous vous invitons a effectuer la mise a jour ou la criation de votre
  compte verified by visa . Pour votre sicuriti, nous avons suspendue
  votre Carte de cridit. Pour lever cette suspension suivez la
  procidure indiquer pour Mettre a jour votre Carte Cridit.

* Cliquez sur le lien ci-dessous pour ouvrir une fenjtre de
  navigateur sicurisi.

* Confirmez que vous jtes bien le titulaire du compte et suivez les
  instructions.

Acceder A Votre Compte

Note: Si vous n'effectuez aucune actions avants le 13 juin 2011, nous
serons contraints de suspendre votre carte difinitivement auprhs de votre
banque imettrice.

Nous vous remercions de votre coopiration dans le cadre de votre dossier
N00182940622.

Visa et MasterCard vous propose un dispositif dauthentification capable
de lutter contre lutilisation frauduleuse de votre carte bancaire sur
Internet .

Support Clients Service.



Copyright 1999-2011 VerifedbyVisa . Tous droits riservis.



Notre offre

2011-06-11 Thread ing.sudouest
Si cet email ne sbaffiche pas correctement, vous pouvez le visualiser C 
l'aide de cette version en ligne

































En application de l'article 34 de la Loi Informatique et LibertC)s, vous C*tes
informC)(e)s que vouspouvez C  tout moment accC)der, modifier ou supprimer vos
informations personnelles.Si vous ne souhaitez plus recevoir de messages de
notre part cliquez ici.



Re: Programmatically detect removed usb stick?

2011-06-11 Thread Ted Unangst
On Sat, Jun 11, 2011 at 4:08 AM, T jatd...@gmail.com wrote:
 So is there some reliable way of detecting whether the underlying
 storage device has gone away when a library/system call fails,
 even if the OS still regards the filesystem as being mounted? Can
 I, upon detecting errno==ENOENT after fopen(), use some other
 calls (for example ioctl(), getfsstat(), or statfs()) to
 determine whether the cause is a mis-spelled filename or removed
 USB stick? What is the recommended/preferred way? Can/should I
 perhaps do something before attempting the fopen(), to find out
 whether the USB stick is still attached?

There are no filesystems without storage, they are force unmounted
when the device is removed.  You should look into hotplugd if you want
notification of device removal.



Asterisk and Festival

2011-06-11 Thread Peter Fraser
I use Festival speech synthesis when I configure Asterisk and to debug my dial
plan.

For day to day use I don't use Festival, and as a result I don't want the
Festival server
running all the time so I don't use the festival.conf within asterisk, but I
rather use

macro sayText(text) {
sayTextfile = /tmp/asterisk${RAND()};
System(echo ${text}|/usr/local/bin/newtext2wave -otype ulaw
${sayTextFile}.ulaw);
Playback(${sayTextFile});
System(rm -f ${sayTextFile}.ulaw);
return;
}

within the dial plan.

The trouble is that text2wave gets a Segmentation fault.
I found an update text2wave that does work referred to in

http://ngoinabox.mahiti.org/howtos/archive/2010/01/22/installing-festival-and
-setting-voice-to-female

the fix is located at

http://irlp.kc6hur.net/downloads/text2wave



Re: updating netbook bios

2011-06-11 Thread Corey

On 06/11/2011 10:45 AM, David wrote:

On 6/10/2011 10:45 PM, patrick keshishian wrote:

So I have this gateway lt31 (someshit) netbook that hangs after random
number of zzz/wake cycles. I posted on misc@ about it a few times and
both Theo and Mike Larkin chimed in (privately) with advice and
patches; Much appreciated, but the problem persists.

So I had the genius idea that updating the bios may help the situation.

The problem: The bios update is a zip file with one DOS and one
Winblows executable.

I don't have either OS. So I borrowed a Win XP and a Windows Server
2003 CD from friends.

I am able to boot off both of them (using an external USB CDROM) and
drop to a command prompt. This is in the hopes of executing the win
.exe file off a USB stick.

Recap: I boot off CD fine. I am able to drop to a command prompt OK. I
am able to see the contents of the USB stick OK too. But I am unable
to execute the damn executable off the USB stick.

I can't CD into the directory they are in (error message: not
allowed). I can DIR folder and get the listing of the
directory/folder with the executables within it. If I supply the full
path to the executable it doesn't run (I forget the exact error
message -- I should've written it down before giving up).

So the question I have is how can I update this netbook's bios?

--patrick



Hate to state the obvious, but have you tried just installing windows on
a hard drive in the notebook, and executing the update from within windows?


You might also try a BartPE boot/rescue CD (Windows):

http://www.nu2.nu/pebuilder/

I've run antivirus from these before.

Corey



64bit (or better) memory reads in i386

2011-06-11 Thread Giridhari
Hare Krsna

I am developing an OpenBSD build for which will be critically sensitive to
memory copy speed.
Can someone fill me in on the status of memory copy in OpenBSD on i386? Is it
possible to avail oneself of SSE or similar? Is memory copy on i386 only 32
bit?
Is there much activity in porting OpenBSD to x64 architecture?

Excuse me if this has been thrashed out already.

Giridhari



[gbtsz] ブランド専門店|腕時計,バッグ,財布 最大80%OFF!送料無料 2011-6-1213:47:3733266

2011-06-11 Thread smei
m...@openbsd.orgf'

cc)c3c  ccc0occ)c3c 13:47:37h2!e8occ)c3c   
hfh(h2) cjyye#2e:

[IMAGE]

h6d8f5cc)c3c f?e.,d8;c*cc)c3c  ec/:

c+c$c4c#cc3cc7c#c
c+cc0cccc3ccccc,cc/c9ccc)cccc#c*cc+c

cc+c,c*c.ccc0ch2!e8cc/cccBOTTEGA
VENETAcGUCCIcCHANEL BVLGARIc

cc%cc3cROLEXc*c)c.fh(cc!c,c
c
i4ch#i#ec*c)cc
cc
ec
f   1c#ccccc

f,e:c'f  ?h+ccc :

b d?!g(g,,d8cc9c?c$c+ce$cceh3*ccccd!3xyf cd=co

b ifg!f(f%f,e(e=) cf3(chjclfcfeccccc!

bcc9cc.eec/e3f c*f$f;cg5cd;e%ccccccd8c
d8d8
h   /ecccc0cd:$fcccccc

bd8cd8cd=c  cc.ee c'cg(ic+fccc*c ce
g$c/eec/e
e:d8eg:iccc

f0ccce$ceeec.f/fc+fh,ccccc2011e945f1f%cc 
2011e946f30f%cc'c
eeg 9 13:47:37d!:
bf3(fihzusli!
1d;%d8
od;#i 12% OFF!

bf3(fihdferi!
3d;%d8
od;#i 16% OFF!

bf3(fi2011-6-1213:47:37i!
6d;%d8
od;#i 21% OFF!

bf3(fi5ru1ji!
10d;%d8
od;#i 26% OFF!

bf3(fi13:47:37i!
20d;%d8
od;#i 30% OFF!

bf3(fi2690i!
30d;%d8
od;#i 35% OFF!

e   2eec.eeeh3*cd8
e$  c'cccc(cd?h(cccc

f0e$eeecfh?cch27cc+f%ccc

b e=g$e:e
c;e.#dURL: www.sashimijp.info

c!cc+i
d?!h'#i$

2011-6-1213:47:37