/***********************************************************************
* *
* 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_info implementation
*/
#include "psslib.h"
#if PSS_METHOD != PSS_METHOD_info
#else
#include <info.h>
typedef struct State_s
{
int mem;
} State_t;
static int
{
char* mem;
int fd;
unsigned long n;
unsigned long a;
{
return -1;
}
n = info(_I_NPROCTAB);
a = info(_I_PROCTAB);
{
goto bad;
}
{
goto bad;
}
{
goto bad;
}
return 1;
bad:
return -1;
}
static int
{
int count;
if (pid)
{
break;
}
else
return 0;
return 1;
}
static int
{
{
}
return 1;
}
static int
{
char* s;
int i;
{
{
}
{
}
if (fields & PSS_command)
}
return 1;
}
static int
{
return 0;
}
static Pssmeth_t info_method =
{
"info",
"[-version?@(#)$Id: pss info (AT&T Research) 2005-02-11 $\n]"
"[-author?Glenn Fowler <gsf@research.att.com>]",
PSS_args|PSS_command|PSS_flags|PSS_gid|PSS_nice|PSS_pgrp|PSS_pid|PSS_ppid|PSS_pri|PSS_sid|PSS_size|PSS_state|PSS_time|PSS_tty|PSS_uid,
0,
0,
0,
};
#endif