Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2000 10:32:45 -0400 (EDT)
From:      Marc Evans <marc@destek.net>
To:        Marcel Moolenaar <marcel@cup.hp.com>
Cc:        freebsd-emulation@FreeBSD.ORG
Subject:   Re: WebTrends on FreeBSD 4.1 (Linux Emulation)
Message-ID:  <Pine.BSF.4.21.0008071026590.12525-200000@ns2.destek.net>
In-Reply-To: <3988B438.F4ADB5F7@cup.hp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--0-1431494271-965658765=:12525
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello -

I have embarked on implementing the missing syscall. I believe that I have
code that is 95% complete. I am however not finding obvious information to
place into the siginfo_t structure to return to the caller. Can anyone
provide me with any pointers to code that I might reference, or anything
that could help me with this last aspect?

Also, any other general comments on this code is also appreciated.

Thanks - Marc

On Wed, 2 Aug 2000, Marcel Moolenaar wrote:

> Marc Evans wrote:
> > 
> >         /kernel: linux: syscall rt_sigtimedwait is obsoleted or not implemented
> > 
> > I have done some searches on the prior e-mail on the lists and I am not
> > finding any discussion about 1) Is there a good workaround? 2) What was
> > the basis of decision resulting in some syscalls not being implemented?
> 
> 1) Implementing the syscall is the best "workaround" :-)
> 2) This is not so much a decision. So far nothing depended
>    on the syscall. Implementation of syscalls is primarily
>    based on available time and how often Linux binaries
>    fail because it isnt implemented.
> 
> > I am considering trying to implement the function, but if there is already
> > a good workaround then please let me know. Also, if there is good reason
> > not to bother trying to implement this, I would really appreciate
> > knowing...
> 
> I think that implementing the syscall is the best approach.
> 
> -- 
> Marcel Moolenaar
>   mail: marcel@cup.hp.com / marcel@FreeBSD.org
>   tel:  (408) 447-4222
> 

--0-1431494271-965658765=:12525
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="sig.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSF.4.21.0008071032450.12525@ns2.destek.net>
Content-Description: 
Content-Disposition: attachment; filename="sig.c"

DQpzdGF0aWMgaW50DQpsaW51eF9kb19zaWd0aW1lZHdhaXQoc3RydWN0IHBy
b2MgKnAsIGxpbnV4X3NpZ3NldF90ICptYXNrLA0KCXNpZ2luZm9fdCAqcHRy
LCBzdHJ1Y3QgdGltZXZhbCAqdHYsIHNpemVfdCBzaWdzZXRzaXplKQ0Kew0K
ICAgIHNpZ3NldF90IG9zZXQsIGJzZXQ7DQogICAgaW50IHJldCwgc2lnLCB0
aW1vOw0KDQogICAgLyogVmFsaWRhdGUgdGhlIGFyZ3VtZW50cyBwYXNzZWQg
aW4gKi8NCiAgICBpZiAoc2lnc2V0c2l6ZSAhPSBzaXplb2YobGludXhfc2ln
c2V0X3QpKQ0KCXJldHVybigtRUlOVkFMKTsNCg0KICAgIGlmICh0diAmJiAo
dHYtPnR2X3VzZWMgPj0gMTAwMDAwMDAwMEwgfHwgdHYtPnR2X3VzZWMgPCAw
IHx8DQoJICAgIHR2LT50dl9zZWMgPCAwIHx8IGl0aW1lcmZpeCh0dikpKQ0K
CXJldHVybigtRUlOVkFMKTsNCg0KICAgIC8qIElmIHRoZXJlIGlzIGEgc2ln
bmFsIHF1ZXVlZCwgaW1tZWRpYXRlbHkgY29tbXVuaWNhdGUgdGhhdCBiYWNr
LiAqLw0KICAgIGxpbnV4X3RvX2JzZF9zaWdzZXQobWFzaywmYnNldCk7DQog
ICAgU0lHU0VURVEob3NldCxwLT5wX3NpZ2xpc3QpOw0KICAgIFNJR1NFVEVR
KHAtPnBfc2lnbGlzdCxic2V0KTsNCiAgICB0aW1vID0gdHYtPnR2X3NlYyA+
IDI0ICogNjAgKiA2MCA/IDI0ICogNjAgKiA2MCAqIGh6IDogdHZ0b2h6KHR2
KTsNCiAgICByZXQgPSB0c2xlZXAoJnNlbHdhaXQsIFBTT0NLIHwgUENBVENI
LCAic2lndGltZWR3YWl0IiwgdGltbyk7DQogICAgc2lnID0gQ1VSU0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gIHRzLnR2X3NlYyAr
PSB0cy50dl91c2VjIC8gMTAwMDAwMDsNCgkgICAgdHMudHZfdXNlYyAlPSAx
MDAwMDAwOw0KCSAgICBpZiAodHMudHZfdXNlYyA8IDApIHsNCgkJdHMudHZf
c2VjIC09IDE7DQoJCXRzLnR2X3VzZWMgKz0gMTAwMDAwMDsNCgkgICAgfQ0K
CSAgICBpZiAodHMudHZfc2VjIDwgMCkNCgkJdGltZXZhbGNsZWFyKCZ0cyk7
DQojaWZkZWYgREVCVUcNCgkgICAgcHJpbnRmKCJMaW51eC1lbXVsKCVsZCk6
IGNvbnZlcnRlZCB0aW1lb3V0ICglbGQvJWxkKVxuIiwNCgkJKGxvbmcpcC0+
cF9waWQsIHRzLnR2X3NlYywgdHMudHZfdXNlYyk7DQojZW5kaWYNCgl9DQog
ICAgfQ0KICAgIGVycm9yID0gbGludXhfZG9fc2lndGltZWR3YWl0KHAsJm1h
c2ssYXJncy0+cHRyLA0KCWFyZ3MtPnRpbWVvdXQgPyAmdHMgOiBOVUxMLA0K
CWFyZ3MtPnNpZ3NldHNpemUpOw0KDQojaWZkZWYgREVCVUcNCiAgICBwcmlu
dGYoIkxpbnV4LWVtdWwoJWxkKTogcmV0dXJuaW5nICglZClcbiIsKGxvbmcp
cC0+cF9waWQsZXJyb3IpOw0KI2VuZGlmDQoNCiAgICByZXR1cm4gZXJyb3I7
DQp9DQo=
--0-1431494271-965658765=:12525--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008071026590.12525-200000>