Commit | Line | Data |
---|---|---|
9e8e5516 C |
1 | /* rtsappturn.c - RTPM: turn please */ |
2 | ||
3 | #ifndef lint | |
4 | static char *rcsid = "$Header: /f/osi/rtsap/RCS/rtsappturn.c,v 7.1 91/02/22 09:42:41 mrose Interim $"; | |
5 | #endif | |
6 | ||
7 | /* | |
8 | * $Header: /f/osi/rtsap/RCS/rtsappturn.c,v 7.1 91/02/22 09:42:41 mrose Interim $ | |
9 | * | |
10 | * | |
11 | * $Log: rtsappturn.c,v $ | |
12 | * Revision 7.1 91/02/22 09:42:41 mrose | |
13 | * Interim 6.8 | |
14 | * | |
15 | * Revision 6.0 89/03/18 23:43:30 mrose | |
16 | * Release 5.0 | |
17 | * | |
18 | */ | |
19 | ||
20 | /* | |
21 | * NOTICE | |
22 | * | |
23 | * Acquisition, use, and distribution of this module and related | |
24 | * materials are subject to the restrictions of a license agreement. | |
25 | * Consult the Preface in the User's Manual for the full terms of | |
26 | * this agreement. | |
27 | * | |
28 | */ | |
29 | ||
30 | ||
31 | /* LINTLIBRARY */ | |
32 | ||
33 | #include <stdio.h> | |
34 | #include <signal.h> | |
35 | #include "rtpkt.h" | |
36 | ||
37 | /* \f RT-TURN-PLEASE.REQUEST */ | |
38 | ||
39 | int RtPTurnRequest (sd, priority, rti) | |
40 | int sd; | |
41 | int priority; | |
42 | struct RtSAPindication *rti; | |
43 | { | |
44 | SBV smask; | |
45 | int result; | |
46 | register struct assocblk *acb; | |
47 | ||
48 | missingP (rti); | |
49 | ||
50 | smask = sigioblock (); | |
51 | ||
52 | rtsapPsig (acb, sd); | |
53 | ||
54 | result = (*acb -> acb_pturnrequest) (acb, priority, rti); | |
55 | ||
56 | (void) sigiomask (smask); | |
57 | ||
58 | return result; | |
59 | } |