1 /*
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % File:         ECHO.C
5 % Description:  Handle raw/cooked terminal I/O, get homedir info
6 % Author:       Russ Fish
7 % Created:      2 March 1982
8 % Modified:
9 % Mode:         Text
10 % Package:
11 % Status:       Open Source: BSD License
12 %
13 %
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15 %
16 % (c) Copyright 1983, Hewlett-Packard Company, see the file
17 %            HP_disclaimer at the root of the PSL file tree
18 %
19 
20 %
21 
22 % (c) Copyright 1982, University of Utah
23 
24 %
25 
26 % Redistribution and use in source and binary forms, with or without
27 
28 % modification, are permitted provided that the following conditions are met:
29 %
30 
31 %
32     * Redistributions of source code must retain the relevant copyright
33 
34 %      notice, this list of conditions and the following disclaimer.
35 
36 %
37 %    * Redistributions in binary form must reproduce the above copyright
38 
39 %      notice, this list of conditions and the following disclaimer in the
40 
41 %      documentation and/or other materials provided with the distribution.
42 
43 %
44 
45 % THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
46 
47 % AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
48 
49 % THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
50 
51 % PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNERS OR
52 
53 % CONTRIBUTORS
54 % BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
55 
56 % CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
57 
58 % SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
59 
60 % INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
61 
62 % CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
63 
64 % ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
65 
66 % POSSIBILITY OF SUCH DAMAGE.
67 
68 %
69 
70 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
71 %
72 %
73 %
74 % Revisions:
75 %
76 % 21-Sep-86 (Leigh Stoller)
77 %  Copied from Sun kernel 3.2 directory. Changed a few function names to match
78 %  3.4 conventions, and deleted a few obsolete functions.
79 %
80 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81 */
82 
83 #include <stdio.h>
84 
85 
86 /* TAG( EchoOff )
87  * Enter charcter-at-a-time mode.
88  */
echooff()89 echooff()               /* (Note names lowercased by PSL compiler... */
90 {
91 }
92 
93 /* TAG( EchoOn )
94  * Re-enter line I/O mode.
95  */
echoon()96 echoon()
97 {
98 }
99 
100 
101 /* TAG( External_CharsInInputBuffer )
102  *  Return number of characters in input buffer.
103  */
external_charsininputbuffer(fp)104 external_charsininputbuffer( fp )
105 FILE * fp;              /* Ptr to stdio file structure for terminal. */
106 {
107 }
108 
109 /* TAG( FlushStdOutputBuffer )
110  *  Clear out buffer, when in EchoOff mode.
111  */
flushstdoutputbuffer()112 flushstdoutputbuffer()
113 {
114     fflush( stdout );
115 }
116 
117 int             getuid();
118 
external_user_homedir_string()119 char *external_user_homedir_string()
120 {
121     return ("");
122 }
123 
EXTERNAL_ANYUSER_HOMEDIR_STRING(username)124 char *EXTERNAL_ANYUSER_HOMEDIR_STRING(username)
125 char *username;
126 {
127     return "";
128 }
129 
130