pidentd  3.0.19
About: implementation of the RFC1413 identification server (more or less complete rewrite compared to version 2)
  Fossies Dox: pidentd-3.0.19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

kernel.h
Go to the documentation of this file.
1 /*
2 ** kernel.h - The kernel access threads
3 **
4 ** Copyright (c) 1997 Peter Eriksson <pen@lysator.liu.se>
5 **
6 ** This program is free software; you can redistribute it and/or
7 ** modify it as you wish - as long as you don't claim that you wrote
8 ** it.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 */
14 
15 #ifndef PIDENTD_KERNEL_H
16 #define PIDENTD_KERNEL_H
17 
18 #include <sys/types.h>
19 #ifndef SYS_SOCKET_H_INCLUDED
20 #define SYS_SOCKET_H_INCLUDED
21 #include <sys/socket.h>
22 #endif
23 #include <netinet/in.h>
24 
25 struct kernel
26 {
27  /* Request parameters */
30 
31  /* Result parameters */
33 
34  int status;
35  uid_t euid;
36  uid_t ruid;
37 
38  pid_t pid;
39  char *cmd;
40  char *argv;
41 };
42 
43 extern int kernel_threads;
44 extern int kernel_buffers;
45 extern int kernel_attempts;
46 
47 extern struct kernel *kernel_alloc(void);
48 extern void kernel_free(struct kernel *kp);
49 
50 extern int kernel_init(void);
51 extern void kernel_query(struct kernel *kp);
52 
53 
54 /*
55 ** Operating system specific kernel access functions
56 */
57 extern int ka_init(void);
58 extern int ka_open(void **misc);
59 extern int ka_lookup(void *misc, struct kernel *kp);
60 
61 #endif
avail_t
Definition: avail.h:18
kernel::remote
struct sockaddr_gen remote
Definition: kernel.h:29
kernel::local
struct sockaddr_gen local
Definition: kernel.h:28
ka_open
int ka_open(void **misc)
Definition: k_aix42.c:87
kernel::euid
uid_t euid
Definition: kernel.h:35
kernel_alloc
struct kernel * kernel_alloc(void)
Definition: kernel.c:49
kernel::ruid
uid_t ruid
Definition: kernel.h:36
sockaddr_gen
#define sockaddr_gen
Definition: sockaddr.h:53
kernel::pid
pid_t pid
Definition: kernel.h:38
kernel::cmd
char * cmd
Definition: kernel.h:39
kernel::argv
char * argv
Definition: kernel.h:40
kernel_threads
int kernel_threads
Definition: kernel.c:34
ka_init
int ka_init(void)
Definition: k_aix42.c:80
kernel::status
int status
Definition: kernel.h:34
kernel_init
int kernel_init(void)
Definition: kernel.c:131
ka_lookup
int ka_lookup(void *misc, struct kernel *kp)
Definition: k_aix42.c:125
kernel::av
avail_t av
Definition: kernel.h:32
kernel_buffers
int kernel_buffers
Definition: kernel.c:35
kernel_free
void kernel_free(struct kernel *kp)
Definition: kernel.c:70
kernel
Definition: kernel.h:25
kernel_query
void kernel_query(struct kernel *kp)
Definition: kernel.c:189
kernel_attempts
int kernel_attempts
Definition: kernel.c:36