1829887 Members
2402 Online
109993 Solutions
New Discussion

Is fopen() thread safe

 
Rajesh Rajguru
Occasional Contributor

Is fopen() thread safe

Hi,

We are using fopen call for HP-UX 11.0
Is this call thread safe ? We are creating the
thread by using pthread lib ?

Thanks in advance for attention

Regards,
Rajesh
1 REPLY 1
Dave Olker
Neighborhood Moderator

Re: Is fopen() thread safe

Hi Rajesh,

Looking at the man page for fopen() on 11.0:


APPLICATION USAGE
fopen(), fdopen() and freopen() are thread-safe. These interfaces are not async-cancel-safe. A cancellation point may occur when a thread is executing these interfaces.


Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo