diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-10-16 06:29:57 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2011-10-16 06:29:57 +0000 |
commit | c88c9da9de80c953720b63f23dfe9904e3792861 (patch) | |
tree | b6831173c0658dcb35f5c809fa0b00542d700a79 /lib/libc/sys/ftruncate.c | |
parent | 2a45f95d13665d24e0b297ff465f09d691dfb1bf (diff) |
Make consistent the syscall stubs for the syscalls that got special
handling to fix up the alignment of 64bit arguments so that they do
the same dance where _thread_sys_FOO is the real stub and FOO is a
weak alias. For some of them, this is needed for cancellation handling.
From discussions with fgsch@, ok millert@
Diffstat (limited to 'lib/libc/sys/ftruncate.c')
-rw-r--r-- | lib/libc/sys/ftruncate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/ftruncate.c b/lib/libc/sys/ftruncate.c index d0f5e9837c4..38a5a5079e4 100644 --- a/lib/libc/sys/ftruncate.c +++ b/lib/libc/sys/ftruncate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftruncate.c,v 1.15 2007/06/05 18:11:48 kurt Exp $ */ +/* $OpenBSD: ftruncate.c,v 1.16 2011/10/16 06:29:56 guenther Exp $ */ /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -36,16 +36,16 @@ register_t __syscall(quad_t, ...); /* ftruncate is weak to support libpthread locking */ -WEAK_PROTOTYPE(ftruncate); +STUB_PROTOTYPE(ftruncate); -WEAK_ALIAS(ftruncate); +STUB_ALIAS(ftruncate); /* * This function provides 64-bit offset padding that * is not supplied by GCC 1.X but is supplied by GCC 2.X. */ int -WEAK_NAME(ftruncate)(int fd, off_t length) +STUB_NAME(ftruncate)(int fd, off_t length) { return (__syscall((quad_t)SYS_ftruncate, fd, 0, length)); } |