nptl.BullOpenSource.Org Forum Index nptl.BullOpenSource.Org
NPTL Tests & Trace project. Homepage.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pthread_atfork

 
Post new topic   Reply to topic    nptl.BullOpenSource.Org Forum Index -> Tests - Others functions
View previous topic :: View next topic  
Author Message
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Wed Jan 19, 2005 11:02 am    Post subject: pthread_atfork Reply with quote

POSIX

POSIX is a registered trademark from the IEEE. The following assertions are derived from copyrighted material. Original text and copyright information can be found at http://www.opengroup.org.

Here is what POSIX requires for this function:

  1. pthread_atfork registers the 'prepare' handler to be called before fork() processing in the context of the fork() calling thread.
  2. pthread_atfork registers the 'parent' handler to be called after fork() processing in the context of the fork() calling thread in the parent process.
  3. pthread_atfork registers the 'child' handler to be called after fork() processing in the context of the fork() calling thread in the child process.
  4. NULL can be passed as any of these handlers when no treatment is required.
  5. When pthread_atfork is called several times, the prepare handlers are executed in reversed order as they were registered, and child and parent handlers are executed in the same order as they were registered.
  6. If there is not enough memory to store handler adresses, the function returns ENOMEM.
  7. The function does not return EINTR.

_________________
Sebastien Decugis.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Wed Jan 19, 2005 11:18 am    Post subject: Conformance Status Reply with quote

Conformance Status


  • Assertion 1 is partially tested in OPTS. A new testcase will be written to test when pthread_atfork is called from a different thread than the fork() caller.
  • Assertion 2 is partially tested in OPTS. A new testcase will be written to test when pthread_atfork is called from a different thread than the fork() caller.
  • Assertion 3 is not currently tested. A new testcase will be written.
  • Assertion 4 is partially tested in OPTS. A new testcase will be written to test different combinations of NULL/not-null parameters.
  • Assertion 5 is not currently tested. A new testcase will be written.
  • Assertion 6 is not currently tested. A new testcase will be written.
  • Assertion 7 is not currently tested. A new testcase will be written.

_________________
Sebastien Decugis.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Wed Jan 19, 2005 11:20 am    Post subject: Scalability & Stress Status Reply with quote

Scalability & Stress Status

By its nature, this function does not need this kind of testing (it is not meant to be called intensively).

_________________
Sebastien Decugis.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tHeDoc
Project Maintener


Joined: 21 Apr 2004
Posts: 237
Location: Echirolles, France

PostPosted: Thu Feb 03, 2005 5:26 pm    Post subject: Conformance Tests Reply with quote

Conformance Tests

New tests have been added to the Open POSIX Test Suite:

_________________
Sebastien Decugis.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nptl.BullOpenSource.Org Forum Index -> Tests - Others functions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group