getttyent.c (21189) | getttyent.c (22734) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 107 unchanged lines hidden (view full) --- 116#define vcmp(e) !strncmp(p, e, sizeof(e) - 1) && p[sizeof(e) - 1] == '=' 117 for (; *p; p = skip(p)) { 118 if (scmp(_TTYS_OFF)) 119 tty.ty_status &= ~TTY_ON; 120 else if (scmp(_TTYS_ON)) 121 tty.ty_status |= TTY_ON; 122 else if (scmp(_TTYS_SECURE)) 123 tty.ty_status |= TTY_SECURE; | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 107 unchanged lines hidden (view full) --- 116#define vcmp(e) !strncmp(p, e, sizeof(e) - 1) && p[sizeof(e) - 1] == '=' 117 for (; *p; p = skip(p)) { 118 if (scmp(_TTYS_OFF)) 119 tty.ty_status &= ~TTY_ON; 120 else if (scmp(_TTYS_ON)) 121 tty.ty_status |= TTY_ON; 122 else if (scmp(_TTYS_SECURE)) 123 tty.ty_status |= TTY_SECURE; |
124 else if (scmp(_TTYS_INSECURE)) 125 tty.ty_status &= ~TTY_SECURE; |
|
124 else if (vcmp(_TTYS_WINDOW)) 125 tty.ty_window = value(p); 126 else if (vcmp(_TTYS_GROUP)) 127 tty.ty_group = value(p); 128 else 129 break; 130 } 131 --- 92 unchanged lines hidden --- | 126 else if (vcmp(_TTYS_WINDOW)) 127 tty.ty_window = value(p); 128 else if (vcmp(_TTYS_GROUP)) 129 tty.ty_group = value(p); 130 else 131 break; 132 } 133 --- 92 unchanged lines hidden --- |