Skip to content
Snippets Groups Projects
Commit d20354ae authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

procfs test made more solaris specific

Rev: src/configure.in:1.204
parent 06d45ec1
No related branches found
No related tags found
No related merge requests found
AC_REVISION("$Id: configure.in,v 1.203 1998/06/10 13:29:30 grubba Exp $") AC_REVISION("$Id: configure.in,v 1.204 1998/06/10 19:22:11 hubbe Exp $")
AC_INIT(interpret.c) AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h) AC_CONFIG_HEADER(machine.h)
...@@ -2014,6 +2014,10 @@ else ...@@ -2014,6 +2014,10 @@ else
fi fi
######################################################################## ########################################################################
#
# IRIX also has procfs support, but it it different, a separate test
# should be made. /Hubbe
#
if test "$ac_cv_header_sys_procfs_h" = "yes"; then if test "$ac_cv_header_sys_procfs_h" = "yes"; then
AC_MSG_CHECKING(getrusage() through procfs) AC_MSG_CHECKING(getrusage() through procfs)
...@@ -2027,6 +2031,7 @@ if test "$ac_cv_header_sys_procfs_h" = "yes"; then ...@@ -2027,6 +2031,7 @@ if test "$ac_cv_header_sys_procfs_h" = "yes"; then
#include <sys/procfs.h> #include <sys/procfs.h>
#include <sys/fcntl.h> #include <sys/fcntl.h>
int proc_fd; int proc_fd;
long tmp;
char proc_name[20]; char proc_name[20];
prusage_t pru; prusage_t pru;
prstatus_t prs; prstatus_t prs;
...@@ -2035,6 +2040,7 @@ prstatus_t prs; ...@@ -2035,6 +2040,7 @@ prstatus_t prs;
proc_fd = open(proc_name, O_RDONLY); proc_fd = open(proc_name, O_RDONLY);
ioctl(proc_fd, PIOCUSAGE, &pru); ioctl(proc_fd, PIOCUSAGE, &pru);
ioctl(proc_fd, PIOCSTATUS, &prs); ioctl(proc_fd, PIOCSTATUS, &prs);
tmp=pru.pr_utime.tv_sec;
], ],
pike_cv_getrusage_procfs=yes pike_cv_getrusage_procfs=yes
, ,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment