"Fossies" - the Fresh Open Source Software Archive

Member "pidentd-3.0.19/src/kernel.h" (14 Jan 2000, 1317 Bytes) of package /linux/misc/old/pidentd-3.0.19.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "kernel.h" see the Fossies "Dox" file reference documentation.

    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 */
   28     struct sockaddr_gen local;
   29     struct sockaddr_gen remote;
   30 
   31     /* Result parameters */
   32     avail_t av;
   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