delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/07/18:42:09

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

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.
						- David

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019