Skip to content

Commit

Permalink
[libc] Add tcsendbreak stub
Browse files Browse the repository at this point in the history
  • Loading branch information
panantoni01 committed Aug 20, 2023
1 parent 52227b8 commit 7509b56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/sys/termios.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ int cfsetispeed(struct termios *, speed_t);
int cfsetospeed(struct termios *, speed_t);
int tcgetattr(int, struct termios *);
int tcsetattr(int, int, const struct termios *);
int tcsendbreak(int, int);

void cfmakeraw(struct termios *);
__END_DECLS
Expand Down
8 changes: 8 additions & 0 deletions lib/libc/termios/tcsendbreak.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <termios.h>
#include <errno.h>

int
tcsendbreak(int fd, int len) {
errno = ENOTSUP;
return -1;
}

0 comments on commit 7509b56

Please sign in to comment.