Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lstat error ?

Status
Not open for further replies.

Frbutler

Technical User
Nov 2, 2005
243
US
I am getting these errors on one of my solaris clients
Has anyone seen this before or have any idea what it affects?
The job completes with a status (1) partial.

Cannot lstat 7589. Errno = 5: I/O error

Thanks in advance :)
 

NAME
lstat - get symbolic link status
SYNOPSIS
#include <sys/stat.h>

int lstat(const char *restrict path, struct stat *restrict buf);


DESCRIPTION
The lstat() function shall be equivalent to stat(), except when path refers to a symbolic link. In that case lstat() shall return information about the link, while stat() shall return information about the file the link references.

For symbolic links, the st_mode member shall contain meaningful information when used with the file type macros, and the st_size member shall contain the length of the pathname contained in the symbolic link. File mode bits and the contents of the remaining members of the stat structure are unspecified. The value returned in the st_size member is the length of the contents of the symbolic link, and does not count any trailing null.

RETURN VALUE
Upon successful completion, lstat() shall return 0. Otherwise, it shall return -1 and set errno to indicate the error.

ERRORS
The lstat() function shall fail if:

[EACCES]
A component of the path prefix denies search permission.
[EIO]
An error occurred while reading from the file system.
[ELOOP]
A loop exists in symbolic links encountered during resolution of the path argument.
[ENAMETOOLONG]
The length of a pathname exceeds {PATH_MAX} or a pathname component is longer than {NAME_MAX}.
[ENOTDIR]
A component of the path prefix is not a directory.
[ENOENT]
A component of path does not name an existing file or path is an empty string.
[EOVERFLOW]
The file size in bytes or the number of blocks allocated to the file or the file serial number cannot be represented correctly in the structure pointed to by buf.
The lstat() function may fail if:

[ELOOP]
More than {SYMLOOP_MAX} symbolic links were encountered during resolution of the path argument.
[ENAMETOOLONG]
As a result of encountering a symbolic link in resolution of the path argument, the length of the substituted pathname string exceeded {PATH_MAX}.
[EOVERFLOW]
One of the members is too large to store into the structure pointed to by the buf argument.

Bob Stump
VERITAS
"Ain't it the truth? Ain't it the truth?" Bert Lahr, Wizard of Oz 1939
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top