subr.c (31331) | subr.c (37817) |
---|---|
1/* 2 * Copyright (c) 1983, 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 --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)from: subr.c 8.1 (Berkeley) 6/4/93"; 37#endif 38static const char rcsid[] = | 1/* 2 * Copyright (c) 1983, 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 --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)from: subr.c 8.1 (Berkeley) 6/4/93"; 37#endif 38static const char rcsid[] = |
39 "$Id$"; | 39 "$Id: subr.c,v 1.13 1997/11/21 07:43:52 charnier Exp $"; |
40#endif /* not lint */ 41 42/* 43 * Melbourne getty. 44 */ 45#define COMPAT_43 46#ifdef DEBUG 47#include <stdio.h> --- 651 unchanged lines hidden (view full) --- 699 { 9600, B9600 }, 700 { 19200, EXTA }, 701 { 19, EXTA }, /* for people who say 19.2K */ 702 { 38400, EXTB }, 703 { 38, EXTB }, 704 { 7200, EXTB }, /* alternative */ 705 { 57600, B57600 }, 706 { 115200, B115200 }, | 40#endif /* not lint */ 41 42/* 43 * Melbourne getty. 44 */ 45#define COMPAT_43 46#ifdef DEBUG 47#include <stdio.h> --- 651 unchanged lines hidden (view full) --- 699 { 9600, B9600 }, 700 { 19200, EXTA }, 701 { 19, EXTA }, /* for people who say 19.2K */ 702 { 38400, EXTB }, 703 { 38, EXTB }, 704 { 7200, EXTB }, /* alternative */ 705 { 57600, B57600 }, 706 { 115200, B115200 }, |
707 { 230400, B230400 }, |
|
707 { 0 } 708}; 709 710int 711speed(val) 712 int val; 713{ 714 register struct speedtab *sp; 715 | 708 { 0 } 709}; 710 711int 712speed(val) 713 int val; 714{ 715 register struct speedtab *sp; 716 |
716 if (val <= B115200) | 717 if (val <= B230400) |
717 return (val); 718 719 for (sp = speedtab; sp->speed; sp++) 720 if (sp->speed == val) 721 return (sp->uxname); 722 723 return (B300); /* default in impossible cases */ 724} --- 131 unchanged lines hidden --- | 718 return (val); 719 720 for (sp = speedtab; sp->speed; sp++) 721 if (sp->speed == val) 722 return (sp->uxname); 723 724 return (B300); /* default in impossible cases */ 725} --- 131 unchanged lines hidden --- |