diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-04-01 19:12:44 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-04-01 19:12:44 +0000 |
commit | 6d893bd991df2d3d0b56be3a2cf926756c602915 (patch) | |
tree | 7eabacf394703d8af75cd371713610030dcc7382 /io/readlink.c | |
parent | 9388dcbb84dd616b20823ac46c8630b8c2845a82 (diff) | |
download | glibc-6d893bd991df2d3d0b56be3a2cf926756c602915.tar.gz glibc-6d893bd991df2d3d0b56be3a2cf926756c602915.tar.xz glibc-6d893bd991df2d3d0b56be3a2cf926756c602915.zip |
[BZ #2450]
* posix/unistd.h: Match return value of readlink to what POSIX says these days. * io/readlink.c: Likewise. * io/readlinkat.c: Likewise. * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
Diffstat (limited to 'io/readlink.c')
-rw-r--r-- | io/readlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io/readlink.c b/io/readlink.c index 779b809eaa..b69d08695c 100644 --- a/io/readlink.c +++ b/io/readlink.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 2006 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 @@ -22,7 +22,7 @@ /* Read the contents of the symbolic link PATH into no more than LEN bytes of BUF. The contents are not null-terminated. Returns the number of characters read, or -1 for errors. */ -int +ssize_t __readlink (path, buf, len) const char *path; char *buf; |