Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!hplabs!hpda!hpcupt1!decot From: decot@hpcupt1.cup.hp.com (Dave Decot) Newsgroups: comp.sys.hp Subject: Re: BSD and HPUX, The Questions Continue... Message-ID: <67870026@hpcupt1.cup.hp.com> Date: 15 May 91 19:45:03 GMT References: <1991May2.202710.5152@odin.diku.dk> Organization: Hewlett Packard, Cupertino Lines: 24 > A lot of stuff from libBSD.a was moved into libc.a for 8.0. Plus some > new ones as well. Among them were: bcmp, bcopy, bzero, ffs, > getusershell, index, mkstemp, rindex, strcasecmp, and strncasecmp. > > I don't know if this is entirely good news... Doesn't this mean that > now also on HP-UX you can get away with sloppy programming style > (using the b* and index functions even if ANSI C and POSIX mandate > mem* and strchr)? People intent on "sloppy programming style" will succeed regardless of what is provided where. Anyway, use of BSD functions doesn't imply "sloppy programming style", just "BSD programming style". We're trying to minimize the pain required for importing BSD and Sun applications. The only things we want to force -lBSD for is when conflicting functions are used, such as setpgrp() and signal(). In 8.0, lint(1) can be used with the -Aa, -D_POSIX_SOURCE, and -D_XOPEN_SOURCE options to detect calls to functions that aren't in the corresponding standards. Dave Decot DISCLAIMER: My opinions only, not HP's.