summaryrefslogtreecommitdiff
path: root/libexec/ld.so/alpha/syscall.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2018-07-09 10:12:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2018-07-09 10:12:15 +0000
commit647c7b1a11957b04c7e00ec5f721d0e588defc38 (patch)
tree5a8ee66ed2ab92dab5c33b4e7f28f38ab0879d15 /libexec/ld.so/alpha/syscall.h
parentebedf407dec497e06ff91b3c79f77687e383b36f (diff)
unify the various per-arch syscall.h as much as possible
ok kettenis guenther
Diffstat (limited to 'libexec/ld.so/alpha/syscall.h')
-rw-r--r--libexec/ld.so/alpha/syscall.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/libexec/ld.so/alpha/syscall.h b/libexec/ld.so/alpha/syscall.h
index 823ed2cbe87..c51ce2d1dfe 100644
--- a/libexec/ld.so/alpha/syscall.h
+++ b/libexec/ld.so/alpha/syscall.h
@@ -1,7 +1,7 @@
-/* $OpenBSD: syscall.h,v 1.39 2017/08/27 21:59:52 deraadt Exp $ */
+/* $OpenBSD: syscall.h,v 1.40 2018/07/09 10:12:14 deraadt Exp $ */
/*
- * Copyright (c) 2001 Niklas Hallqvist
+ * Copyright (c) 1998 Per Fogelstrom, Opsycon AB
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -25,37 +25,39 @@
* SUCH DAMAGE.
*
*/
+
#ifndef __DL_SYSCALL_H__
#define __DL_SYSCALL_H__
-#include <sys/stat.h>
#include <sys/syscall.h>
+#include <sys/stat.h>
#ifndef _dl_MAX_ERRNO
#define _dl_MAX_ERRNO 512L
#endif
#define _dl_mmap_error(__res) \
- ((long) __res < 0 && (long) __res >= -_dl_MAX_ERRNO)
+ ((long)__res < 0 && (long)__res >= -_dl_MAX_ERRNO)
int _dl_close(int);
__dead
void _dl_exit(int);
+int _dl_fstat(int, struct stat *);
+int _dl___getcwd(char *, size_t);
+ssize_t _dl_getdents(int, char *, size_t);
int _dl_issetugid(void);
int _dl_getthrid(void);
int _dl_mprotect(const void *, size_t, int);
int _dl_munmap(const void *, size_t);
int _dl_open(const char *, int);
ssize_t _dl_read(int, const char *, size_t);
-int _dl_fstat(int, struct stat *);
-ssize_t _dl_getdents(int, char *, size_t);
-long _dl___syscall(quad_t, ...);
-int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t);
ssize_t _dl_readlink(const char *, char *, size_t);
int _dl_pledge(const char *, const char **);
-int _dl___getcwd(char *, size_t);
+long _dl___syscall(quad_t, ...);
+int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t);
int _dl_utrace(const char *, const void *, size_t);
int _dl_getentropy(char *, size_t);
int _dl_sendsyslog(const char *, size_t, int);
+void _dl___set_tcb(void *);
__dead
void _dl_thrkill(pid_t, int, void *);