Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some additions for fio #1205

Merged
merged 2 commits into from
Dec 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions options/linux/include/scsi/sg.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#define SG_DXFER_FROM_DEV (-3)
#define SG_DXFER_TO_FROM_DEV (-4)

#define SG_INFO_CHECK 0x1

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
6 changes: 6 additions & 0 deletions options/posix/generic/arpa-inet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ in_addr_t inet_addr(const char *p) {
return -1;
return a.s_addr;
}

in_addr_t inet_network(const char *) {
__ensure(!"Not implemented");
__builtin_unreachable();
}

char *inet_ntoa(struct in_addr addr) {
// string: xxx.yyy.zzz.aaa
// 4 * 3 + 3 + 1 = 12 + 4 = 16
Expand Down
1 change: 1 addition & 0 deletions options/posix/include/arpa/inet.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ uint16_t ntohs(uint16_t __x);
/* ---------------------------------------------------------------------------- */

in_addr_t inet_addr(const char *__cp);
in_addr_t inet_network(const char *__cp);
char *inet_ntoa(struct in_addr __in);

/* GLIBC replacement for inet_addr(). */
Expand Down
Loading