2 * $Id: talk.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #ifndef PITH_TALK_INCLUDED
17 #define PITH_TALK_INCLUDED
21 * Macros to aid hack to turn off talk permission.
22 * Bit 020 is usually used to turn off talk permission, we turn off
23 * 002 also for good measure, since some mesg commands seem to do that.
25 #define TALK_BIT 020 /* mode bits */
27 #define TMD_CLEAR 0 /* functions */
30 #define allow_talk(p) tty_chmod((p), TALK_BIT, TMD_SET)
31 #define disallow_talk(p) tty_chmod((p), TALK_BIT|GM_BIT, TMD_CLEAR)
34 /* exported protoypes */
37 #endif /* PITH_TALK_INCLUDED */