From: stockton AT bcm DOT tmc DOT edu (David Stockton) Message-Id: <199704072228.RAA05085@ginger.imgen.bcm.tmc.edu> Subject: lstat(), S_ISLNK() and S_ISSOCK() To: djgpp AT delorie DOT com (DJGPP Mail List) Date: Mon, 7 Apr 1997 17:28:52 -0500 (CDT) Reply-to: stockton AT bcm DOT tmc DOT edu Organization: Molecular and Human Genetics, Baylor College of Medicine Phone: (713)798-4795 x-fax-number: (713)798-5073 x-phone: (713)798-4795 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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 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. - David