This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I've just committed the appended patch to glibc 2.2 and 2.1. Andreas 2000-05-08 Andreas Jaeger <aj@suse.de> * sysdeps/generic/lockf64.c (lockf64): Return -1 for overflow and set errno. ============================================================ Index: sysdeps/generic/lockf64.c --- sysdeps/generic/lockf64.c 1999/02/18 09:09:58 1.1 +++ sysdeps/generic/lockf64.c 2000/05/08 14:00:54 @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1994,96,97,98,99,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 @@ -31,8 +31,11 @@ off_t len = (off_t) len64; if (len64 != (off64_t) len) - /* We can't represent the length. */ - return EOVERFLOW; + { + /* We can't represent the length. */ + __set_errno (EOVERFLOW); + return -1; + } memset ((char *) &fl, '\0', sizeof (fl)); -- Andreas Jaeger SuSE Labs aj@suse.de
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |