diff options
Diffstat (limited to 'nix-test/src/sizes.c')
-rw-r--r-- | nix-test/src/sizes.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/nix-test/src/sizes.c b/nix-test/src/sizes.c deleted file mode 100644 index ca862003..00000000 --- a/nix-test/src/sizes.c +++ /dev/null @@ -1,32 +0,0 @@ -#include <sys/socket.h> -#include <sys/uio.h> - -#include <string.h> - -#define SIZE_OF_T(TYPE) \ - do { \ - if (0 == strcmp(type, #TYPE)) { \ - return sizeof(TYPE); \ - } \ - } while (0) - -#define SIZE_OF_S(TYPE) \ - do { \ - if (0 == strcmp(type, #TYPE)) { \ - return sizeof(struct TYPE); \ - } \ - } while (0) - -size_t -size_of(const char* type) { - // Builtin - SIZE_OF_T(long); - - // sys/socket - SIZE_OF_S(sockaddr_storage); - - // sys/uio - SIZE_OF_S(iovec); - - return 0; -} |