1 Star 8 Fork 11

xfan1024 / oh-dropbear

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fuzz-wrapfd.h 630 Bytes
一键复制 编辑 原始数据 按行查看 历史
xfan1024 提交于 2021-08-13 14:40 . Init commit: dropbear-2020.81
#ifndef FUZZ_WRAPFD_H
#define FUZZ_WRAPFD_H
#include "buffer.h"
enum wrapfd_mode {
UNUSED = 0,
COMMONBUF, // using the common buffer
};
// buf is a common buffer read by all wrapped FDs. doesn't take ownership of buf
void wrapfd_setup(buffer *buf);
void wrapfd_setseed(uint32_t seed);
int wrapfd_new();
// called via #defines for read/write/select
int wrapfd_read(int fd, void *out, size_t count);
int wrapfd_write(int fd, const void* in, size_t count);
int wrapfd_select(int nfds, fd_set *readfds, fd_set *writefds,
fd_set *exceptfds, struct timeval *timeout);
int wrapfd_close(int fd);
#endif // FUZZ_WRAPFD_H
1
https://gitee.com/xfan1024/oh-dropbear.git
git@gitee.com:xfan1024/oh-dropbear.git
xfan1024
oh-dropbear
oh-dropbear
master

搜索帮助