Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!olivea!uunet!emba-news.uvm.edu!wollman From: wollman@UVM.EDU (Garrett Wollman) Subject: Re: Using gets() [ Was Re: nn ] Message-ID: <1993Jul27.191217.22537@emba.uvm.edu> Sender: news@emba.uvm.edu Organization: University of Vermont, EMBA Computer Facility References: <CAKu2r.10rt@austin.ibm.com> <22u6tmINN2t6@xs4all.hacktic.nl> <CAsEpH.55o@sugar.NeoSoft.COM> <233748$qa8@agate.berkeley.edu> Date: Tue, 27 Jul 1993 19:12:17 GMT Lines: 26 In article <233748$qa8@agate.berkeley.edu>, Keith Bostic <bostic@toe.CS.Berkeley.EDU> wrote: >I agree in principle, but it isn't possible. ANSI C requires the >gets() function in the C library, so requiring the user to specify >that they wish to use it explicitly at compile time isn't possible. Um, sorry, but the ANSI standard explicitly permits implementations to require any number of compile-time options in order to get a Standard-compliant environment. `-lobsolete' or `-DALLOW_GETS' is no more a problem for standard-compliance than, say, requiring `-ansi -pedantic'. That said, I will agree with the decision to use the current mechanism, since it does not have any knowledge of the compilation environment that it might be called to operate in. (If you were guaranteed to always have a.out, gas, and gld, use of the appropriate .stabs directive [0x1e, N_WARNING] would be the way to go.) -GAWollman -- Garrett A. Wollman | Shashish is simple, it's discreet, it's brief. ... wollman@emba.uvm.edu | Shashish is the bonding of hearts in spite of distance. uvm-gen!wollman | It is a bond more powerful than absence. We like people UVM disagrees. | who like Shashish. - Claude McKenzie + Florent Vollant