linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peng Haitao <penght-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: pasky-AlSwsSmVLrQ@public.gmane.org,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: About thread-safety information in library functions' man-pages
Date: Mon, 15 Nov 2010 15:15:18 +0800	[thread overview]
Message-ID: <4CE0DE06.6020009@cn.fujitsu.com> (raw)
In-Reply-To: <AANLkTi=3MpbEeMksjqMtM81HjhCODVRR7Y9KDo=ivnSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Hi Michael,

> Thanks. That looks promising. Could you elaborate on the meanings of
> the headings, and also explain how you came up with the lists?
> 

Because we have classified lots of the functions into following 
classifications: Unsafe, Safe, Safe with Exceptions, MT-Safe, 
MT-Safe with Exceptions.

The classifications are Based on the thread-safety levels defined in  
Solaris operating system, the meanings are as follows:

- Unsafe: The function contains global or static data that is not 
protected. Accesses by multiple threads will produce unpredictable 
(and probably incorrect) results.

- Safe: The function can be called by multiple threads and will return 
correct results. The function is still allowed to have global effects 
that are seen by all threads, however. It is also allowed to serialize 
all accesses, by protecting the entire function with a lock.

- Safe with Exceptions: The function is safe, except under certain 
circumstances.

- MT-Safe: The function is fully prepared for multi-threaded access. 
All global and static data is protected with locks, and some degree 
of concurrency can be achieved within the function.

- MT-Safe with Exceptions: The function is MT-Safe, except under 
certain circumstances.

-- 
Best Regards,
Peng Haitao

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-11-15  7:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31  6:18 About thread-safety information in library functions' man-pages Peng Haitao
     [not found] ` <4C7C9EA6.90609-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2010-09-11  4:06   ` Michael Kerrisk
     [not found]     ` <AANLkTimcJ4kSuB-vZSY2_CYDs12S0ODup9-Y9yj-uQrJ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-09-13  9:19       ` Peng Haitao
     [not found]         ` <4C8DEC85.8030007-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2010-10-15  9:06           ` Peng Haitao
2010-11-14  6:40           ` Michael Kerrisk
     [not found]             ` <AANLkTikVuuZ1N6C5T+GwbgQEH7EAxXPvqrmATZgcM-gE-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-15  6:37               ` Peng Haitao
     [not found]                 ` <4CE0D541.8030807-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2010-11-15  6:39                   ` Michael Kerrisk
     [not found]                     ` <AANLkTi=3MpbEeMksjqMtM81HjhCODVRR7Y9KDo=ivnSQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-15  7:15                       ` Peng Haitao [this message]
     [not found]                         ` <4CE0DE06.6020009-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2010-11-16  5:20                           ` Michael Kerrisk
     [not found]                             ` <AANLkTikfXyDz47VyRYMrGoAm_Qyv96PbGVnfY82KiSh_-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-17  9:06                               ` Peng Haitao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE0DE06.6020009@cn.fujitsu.com \
    --to=penght-bthxqxjhjhxqfuhtdcdx3a@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=pasky-AlSwsSmVLrQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).