diff options
author | Elliott Hughes <enh@google.com> | 2017-10-18 13:34:32 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-10-18 13:34:32 -0700 |
commit | fa386e0d1eb52478f11b7232d280919245c1616c (patch) | |
tree | fcfb7d65c39ec91e1b1ec5bedeefe806861d21c4 /libc/include/unistd.h | |
parent | ab9dc08bdd60d3709e1bce555625d923b32812be (diff) | |
download | bionic-fa386e0d1eb52478f11b7232d280919245c1616c.tar.gz |
Add POSIX swab.
Surprisingly to me, there are actual uses of `swab` in the codebases
I have available to search, including one with a #ifndef __ANDROID__
around it.
Bug: N/A
Test: ran tests
Change-Id: Ic91b78ae22bb65c346cb46dd38916f48d979abe0
Diffstat (limited to 'libc/include/unistd.h')
-rw-r--r-- | libc/include/unistd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/include/unistd.h b/libc/include/unistd.h index 9cfb918f6..a2beb383d 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h @@ -246,6 +246,8 @@ int tcsetpgrp(int __fd, pid_t __pid); int getdomainname(char* __buf, size_t __buf_size) __INTRODUCED_IN(26); int setdomainname(const char* __name, size_t __n) __INTRODUCED_IN(26); +void swab(const void* __src, void* __dst, ssize_t __byte_count) __INTRODUCED_IN_FUTURE; + #if defined(__BIONIC_INCLUDE_FORTIFY_HEADERS) #include <bits/fortify/unistd.h> #endif |