summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/utils.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2016-05-29 06:46:17 +0000
committerache <ache@FreeBSD.org>2016-05-29 06:46:17 +0000
commitc23d573f29b40dc21606c413d0592c987b90f302 (patch)
treeecc0c604dad62d26c7b7c60552aee9fde146cb76 /lib/libc/regex/utils.h
parent828d541106e4d84b0826748997d9bb8ab26ab90e (diff)
downloadFreeBSD-src-c23d573f29b40dc21606c413d0592c987b90f302.zip
FreeBSD-src-c23d573f29b40dc21606c413d0592c987b90f302.tar.gz
MFC: r300397
1) POSIX prohibits printing errors to stderr here and require returning NULL: "Upon successful completion, initstate() and setstate() shall return a pointer to the previous state array; otherwise, a null pointer shall be returned. Although some implementations of random() have written messages to standard error, such implementations do not conform to POSIX.1-2008." 2) Move error detections earlier to prevent state modifying.
Diffstat (limited to 'lib/libc/regex/utils.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud