libc: Sync asctime.c and localtime.c with tzcode2010a from elsie.
commit363194c841927fea3e5744b794f4421d9b639e4d
authorSascha Wildner <saw@online.de>
Thu, 18 Feb 2010 02:41:04 +0000 (18 03:41 +0100)
committerSascha Wildner <saw@online.de>
Thu, 18 Feb 2010 02:41:04 +0000 (18 03:41 +0100)
tree307eefbd3b152d4d7ae4470ca0838d0b74dc6482
parent48a5481322cd4c710a13ebca8e049f726b118eef
libc: Sync asctime.c and localtime.c with tzcode2010a from elsie.

asctime.c:   Set errno to EINVAL and return "??? ??? ?? ??:??:?? ????\n" if
             asctime_r() is called with a NULL struct tm pointer.
             (Note that asctime_r() is called by ctime_r() and asctime();
             asctime() is called by ctime().)

localtime.c: Set errno to EINVAL and return WRONG if time1() is called with
             a NULL struct tm pointer; avoid dereference if a NULL struct
             tm pointer is passed to timelocal(), timegm(), or timeoff().
             (Note that time1 is called by mktime(), timegm(), and timeoff();
             mktime is called by timelocal().)
lib/libc/stdtime/asctime.c
lib/libc/stdtime/localtime.c