diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-11 13:26:21 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-11 13:26:21 +0000 |
commit | c7b05d22d4364f15fbb4613057614c7c4141d5ea (patch) | |
tree | 7c815ee3719e2ece8d7d053e42f8d842c9b50142 /lib/libc/hidden/unistd.h | |
parent | 97d2e2140973d0f19150fb246a3e179a62c785cb (diff) |
Use PROTO_NORMAL() on __syscall to go direct, adjusting the declaration
to eliminate some casts.
Retire some uses of old-style STUB* macros where superseded by namespace.h bits
tweaks and ok deraadt@
Diffstat (limited to 'lib/libc/hidden/unistd.h')
-rw-r--r-- | lib/libc/hidden/unistd.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/libc/hidden/unistd.h b/lib/libc/hidden/unistd.h new file mode 100644 index 00000000000..e68f2619f94 --- /dev/null +++ b/lib/libc/hidden/unistd.h @@ -0,0 +1,27 @@ +/* $OpenBSD: unistd.h,v 1.1 2015/09/11 13:26:20 guenther Exp $ */ +/* + * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _LIBC_UNISTD_H_ +#define _LIBC_UNISTD_H_ + +#include_next <unistd.h> + +PROTO_NORMAL(ftruncate); +PROTO_NORMAL(lseek); +PROTO_NORMAL(truncate); + +#endif /* !_LIBC_UNISTD_H_ */ |