Feature #1060 » cfmakeraw.diff
usr/src/grub/grub-0.97/grub/asmstub.c Fri Jun 03 11:40:03 2011 -0400 → usr/src/grub/grub-0.97/grub/asmstub.c Tue Jun 14 05:05:19 2011 +0100 | ||
---|---|---|
1135 | 1135 |
goto fail; |
1136 | 1136 | |
1137 | 1137 |
/* Raw mode. */ |
1138 |
#if defined(__sun) |
|
1139 |
termios.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); |
|
1140 |
termios.c_oflag &= ~OPOST; |
|
1141 |
termios.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); |
|
1142 |
termios.c_cflag &= ~(CSIZE|PARENB); |
|
1143 |
termios.c_cflag |= CS8; |
|
1144 |
#else |
|
1145 | 1138 |
cfmakeraw (&termios); |
1146 |
#endif |
|
1147 | 1139 | |
1148 | 1140 |
/* Set the speed. */ |
1149 | 1141 |
termios_speed = get_termios_speed (speed); |
usr/src/lib/c_synonyms/syn_common Fri Jun 03 11:40:03 2011 -0400 → usr/src/lib/c_synonyms/syn_common Tue Jun 14 05:05:19 2011 +0100 | ||
---|---|---|
179 | 179 |
cfgetospeed |
180 | 180 |
cfsetispeed |
181 | 181 |
cfsetospeed |
182 |
cfmakeraw |
|
182 | 183 |
cftime |
183 | 184 |
chdir |
184 | 185 |
chmod |
usr/src/lib/libc/amd64/Makefile Fri Jun 03 11:40:03 2011 -0400 → usr/src/lib/libc/amd64/Makefile Tue Jun 14 05:05:19 2011 +0100 | ||
---|---|---|
346 | 346 |
cfree.o \ |
347 | 347 |
cfsetispeed.o \ |
348 | 348 |
cfsetospeed.o \ |
349 |
cfmakeraw.o \ |
|
349 | 350 |
cftime.o \ |
350 | 351 |
clock.o \ |
351 | 352 |
closedir.o \ |
usr/src/lib/libc/i386/Makefile.com Fri Jun 03 11:40:03 2011 -0400 → usr/src/lib/libc/i386/Makefile.com Tue Jun 14 05:05:19 2011 +0100 | ||
---|---|---|
377 | 377 |
cfree.o \ |
378 | 378 |
cfsetispeed.o \ |
379 | 379 |
cfsetospeed.o \ |
380 |
cfmakeraw.o \ |
|
380 | 381 |
cftime.o \ |
381 | 382 |
clock.o \ |
382 | 383 |
closedir.o \ |
/dev/null Thu Jan 01 00:00:00 1970 +0000 → usr/src/lib/libc/port/gen/cfmakeraw.c Tue Jun 14 05:05:19 2011 +0100 | ||
---|---|---|
1 |
/* |
|
2 |
* CDDL HEADER START |
|
3 |
* |
|
4 |
* The contents of this file are subject to the terms of the |
|
5 |
* Common Development and Distribution License (the "License"). |
|
6 |
* You may not use this file except in compliance with the License. |
|
7 |
* |
|
8 |
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
* or http://www.opensolaris.org/os/licensing. |
|
10 |
* See the License for the specific language governing permissions |
|
11 |
* and limitations under the License. |
|
12 |
* |
|
13 |
* When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
* file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
* If applicable, add the following below this CDDL HEADER, with the |
|
16 |
* fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
* information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
* |
|
19 |
* CDDL HEADER END |
|
20 |
*/ |
|
21 | ||
22 |
/* |
|
23 |
* Copyright 2011 Nexenta Systems, Inc. All rights reserved. |
|
24 |
*/ |
|
25 | ||
26 |
#pragma weak _cfmakeraw = cfmakeraw |
|
27 | ||
28 |
#include "lint.h" |
|
29 |
#include <sys/types.h> |
|
30 |
#include <sys/termios.h> |
|
31 | ||
32 |
/* |
|
33 |
* set the structure pointed to by termios_p to raw mode |
|
34 |
*/ |
|
35 | ||
36 |
void |
|
37 |
cfmakeraw(struct termios *termios_p) |
|
38 |
{ |
|
39 |
termios_p->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP| |
|
40 |
INLCR|IGNCR|ICRNL|IXON); |
|
41 |
termios_p->c_oflag &= ~OPOST; |
|
42 |
termios_p->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); |
|
43 |
termios_p->c_cflag &= ~(CSIZE|PARENB); |
|
44 |
termios_p->c_cflag |= CS8; |
|
45 |
termios_p->c_cc[VMIN] = 1; |
|
46 |
termios_p->c_cc[VTIME] = 0; |
|
47 |
} |
usr/src/lib/libc/port/llib-lc Fri Jun 03 11:40:03 2011 -0400 → usr/src/lib/libc/port/llib-lc Tue Jun 14 05:05:19 2011 +0100 | ||
---|---|---|
307 | 307 |
/* cfsetospeed.c */ |
308 | 308 |
int cfsetospeed(struct termios *termios_p, speed_t speed); |
309 | 309 | |
310 |
/* cfmakeraw.c */ |
|
311 |
void cfmakeraw(struct termios *termios_p); |
|
312 | ||
310 | 313 |
/* cftime.c */ |
311 | 314 |
int cftime(char *buf, char *format, const time_t *t); |
312 | 315 |
int ascftime(char *buf, const char *format, const struct tm *tm); |
usr/src/lib/libc/port/mapfile-vers Fri Jun 03 11:40:03 2011 -0400 → usr/src/lib/libc/port/mapfile-vers Tue Jun 14 05:05:19 2011 +0100 | ||
---|---|---|
90 | 90 | |
91 | 91 |
SYMBOL_VERSION ILLUMOS_0.1 { # Illumos additions |
92 | 92 |
protected: |
93 |
cfmakeraw; |
|
94 |
_cfmakeraw; |
|
93 | 95 |
timegm; |
94 | 96 |
} SUNW_1.23; |
95 | 97 |
usr/src/lib/libc/sparc/Makefile.com Fri Jun 03 11:40:03 2011 -0400 → usr/src/lib/libc/sparc/Makefile.com Tue Jun 14 05:05:19 2011 +0100 | ||
---|---|---|
407 | 407 |
cfree.o \ |
408 | 408 |
cfsetispeed.o \ |
409 | 409 |
cfsetospeed.o \ |
410 |
cfmakeraw.o \ |
|
410 | 411 |
cftime.o \ |
411 | 412 |
clock.o \ |
412 | 413 |
closedir.o \ |
usr/src/uts/common/sys/termios.h Fri Jun 03 11:40:03 2011 -0400 → usr/src/uts/common/sys/termios.h Tue Jun 14 05:05:19 2011 +0100 | ||
---|---|---|
104 | 104 |
extern int cfsetospeed(struct termios *, speed_t); |
105 | 105 |
extern speed_t cfgetispeed(const struct termios *); |
106 | 106 |
extern int cfsetispeed(struct termios *, speed_t); |
107 |
extern void cfmakeraw(struct termios *); |
|
107 | 108 |
extern int tcgetattr(int, struct termios *); |
108 | 109 |
extern int tcsetattr(int, int, const struct termios *); |
109 | 110 |
extern int tcsendbreak(int, int); |
... | ... | |
117 | 118 |
extern int cfsetospeed(); |
118 | 119 |
extern speed_t cfgetispeed(); |
119 | 120 |
extern int cfsetispeed(); |
121 |
extern void cfmakeraw(); |
|
120 | 122 |
extern int tcgetattr(); |
121 | 123 |
extern int tcsetattr(); |
122 | 124 |
extern int tcsendbreak(); |
- « Previous
- 1
- 2
- 3
- 4
- Next »