/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1989-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Glenn Fowler <[email protected]> *17* *18***********************************************************************/19#pragma prototyped20/*21* Glenn Fowler22* AT&T Research23*24* process status stream private interface25*/2627#ifndef _PSSLIB_H28#define _PSSLIB_H 12930#define _PSS_PRIVATE_ \31Pssdisc_t* disc; /* user discipline */ \32Vmalloc_t* vm; /* vm region */ \33Pssent_t* ent; /* last entry */ \34Pss_id_t pid; /* scan pid */ \35unsigned long boot; /* boot time */ \36Dt_t* ttybyname; /* tty by name hash */ \37Dt_t* ttybydev; /* tty by dev hash */ \38Dtdisc_t ttybynamedisc; /* tty by name disc */ \39Dtdisc_t ttybydevdisc; /* tty by dev disc */ \40void* data; /* private data */ \41int hz; /* current CLK_TCK */ \42int ttyscan; /* -1:bad 0:init 2:scanned */ \43char buf[1024]; /* work and return value buffer */4445#include <ast.h>46#include <ast_dir.h>47#include <dt.h>48#include <ctype.h>49#include <dirent.h>50#include <error.h>51#include <ls.h>52#include <vmalloc.h>5354#if __CYGWIN__5556#include <ast_windows.h>57#include <sys/cygwin.h>5859#endif6061#include <pss.h>6263#include "FEATURE/procfs"6465typedef struct Tty_s /* tty hash */66{67Dtlink_t byname; /* by name dict link */68Dtlink_t bydev; /* by dev dict link */69Pss_dev_t dev; /* dev */70char name[1]; /* base name */71} Tty_t;7273#if !_mem_st_rdev_stat74#define st_rdev st_dev75#endif7677extern Pssmeth_t* _pss_method;78extern Pssmeth_t* _pss_ps;7980#endif818283