projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maint: update copyright
[gnulib.git]
/
lib
/
isdir.c
diff --git
a/lib/isdir.c
b/lib/isdir.c
index
0f9aec2
..
02b79ae
100644
(file)
--- a/
lib/isdir.c
+++ b/
lib/isdir.c
@@
-1,6
+1,6
@@
/* isdir.c -- determine whether a directory exists
/* isdir.c -- determine whether a directory exists
- Copyright (C) 1990, 1998, 2006 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1998, 2006
, 2009-2014
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,20
+17,13
@@
#include <config.h>
#include <config.h>
+#include "isdir.h"
+
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
-#if STAT_MACROS_BROKEN
-# undef S_ISDIR
-#endif
-
-#if !defined S_ISDIR && defined S_IFDIR
-# define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR)
-#endif
-
/* If PATH is an existing directory or symbolic link to a directory,
return nonzero, else 0. */
/* If PATH is an existing directory or symbolic link to a directory,
return nonzero, else 0. */
-
int
isdir (const char *path)
{
int
isdir (const char *path)
{