mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
LibC: Mark a bunch of functions as cancellation points
This commit is contained in:
parent
899fd74f8e
commit
c85f307e62
15 changed files with 78 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <bits/pthread_cancel.h>
|
||||
#include <errno.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <termios.h>
|
||||
|
@ -51,6 +52,8 @@ int tcflush(int fd, int queue_selector)
|
|||
// https://pubs.opengroup.org/onlinepubs/009695399/functions/tcdrain.html
|
||||
int tcdrain([[maybe_unused]] int fd)
|
||||
{
|
||||
__pthread_maybe_cancel();
|
||||
|
||||
// FIXME: Implement this for real.
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue