Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
c7fb2688
Commit
c7fb2688
authored
Jul 09, 1998
by
Dave Love
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace TIMES conditional stuff removed in
error by last change. From-SVN: r21027
parent
da490d14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
libf2c/libU77/sys_clock_.c
+12
-2
No files found.
libf2c/libU77/sys_clock_.c
View file @
c7fb2688
/* Copyright (C) 1996 Free Software Foundation, Inc.
/* Copyright (C) 1996
, 1998
Free Software Foundation, Inc.
This file is part of GNU Fortran libU77 library.
This library is free software; you can redistribute it and/or modify it
...
...
@@ -29,11 +29,14 @@ Boston, MA 02111-1307, USA. */
# include <time.h>
# endif
#endif
#include <sys/times.h>
#if HAVE_SYS_TIMES_H
# include <sys/times.h>
#endif
#include <limits.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <errno.h>
/* for ENOSYS */
#include "f2c.h"
#ifdef KR_headers
...
...
@@ -43,6 +46,7 @@ int G77_system_clock_0 (count, count_rate, count_max)
int
G77_system_clock_0
(
integer
*
count
,
integer
*
count_rate
,
integer
*
count_max
)
#endif
{
#if defined (HAVE_TIMES)
struct
tms
buffer
;
unsigned
long
cnt
;
if
(
count_rate
)
{
...
...
@@ -52,6 +56,8 @@ int G77_system_clock_0 (integer *count, integer *count_rate, integer *count_max)
*
count_rate
=
CLOCKS_PER_SECOND
;
#elif defined CLK_TCK
*
count_rate
=
CLK_TCK
;
#elif defined HZ
*
count_rate
=
HZ
;
#else
#error Dont know clock tick length
#endif
...
...
@@ -64,4 +70,8 @@ int G77_system_clock_0 (integer *count, integer *count_rate, integer *count_max)
else
*
count
=
cnt
;
return
0
;
#else
/* ! HAVE_TIMES */
errno
=
ENOSYS
;
return
-
1
;
#endif
/* ! HAVE_TIMES */
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment