summaryrefslogtreecommitdiff
path: root/libexec/ld.so/amd64
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2008-10-02 20:12:09 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2008-10-02 20:12:09 +0000
commitefc2566256e873c518b2559f3e622e48a4bde2a9 (patch)
tree7f95beb48536c3d4555ba73fe511a1f36b5970d5 /libexec/ld.so/amd64
parentef01721e655ca4cf6dae4242328cc42e2b191b45 (diff)
Fix mmap() error checking to be correct 64-bit addresses. Consistently
use _dl_mmap_error() to check for mmap() errors. Adjust datatypes of some local vars for 64-bit safety. okay millert@ drahn@
Diffstat (limited to 'libexec/ld.so/amd64')
-rw-r--r--libexec/ld.so/amd64/syscall.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ld.so/amd64/syscall.h b/libexec/ld.so/amd64/syscall.h
index 0f6a73181b0..406b4bfe4a2 100644
--- a/libexec/ld.so/amd64/syscall.h
+++ b/libexec/ld.so/amd64/syscall.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscall.h,v 1.3 2006/05/03 16:10:52 drahn Exp $ */
+/* $OpenBSD: syscall.h,v 1.4 2008/10/02 20:12:08 kurt Exp $ */
/*
* Copyright (c) 2001 Niklas Hallqvist
@@ -34,10 +34,10 @@
#include <sys/signal.h>
#ifndef _dl_MAX_ERRNO
-#define _dl_MAX_ERRNO 4096
+#define _dl_MAX_ERRNO 512L
#endif
-#define _dl_check_error(__res) \
- ((int) __res < 0 && (int) __res >= -_dl_MAX_ERRNO)
+#define _dl_mmap_error(__res) \
+ ((long)__res < 0 && (long)__res >= -_dl_MAX_ERRNO)
int _dl_close(int);
int _dl_exit(int);