This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Albert ARIBAUD (3ADEV) wrote:
+ if (result == -1)
+ {
+ __set_errno(EOVERFLOW);
+ }
This patch is not correct since -1 is a valid time_t value, and a result of -1 does not necessarily indicate time_t overflow.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |