/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */ #include #include #include int cfsetospeed (struct termios *termiosp, speed_t speed) { /* check arguments */ if (termiosp == NULL) { errno = EINVAL; return -1; } /* set output speed */ termiosp->c_ospeed = speed; return 0; }