undocumented in HP-UX 9.0)
SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.130
-static char sccsid[] = "@(#)conf.c 8.129 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 8.130 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
#include <sys/dg_sys_info.h>
#include <sys/dg_sys_info.h>
{
struct dg_sys_info_load_info load_info;
{
struct dg_sys_info_load_info load_info;
+# ifdef __hpux
+
+# include <sys/param.h>
+# include <sys/pstat.h>
+
+int
+getla()
+{
+ struct pst_dynamic pstd;
+ if (pstat_getdynamic(&pstd, sizeof(struct pst_dynamic),
+ (size_t) 1 ,0) == -1)
+ return 0;
+
+ if (tTd(3, 1))
+ printf("getla: %d\n", (int) (pstd.psd_avg_1_min + 0.5));
+
+ return (int) (pstd.psd_avg_1_min + 0.5);
+}
+
+# else
+
+int
getla()
{
double avenrun[3];
getla()
{
double avenrun[3];
return ((int) (avenrun[0] + 0.5));
}
return ((int) (avenrun[0] + 0.5));
}
#endif /* DGUX */
#else
#if LA_TYPE == LA_MACH
#endif /* DGUX */
#else
#if LA_TYPE == LA_MACH