diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-02-13 22:09:09 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-02-13 22:09:09 +0000 |
commit | 305f83de532e095bf6f2caf57f6a3b30209974d0 (patch) | |
tree | 05eb99cdf55aeee98cd9dd1e499bcb0ee66e86dc | |
parent | 6a0148d1cfea32ebbe1fedc98d71ba38286f634e (diff) | |
download | glibc-305f83de532e095bf6f2caf57f6a3b30209974d0.tar glibc-305f83de532e095bf6f2caf57f6a3b30209974d0.tar.gz glibc-305f83de532e095bf6f2caf57f6a3b30209974d0.tar.bz2 glibc-305f83de532e095bf6f2caf57f6a3b30209974d0.zip |
Define __ftruncate64 and make old name a weak alias.
-rw-r--r-- | sysdeps/unix/sysv/aix/ftruncate64.c | 5 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/mips/ftruncate64.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/aix/ftruncate64.c b/sysdeps/unix/sysv/aix/ftruncate64.c index 56a5ed58c1..f2c1578a18 100644 --- a/sysdeps/unix/sysv/aix/ftruncate64.c +++ b/sysdeps/unix/sysv/aix/ftruncate64.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,7 +21,8 @@ extern int kftruncate (int fd, long long int length); int -ftruncate64 (int fd, off64_t length) +__ftruncate64 (int fd, off64_t length) { return kftruncate (fd, length); } +weak_alias (__ftruncate64, ftruncate64) diff --git a/sysdeps/unix/sysv/linux/mips/ftruncate64.c b/sysdeps/unix/sysv/linux/mips/ftruncate64.c index e45afbad7d..bc03e0c550 100644 --- a/sysdeps/unix/sysv/linux/mips/ftruncate64.c +++ b/sysdeps/unix/sysv/linux/mips/ftruncate64.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -39,7 +39,7 @@ extern int __syscall_ftruncate64 (int fd, int dummy, int high_length, /* Truncate the file FD refers to to LENGTH bytes. */ int -ftruncate64 (int fd, off64_t length) +__ftruncate64 (int fd, off64_t length) { #ifndef __ASSUME_TRUNCATE64_SYSCALL if (! __have_no_truncate64) @@ -72,6 +72,7 @@ ftruncate64 (int fd, off64_t length) return __ftruncate (fd, (off_t) length); #endif } +weak_alias (__ftruncate64, ftruncate64) #else /* Use the generic implementation. */ |