|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Lstat question, please enlighten dx If (lstat (dirp1->;d_name, &statbuf1) ====== -1) (
Printf ( "lstat failed in [%s]\n" dirp1->;d_name);
Printf ( "Error is [%s]\n", strerror (errno));
Continue;
}
Lstat always return errors :
Lstat failed in [030902]
Error is [No such file or directory]
But had dirp1->;d_name print out this document and catalog and catalog ah, why keep directory] reported [No such file or wrong? |
Lstat question, please enlighten dx Os versions? Some lstat os does not support the call lstat the wrong signal will be generated SIGSYS core even swap.
Try something into statlstat |
Lstat question, please enlighten dx Two reasons :
1. String said the documents were not handled as well. Fu handle separate attention.
2. You may read the file name. Particularly in the Windows System will be automatically hidden known types of expansion, and we should pay attention. |
| |