From f5164429135806c41da679afb662d8482eec0a41 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 30 Jun 2004 07:43:11 +0000 Subject: Update. 2004-06-30 Ulrich Drepper * include/net/if.h: Handle if_nameindex and if_freenameindex with libc_proto_hidden. * sysdeps/unix/sysv/linux/netlinkaccess.h: New file. * sysdeps/unix/sysv/linux/ifaddrs.c: Export netlink handling functions. * sysdeps/unix/sysv/linux/if_index.c (if_nameindex): Implement using netlink if possible. Fall back on ioctl method if necessary. * include/unistd.h: Declare __truncate. * sysdeps/generic/truncate.c: Also define __truncate. * sysdeps/mach/hurd/truncate.c: Likewise. * sysdeps/unix/common/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/truncate64.c: Use __truncate, not truncate. --- sysdeps/generic/truncate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/truncate.c b/sysdeps/generic/truncate.c index d7713b16d2..6d0f0c3bcb 100644 --- a/sysdeps/generic/truncate.c +++ b/sysdeps/generic/truncate.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 2004 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,13 +21,14 @@ /* Truncate PATH to LENGTH bytes. */ int -truncate (path, length) +__truncate (path, length) const char *path; off_t length; { __set_errno (ENOSYS); return -1; } +weak_alias (__truncate, truncate) stub_warning (truncate) #include -- cgit 1.4.1