mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Add timeout feature to expect()
This commit is contained in:
parent
3ad090caf7
commit
51300cc4f0
6 changed files with 60 additions and 34 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define UNUSED(expr) do { (void)(expr); } while (0)
|
||||
|
||||
|
|
@ -33,3 +34,4 @@ void alert_connect(void);
|
|||
void alert_disconnect(void);
|
||||
bool fs_dir_exists(const char *path);
|
||||
bool regex_match(const char *string, const char *pattern);
|
||||
int read_poll(int fd, void *data, size_t len, int timeout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue