Bug 196319 - asinh, acosh, and atanh are not part of C89
Summary: asinh, acosh, and atanh are not part of C89
Status: RESOLVED CODE_FIX
Alias: None
Product: Documentation
Classification: Unclassified
Component: man-pages (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: documentation_man-pages@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-11 05:30 UTC by Alex Henrie
Modified: 2017-07-11 17:27 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Alex Henrie 2017-07-11 05:30:23 UTC
The man pages for asinh, acosh, and atanh state "The variant returning double also conforms to SVr4, 4.3BSD, C89." However, the C89 designation is not correct for two reasons:

1. Section 7.5.2, "Trigonometric functions" of the ISO C standard does not mention asinh, acosh, or atanh.

2. Relatively recent, C89-conformant Microsoft compilers don't support these functions. See:
https://stackoverflow.com/questions/15539116/atanh-arc-hyperbolic-tangent-function-missing-in-ms-visual-c
https://mail.kde.org/pipermail/calligra-devel/2012-December/007686.html

The incorrect information on the man pages caused some confusion for the Wine project today as we discussed whether or not we need precompiler checks for these functions: https://www.winehq.org/pipermail/wine-devel/2017-July/118364.html

I will send a patch to the mailing list shortly to correct these pages.
Comment 1 Michael Kerrisk 2017-07-11 17:27:36 UTC
Resolved by a patch sent by the bug reporter

Note You need to log in before you can comment on or make changes to this bug.