-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef SYS_UIO_H | ||
#define SYS_UIO_H | ||
|
||
#include <inttypes.h> | ||
#include <unistd.h> | ||
|
||
struct iovec | ||
{ | ||
void *iov_base; /* Base address of a memory region for input or output */ | ||
size_t iov_len; /* The size of the memory pointed to by iov_base */ | ||
}; | ||
|
||
ssize_t readv(int fildes, const struct iovec *iov, int iovcnt); | ||
ssize_t writev(int fildes, const struct iovec *iov, int iovcnt); | ||
|
||
#endif /* SYS_UIO_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
g++ -std=c++17 -I ../../include/ -I../../third_party/include -DThreadUT test.cpp x.cpp \ | ||
../thread-pool.cpp ../workerpool.cpp ../thread-key.cpp \ | ||
../../common/identity-pool.cpp ../../common/alog.cpp -lgtest -lgflags -O2 | ||
|