1 /*
2  * Copyright 1993 Network Computing Devices, Inc.
3  *
4  * Permission to use, copy, modify, distribute, and sell this software and its
5  * documentation for any purpose is hereby granted without fee, provided that
6  * the above copyright notice appear in all copies and that both that
7  * copyright notice and this permission notice appear in supporting
8  * documentation, and that the name Network Computing Devices, Inc. not be
9  * used in advertising or publicity pertaining to distribution of this
10  * software without specific, written prior permission.
11  *
12  * THIS SOFTWARE IS PROVIDED 'AS-IS'.  NETWORK COMPUTING DEVICES, INC.,
13  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT
14  * LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
15  * PARTICULAR PURPOSE, OR NONINFRINGEMENT.  IN NO EVENT SHALL NETWORK
16  * COMPUTING DEVICES, INC., BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING
17  * SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF USE, DATA,
18  * OR PROFITS, EVEN IF ADVISED OF THE POSSIBILITY THEREOF, AND REGARDLESS OF
19  * WHETHER IN AN ACTION IN CONTRACT, TORT OR NEGLIGENCE, ARISING OUT OF OR IN
20  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21  *
22  * $NCDId: @(#)KillClient.c,v 1.7 1993/01/26 05:13:44 greg Exp $
23  */
24 
25 /* Portions derived from */
26 /* $XConsortium: XKillCl.c,v 11.9 91/01/06 11:46:44 rws Exp $ */
27 /* Copyright    Massachusetts Institute of Technology    1986	 */
28 
29 /*
30  * Permission to use, copy, modify, distribute, and sell this software and
31  * its documentation for any purpose is hereby granted without fee, provided
32  * that the above copyright notice appear in all copies and that both that
33  * copyright notice and this permission notice appear in supporting
34  * documentation, and that the name of M.I.T. not be used in advertising or
35  * publicity pertaining to distribution of the software without specific,
36  * written prior permission.  M.I.T. makes no representations about the
37  * suitability of this software for any purpose.  It is provided "as is"
38  * without express or implied warranty.
39  */
40 
41 #include "Alibint.h"
42 
43 void
AuKillClient(AuServer * aud,AuID resource,AuStatus * ret_status)44 AuKillClient(AuServer *aud, AuID resource, AuStatus *ret_status)
45 {
46     auResourceReq *req;
47 
48     if (ret_status)
49 	*ret_status = AuSuccess;
50 
51     _AuLockServer();
52     _AuGetResReq(KillClient, resource, req, aud);
53     (void) _AuIfRoundTrip(aud, ret_status);
54     _AuUnlockServer();
55     _AuSyncHandle(aud);
56 }
57