(Deprecated) Returns the case-sensitive name of a file.
#include <sys/stat.h> int realname ( const char *pathname, char *name);
(IN) Points to the location and name of the file.
(OUT) Points to the case-sensitive name of the file.
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
NetWare is case insensitive, but some applications (such as Java) are case sensitive and need the case sensitive name of a file. Whereas other functions return a case insensitive filename, realname returns a case sensitive filename.
WARNING:If the name buffer is smaller than the returned name, a buffer overwrite occurs. Use getstat with the ST_NAME_BIT to avoid this problem.