/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1989-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
* process status stream PSS_METHOD_cygwin implementation
*/
#include "psslib.h"
#if PSS_METHOD != PSS_METHOD_cygwin
#else
#ifndef PR_HZ
#define PR_HZ 100
#endif
#ifndef PRNODEV
#endif
#ifndef PID_ZOMBIE
#define PID_ZOMBIE 0
#endif
#define PR_CTIME(p) (((p)->rusage_children.ru_utime.tv_sec+(p)->rusage_children.ru_stime.tv_sec)*PR_HZ+((((p)->rusage_children.ru_utime.tv_usec+(p)->rusage_children.ru_stime.tv_usec)*PR_HZ)/1000000))
#define PR_START(p) ((p)->start_time)
#define PR_TIME(p) (((p)->rusage_self.ru_utime.tv_sec+(p)->rusage_self.ru_stime.tv_sec)*PR_HZ+((((p)->rusage_self.ru_utime.tv_usec+(p)->rusage_self.ru_stime.tv_usec)*PR_HZ)/1000000))
#define PSS_addr 0
#define PSS_sched 0
#define PSS_cpu 0
#define PSS_nice 0
#define PSS_pri 0
#define PSS_proc 0
#define PSS_refcount 0
#define PSS_tgrp 0
#define PSS_wchan 0
static int
{
return 1;
}
static int
{
return 1;
}
static int
{
if (pid)
else
{
{
return 0;
}
}
return 1;
}
static int
{
register struct external_pinfo* pr;
return 0;
else
return 1;
}
static int
{
char* s;
int i;
{
{
*(s + i - 4) = 0;
}
if (fields & PSS_command)
{
s++;
else
*(s + i - 4) = 0;
}
}
return 1;
}
static char*
{
return "?";
return "con";
}
static Pss_dev_t
{
}
static Pssmeth_t cygwin_method =
{
"cygwin",
"[-version?@(#)$Id: pss cygwin (AT&T Research) 2003-02-01 $\n]"
"[-author?Glenn Fowler <gsf@research.att.com>]",
0,
};
#endif