T
tad.bochan
Hello, I need a little help please.
If anyone on the list is running ruby on hpux 11+ with a ruby
version later than "ruby 1.8.0 (2003-08-04) [hppa2.0w-hpux11.11]",
could you please try the following code to see if the problem/bug
has been fixed in the later version ?.
TIA.
Tad.
sysfunc="SYS_mmap"
lib="/usr/include/sys/scall_define.h"
scall=open(lib).readlines.grep(/\s#{sysfunc}\s/)[0].split[2].to_i
puts "#{sysfunc} = #{scall}"
SYS_mmap = 71
PROT_NONE = 0
PROT_USER = 0
PROT_READ = 1
PROT_WRITE = 2
MAP_SHARED = 1
addr,len,prot,flags,ofs=0,80,PROT_READ, MAP_SHARED,0
filedes=open("shmfile","a+")
mmfptr=syscall(SYS_mmap, addr, len, prot, flags, filedes.fileno, ofs)
On my system, this fails with the following error report,
pntrs.rb:13: [BUG] rb_sys_fail() - errno == 0
ruby 1.8.0 (2003-08-04) [hppa2.0w-hpux11.11]
Abort(coredump)
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
If anyone on the list is running ruby on hpux 11+ with a ruby
version later than "ruby 1.8.0 (2003-08-04) [hppa2.0w-hpux11.11]",
could you please try the following code to see if the problem/bug
has been fixed in the later version ?.
TIA.
Tad.
sysfunc="SYS_mmap"
lib="/usr/include/sys/scall_define.h"
scall=open(lib).readlines.grep(/\s#{sysfunc}\s/)[0].split[2].to_i
puts "#{sysfunc} = #{scall}"
SYS_mmap = 71
PROT_NONE = 0
PROT_USER = 0
PROT_READ = 1
PROT_WRITE = 2
MAP_SHARED = 1
addr,len,prot,flags,ofs=0,80,PROT_READ, MAP_SHARED,0
filedes=open("shmfile","a+")
mmfptr=syscall(SYS_mmap, addr, len, prot, flags, filedes.fileno, ofs)
On my system, this fails with the following error report,
SYS_mmap = 71ruby pntrs.rb
pntrs.rb:13: [BUG] rb_sys_fail() - errno == 0
ruby 1.8.0 (2003-08-04) [hppa2.0w-hpux11.11]
Abort(coredump)
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.