blob: 7382d1d3143da15ccd9aeb5be1713d7a5aee5bb3 (
plain) (
blame)
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
36
37
38
39
|
static char rcsid[] = "@(#)$Id: rst.c,v 1.1.1.1 1995/02/15 00:46:24 jkh Exp $";
/*******************************************************************************
* II - Version 0.1 $Revision: 1.1.1.1 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
*******************************************************************************
* Bug reports, patches, comments, suggestions should be sent to:
*
* jkr@saarlink.de or jkrause@guug.de
*
*******************************************************************************
* $Log: rst.c,v $
* Revision 1.1.1.1 1995/02/15 00:46:24 jkh
* Import the ISDN userland utilities. Just about ready to start shaking
* this baby out in earnest..
*
*
******************************************************************************/
#include <sys/types.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include "../../../../sys/gnu/i386/isa/niccyreg.h"
main()
{
int s, f;
if ((f = open("/dev/nic0", O_RDWR)) < 0)
{
perror("open");
exit(1);
}
if (ioctl(f, NICCY_RESET, &s) < 0)
{
perror("ioctl");
}
}
|