*BSD News Article 48991


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!newshost.marcam.com!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!uni-regensburg.de!lrz-muenchen.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Object-oriented what?  (was: Future of FreeBSD)
Date: 16 Aug 1995 10:51:42 +0200
Organization: Private U**x site, Dresden.
Lines: 33
Message-ID: <40sbiu$466@bonnie.tcd-dresden.de>
References: <DC6vJ3.L53@news.central.com> <3vlv5m$aii@park.uvsc.edu> <id.037M1.WI4@nmti.com> <40qcjc$pps@jeeves.niehs.nih.gov>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Dave Duling <duling@niehs.nih.gov> wrote:

>If you learned to program on DOS-OS/2-NT, then making system calls in BSD or 
>SYS V is very awkward and so you think UNIX is hard to program for.  You like
>the integrated environment. {:-(}

Hmm, do you think setting up something like

int
sysfoo(const char *foo)
{
	struct reg r;
	r.r_ax = 0x33;
	r.r_cx = strlen(foo);
	r.r_dx = foo;
	int21(&r);
	return r.r_ax;
}

is less awkward than

int
sysfoo(const char *foo)
{
	return write(2, (void *)foo, strlen(foo)) >= 0;
}

??? :-)
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)