Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site elsie.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!decwrl!amdcad!lll-crg!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.bugs.4bsd Subject: 4.?bsd modf/fmod confusion (with fix) Message-ID: <6005@elsie.UUCP> Date: Tue, 7-Jan-86 10:21:42 EST Article-I.D.: elsie.6005 Posted: Tue Jan 7 10:21:42 1986 Date-Received: Wed, 8-Jan-86 23:49:35 EST Organization: NIH-LEC, Bethesda, MD Lines: 27 Keywords: bsd modf fmod Index: include/math.h Description: The file "/usr/include/math.h" includes a declaration of the function "fmod"; no such function appears in the math library. The file "/usr/include/math.h" lacks a declaration of the function "modf" which does appear in the math libray. Repeat-By: grep mod /usr/include/math.h Fix: This is the change to the 4.1bsd version of "/usr/include/math.h". As usual, the trade secret status of the code involved precludes a clearer posting. #ifdef OLDVERSION extern double fabs(), floor(), ceil(), fmod(), ldexp(), frexp(); #else extern double fabs(), floor(), ceil(), modf(), ldexp(), frexp(); #endif -- Bugs is a Warner Brothers trademark. Mod is an Aaron Spelling Productions trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX and Elsie are Digital Equipment and Borden trademarks