aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/compat.h
AgeCommit message (Collapse)AuthorFilesLines
2018-12-19remove unneeded declarations in "compat.h"Luc Van Oostenryck1-2/+0
struct stream & struct stat are defined in this file but were only used for identical_files() which has been removed years ago. So, remove these declarations. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2007-03-09Fix typos in commentsJosh Triplett1-2/+2
Signed-off-by: Josh Triplett <josh@freedesktop.org>
2005-04-07Remove stat-based file identity tests.Linus Torvalds1-3/+0
Replace it with a simple pathname comparison instead. The pathname check is not only portable (no need for any compatibility helper functions), but we can do it much earlier, and thus make the check much cheaper by avoiding three extra system calls when it triggers (open/fstat/close). And the pathname test seems to match all the cases anyway.
2005-04-07Add system-specific compatibility functions to makeLinus Torvalds1-0/+31
up for various system deficiencies. This makes sparse easier to port to silly things like MinGW or Solaris. In particular: - strtold() is a C99 thing, not everybody has it - MinGW has problems with mmap(MAP_ANONYMOUS) and doesn't zero it. - st_ino/st_dev is POSIX identity testing, not supported by MinGW