]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Formulate warning message stronger.
authorUlrich Drepper <drepper@redhat.com>
Sun, 2 Jan 2000 18:55:38 +0000 (18:55 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 2 Jan 2000 18:55:38 +0000 (18:55 +0000)
sysdeps/unix/sysv/linux/llseek.c

index 9aea8fb008bbd80e8fd85f84f0de3d975b31affb..f851a79ca8d79f41f45b4c10a0e509f2a3d889d4 100644 (file)
@@ -1,5 +1,5 @@
 /* Long-long seek operation.
-   Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998, 1999, 2000 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
@@ -40,3 +40,9 @@ weak_alias (__llseek, llseek)
 strong_alias (__llseek, __libc_lseek64)
 weak_alias (__llseek, __lseek64)
 weak_alias (__llseek, lseek64)
+
+/* llseek doesn't have a prototype.  Since the second parameter is a
+   64bit type, this results in wrong behaviour if no prototype is
+   provided.  */
+link_warning (llseek, "\
+the `llseek' function may be dangerous; use `lseek64' instead.")