File: direct.h

package info (click to toggle)
gps 1.1.0.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,212 kB
  • ctags: 987
  • sloc: cpp: 11,600; sh: 381; makefile: 319; ansic: 227; perl: 17
file content (35 lines) | stat: -rw-r--r-- 683 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* $Id: direct.h,v 1.1 2000/07/31 03:50:01 bergo Exp $ */

#ifndef GPS_DIRECT_H
#define GPS_DIRECT_H

#include "polling.h"

typedef enum {
 DM_EXACT_TEXT = 0,
 DM_GREP_TEXT  = 1,
 DM_PID        = 2,
 DM_USER       = 3,
 DM_GROUP      = 4
} DirectMode;

typedef enum {
  DM_NONE      = 0,
  DM_INPUT     = 1,
  DM_OUTPUT    = 2,
  DM_BOTH      = 3
} PipeMode;

// return values
#define DM_RET_ALLKILLED 0
#define DM_RET_PARTIAL   1
#define DM_RET_FAILURE   2
#define DM_RET_NOTFOUND  3

int direct_mode_kill(char *cmd,char *data,char *ksig);

int dm_match(ProcessListItem *pli,char *what);
void verb_report(ProcessListItem *pli, int kres);
int pid_in_list(char *plist,int v);

#endif