diff options
| author | welinder@troll.com <welinder@troll.com> | 2004-10-02 22:49:30 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:27 -0700 |
| commit | 7a52af572ba9e8280cc28e73b575e56ab03214fd (patch) | |
| tree | 2558dbdfdd45f91635d13d139bc32002f5ef951a /compat/id-files-stat.c | |
| parent | 4250a6355c2a29764f5a8b31a1a22087439068dd (diff) | |
| download | sparse-dev-7a52af572ba9e8280cc28e73b575e56ab03214fd.tar.gz | |
Add compatibility file for solaris.
Diffstat (limited to 'compat/id-files-stat.c')
| -rw-r--r-- | compat/id-files-stat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compat/id-files-stat.c b/compat/id-files-stat.c new file mode 100644 index 00000000..62f0f57e --- /dev/null +++ b/compat/id-files-stat.c @@ -0,0 +1,7 @@ +#include "../token.h" +#include <sys/stat.h> + +int identical_files(struct stream* s, struct stat *st, const char * name) +{ + return s->dev == st->st_dev && s->ino == st->st_ino; +} |
