Skip to content

Commit

Permalink
Merge pull request #1205 from Dennisbonke/fio
Browse files Browse the repository at this point in the history
Some additions for `fio`
  • Loading branch information
Dennisbonke authored Dec 31, 2024
2 parents df2cf06 + 8ef412a commit 31319f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
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

0 comments on commit 31319f5

Please sign in to comment.