1 | .\" $Id: locker_check_host.3,v 1.2 1999-03-27 17:33:59 danw Exp $ |
---|
2 | .\" |
---|
3 | .\" Copyright 1997 by the Massachusetts Institute of Technology. |
---|
4 | .\" |
---|
5 | .\" Permission to use, copy, modify, and distribute this |
---|
6 | .\" software and its documentation for any purpose and without |
---|
7 | .\" fee is hereby granted, provided that the above copyright |
---|
8 | .\" notice appear in all copies and that both that copyright |
---|
9 | .\" notice and this permission notice appear in supporting |
---|
10 | .\" documentation, and that the name of M.I.T. not be used in |
---|
11 | .\" advertising or publicity pertaining to distribution of the |
---|
12 | .\" software without specific, written prior permission. |
---|
13 | .\" M.I.T. makes no representations about the suitability of |
---|
14 | .\" this software for any purpose. It is provided "as is" |
---|
15 | .\" without express or implied warranty. |
---|
16 | .\" |
---|
17 | .TH LOCKER_CHECK_HOST 3 |
---|
18 | .SH NAME |
---|
19 | locker_check_host \- See if a locker is located on a given host |
---|
20 | .SH SYNOPSIS |
---|
21 | .nf |
---|
22 | .B #include <locker.h> |
---|
23 | .PP |
---|
24 | .B |
---|
25 | int locker_check_host(locker_context \fIcontext\fP, |
---|
26 | .B |
---|
27 | locker_attachent *\fIat\fP, void *addrp); |
---|
28 | .PP |
---|
29 | .B cc file.c -llocker ... |
---|
30 | .fi |
---|
31 | .SH DESCRIPTION |
---|
32 | This function takes a locker_attachent and a pointer to a struct |
---|
33 | in_addr and returns 1 if the locker is located on the given host. |
---|
34 | .PP |
---|
35 | Note that replicated AFS lockers will be listed as located on the host |
---|
36 | 0.0.0.0. |
---|
37 | .PP |
---|
38 | This function is intended to be used as a |
---|
39 | .I test |
---|
40 | function for |
---|
41 | .BR locker_iterate_attachtab (3) |
---|
42 | .SH SEE ALSO |
---|
43 | locker_iterate_attachtab(3) |
---|
44 | .SH AUTHOR |
---|
45 | Dan Winship, MIT Information Systems |
---|
46 | .br |
---|
47 | Copyright 1998 by the Massachusetts Institute of Technology. |
---|