cfsetspeed.c\termios\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/termios/cfsetspeed.c
blob: 2c369db93017b6e34ad3dc8a95e8b98731ac143d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#define _BSD_SOURCE
#include <termios.h>
#include <sys/ioctl.h>
#include <errno.h>
int cfsetspeed(struct termios *tio, speed_t speed)
{
	int r = cfsetospeed(tio, speed);
	if (!r) cfsetispeed(tio, 0);
	return r;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月24日 19:16:03 +0000

AltStyle によって変換されたページ (->オリジナル) /