24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

from the address space. Termination functions are called by unload() before the<br />

modules are actually unloaded.<br />

The following is a synopsis of getdate():<br />

#include int dlclose(void *handle);<br />

If dlclose() succeeds, 0 is returned. Otherwise, errno will be set to EINVAL, and<br />

EINVAL will be returned as well.<br />

4.2.3.4 dlerror()<br />

This function is used to return error information about the most recent call to<br />

dlopen(), dlsym(), or dlclose() call. If dlopen() fails and sets errno to ENOEXEC,<br />

dlerror() will return a pointer to a buffer describing reasons for the failure. In all<br />

other failing cases, errno will have been set, and dlerror() will return the formatted<br />

string corresponding to errno.<br />

Synopsis: #include char *dlerror(void);<br />

Error information is reset after a call to dlerror(). Therefore, if two consecutive<br />

calls are made to dlerror(), the second call will return a pointer to a null string.<br />

Note: The dlerror() function is not thread-safe since the string may reside in a<br />

static area that is overwritten whenever an error occurs.<br />

4.2.4 Year 2000<br />

The following APIs and commands were changed in accordance with the UNIX98<br />

specification:<br />

4.2.4.1 getdate()<br />

The following is a synopsis of getdate():<br />

struct tm *getdate(const char *string);<br />

The entry for getdate() states the following with respect to the format code %y:<br />

"%y year within century (00-99)"<br />

%y is now defined such that, when a century is not otherwise specified, values in<br />

the range 69-99 refer to the twentieth century, and values in the range 00-68 refer<br />

to the twenty-first century. The %C specifier has been added to the interface to<br />

denote the century and interprets the %y specifier in the absence of a century as<br />

noted in the section above.<br />

4.2.4.2 strptime()<br />

The following is a synopsis of strptime():<br />

char *strptime(const char *buf, const char *format, struct tm *tm);<br />

The entry for strptime() states the following with respect to the format code %y:<br />

"%y is the year within century [00,99]; leading zeros are permitted but not<br />

required<br />

70 <strong>AIX</strong> <strong>Version</strong> <strong>4.3</strong> <strong>Differences</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!