summaryrefslogtreecommitdiffstats
path: root/contrib/libf2c/libU77/lstat_.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libf2c/libU77/lstat_.c')
-rw-r--r--contrib/libf2c/libU77/lstat_.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/contrib/libf2c/libU77/lstat_.c b/contrib/libf2c/libU77/lstat_.c
index 801f6aa..3914cc6 100644
--- a/contrib/libf2c/libU77/lstat_.c
+++ b/contrib/libf2c/libU77/lstat_.c
@@ -30,27 +30,19 @@ Boston, MA 02111-1307, USA. */
/* lstat isn't posix */
-#ifdef KR_headers
-void g_char();
+void g_char (const char *a, ftnlen alen, char *b);
-integer G77_lstat_0 (name, statb, Lname)
- char *name;
- integer statb[13];
- ftnlen Lname;
-#else
-void g_char(const char *a, ftnlen alen, char *b);
-
-integer G77_lstat_0 (const char *name, integer statb[13], const ftnlen Lname)
-#endif
+integer
+G77_lstat_0 (const char *name, integer statb[13], const ftnlen Lname)
{
#if HAVE_LSTAT
char *buff;
- char *bp, *blast;
int err;
struct stat buf;
- buff = malloc (Lname+1);
- if (buff == NULL) return -1;
+ buff = malloc (Lname + 1);
+ if (buff == NULL)
+ return -1;
g_char (name, Lname, buff);
err = lstat (buff, &buf);
free (buff);
@@ -80,7 +72,7 @@ integer G77_lstat_0 (const char *name, integer statb[13], const ftnlen Lname)
statb[12] = -1;
#endif
return err;
-#else /* !HAVE_LSTAT */
+#else /* !HAVE_LSTAT */
return errno = ENOSYS;
-#endif /* !HAVE_LSTAT */
+#endif /* !HAVE_LSTAT */
}
OpenPOWER on IntegriCloud