search for: cfgetispeed

Displaying 2 results from an estimated 2 matches for "cfgetispeed".

2001 Feb 04
4
next build
> *** openbsd-compat/bsd-nextstep.h.orig Sun Feb 4 00:16:16 2001 > --- openbsd-compat/bsd-nextstep.h Sun Feb 4 00:19:09 2001 > *************** > *** 48,52 **** > --- 48,56 ---- > speed_t cfgetispeed(const struct termios *t); > int cfsetospeed(struct termios *t, int speed); > int cfsetispeed(struct termios *t, int speed); > + > + /* LIMITS */ > + #define NGROUPS_MAX 16 > + Hey, Steve.. since you put together the group access patch to OpenBSD. Do you recomend a bett...
2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...ult: + errno = EINVAL; + return (-1); + } +} + +int tcsetpgrp(int fd, pid_t pgrp) +{ + int s; + + s = pgrp; + return (ioctl(fd, TIOCSPGRP, &s)); +} + +pid_t tcgetpgrp(int fd) +{ + int s; + + if (ioctl(fd, TIOCGPGRP, &s) < 0) + return ((pid_t)-1); + + return ((pid_t)s); +} +/* +speed_t cfgetispeed(const struct termios *); +speed_t cfgetospeed(const struct termios *); +*/ + +speed_t cfgetospeed(const struct termios *t) +{ + + return (t->c_ospeed); +} + +speed_t cfgetispeed(t) + const struct termios *t; +{ + + return (t->c_ispeed); +} + +/*int cfsetospeed(struct termios *, int);*/ +i...