Commit Graph
4 Commits
Author SHA1 Message Date
A. Wilcox 1080008809 getdate: correctly specify error number
POSIX defines getdate error #5 as:
"An I/O error is encountered while reading the template file."

POSIX defines getdate error #7 as:
"There is no line in the template that matches the input."

This change correctly disambiguates between the two error conditions.
2017-06-14 19:50:58 -04:00
Rich Felker d712dd396d more close-on-exec fixes, mostly using new "e" flag to fopen 2012-09-29 18:14:46 -04:00
Rich Felker 6cf51fe51a remove debug cruft that was left in getdate 2012-03-02 00:24:49 -05:00
Rich Felker b93b7382d6 first try at implementing getdate function 2012-03-02 00:24:17 -05:00