Mail Archives: djgpp/1997/04/07/20:36:21
DJGPP implements these according to the POSIX.1 spec, which is to say,
not at all. POSIX states that these should not be defined if the
operating system does not implement the underlying mechanism, so that
programs can use #ifdef to determine if the OS really supports the
operation.
> In porting some software recently I noticed that several defines
> and a library function were missing from the djgpp version 2 release.
> These have to do with things that are currently not available through
> DOS or DJGPP so could be implemented appropriately.
>
> lstat() - Since there are no symbolic links. Would just return
> the same thing as stat() (in fact could be a define in
> <sys/stat.h> of "#define lstat(f,sp) stat(f,sp)")
>
> S_ISLNK(mode) - Should return true if 'mode' is of a symbolic link.
> Since these do not exist, should always return 0.
> This should be in <sys/stat.h> and could be only
> as "#define S_ISLNK(m) 0".
>
> S_ISSOCK(mode) - Should return true if 'mode' is of a socket.
> Same as above.
- Raw text -