aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/iconv
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2015-12-20 23:05:20 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2015-12-20 23:05:20 +0000
commit59797edfd853475fc9a696557b9d5b57e78a177a (patch)
tree8451e66135b6a257734793d2f264fa2d6723f72e /lib/libc/iconv
parentf3be407b2361119123183d02bd3350db42b0cec2 (diff)
Notes
Diffstat (limited to 'lib/libc/iconv')
-rw-r--r--lib/libc/iconv/citrus_mmap.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/iconv/citrus_mmap.c b/lib/libc/iconv/citrus_mmap.c
index f8e96d1964e2..83dd70b03fb6 100644
--- a/lib/libc/iconv/citrus_mmap.c
+++ b/lib/libc/iconv/citrus_mmap.c
@@ -27,6 +27,7 @@
* SUCH DAMAGE.
*/
+#include "namespace.h"
#include <sys/cdefs.h>
#include <sys/mman.h>
#include <sys/types.h>
@@ -40,6 +41,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include "un-namespace.h"
#include "citrus_namespace.h"
#include "citrus_region.h"
@@ -57,10 +59,10 @@ _citrus_map_file(struct _citrus_region * __restrict r,
_region_init(r, NULL, 0);
- if ((fd = open(path, O_RDONLY | O_CLOEXEC)) == -1)
+ if ((fd = _open(path, O_RDONLY | O_CLOEXEC)) == -1)
return (errno);
- if (fstat(fd, &st) == -1) {
+ if (_fstat(fd, &st) == -1) {
ret = errno;
goto error;
}
@@ -78,7 +80,7 @@ _citrus_map_file(struct _citrus_region * __restrict r,
_region_init(r, head, (size_t)st.st_size);
error:
- (void)close(fd);
+ (void)_close(fd);
return (ret);
}