File: Libwrap.xs

package info (click to toggle)
libauthen-libwrap-perl 0.23-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 156 kB
  • sloc: perl: 174; makefile: 3
file content (32 lines) | stat: -r--r--r-- 615 bytes parent folder | download | duplicates (2)
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
/*
 * $Id: Libwrap.xs,v 1.4 2003/12/18 02:53:34 james Exp $
 */

#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include <tcpd.h>
#include <syslog.h>

int allow_severity = LOG_INFO;
int deny_severity = LOG_NOTICE;

MODULE = Authen::Libwrap			PACKAGE = Authen::Libwrap

int
_hosts_ctl(daemon, client_name, client_addr, client_user)
	char *daemon
	char *client_name
	char *client_addr
	char *client_user
    CODE:
        RETVAL = hosts_ctl(daemon, client_name, client_addr, client_user);
    OUTPUT:
        RETVAL
    POSTCALL:
        if( 0 == RETVAL ) {
            XSRETURN_UNDEF;
        }

/* EOF */