underscore R

Discuss Programming

underscore R

Postby worker201 » Sun Oct 24, 2004 3:35 pm

While watching the screen output when I run a configure script, I have seen some kinda weird things. It will check for 'getenv', then it will check for 'getenv_r'. Also, I have seen 'localtime_r', 'putenv_r', 'strerror_r', and numerous others.

What are these? What is the difference between these and the normal versions? Are these part of glibc? Where can I get them if I don't have them?
worker201
guru
guru
 
Posts: 668
Joined: Sun Jun 13, 2004 6:38 pm
Location: Hawaii

Postby Void Main » Sun Oct 24, 2004 6:02 pm

It looks to be "thread safe" versions of their counterpart functions:

man localtime_r
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests