23.10.2014 Views

PubTeX output 1998.09.24:1021

PubTeX output 1998.09.24:1021

PubTeX output 1998.09.24:1021

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

attributes(5)<br />

Headers, Tables, and Macros<br />

The following table contains reentrant counterparts for Unsafe functions.<br />

This table is subject to change by Sun.<br />

Reentrant functions for libc:<br />

Unsafe Function<br />

ctime<br />

localtime<br />

asctime<br />

gmtime<br />

ctermid<br />

getlogin<br />

rand<br />

readdir<br />

strtok<br />

tmpnam<br />

Reentrant counterpart<br />

ctime_r<br />

localtime_r<br />

asctime_r<br />

gmtime_r<br />

ctermid_r<br />

getlogin_r<br />

rand_r<br />

readdir_r<br />

strtok_r<br />

tmpnam_r<br />

MT-Safe<br />

An MT-Safe library is fully prepared for multithreaded access. It protects its<br />

global and static data with locks, and can provide a reasonable amount of<br />

concurrency. Note that a library can be safe to use, but not MT-Safe. For<br />

example, surrounding an entire library with a monitor makes the library<br />

Safe, but it supports no concurrency so it is not considered MT-Safe. An<br />

MT-Safe library must permit a reasonable amount of concurrency. (This<br />

definition’s purpose is to give precision to what is meant when a library is<br />

described as Safe. The definition of a Safe library does not specify if the<br />

library supports concurrency. The MT-Safe definition makes it clear that the<br />

library is Safe, and supports some concurrency. This clarifies the Safe<br />

definition, which can mean anything from being single threaded to being<br />

any degree of multithreaded.)<br />

Async-Signal-Safe<br />

17 SunOS 5.7 Last modified 3 June 1997

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!