*BSD News Article 84075


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.mathworks.com!fu-berlin.de!news.gtn.com!genesis.westend.com!news.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!tubsibr!rob.cs.tu-bs.de!mkl
From: mkl@rob.cs.tu-bs.de (Mario Klebsch DG1AM)
Newsgroups: comp.unix.solaris,comp.unix.bsd.misc
Subject: Re: Solaris 2.6
Date: 2 Dec 96 13:56:39 GMT
Organization: TU Braunschweig, Informatik (Bueltenweg), Germany
Lines: 20
Distribution: inet
Message-ID: <mkl.849534999@rob.cs.tu-bs.de>
References: <32986299.AC7@mail.esrin.esa.it> <57djlg$bks@agate.berkeley.edu>   <57dkbq$bsr@panix2.panix.com> <casper.329abb76@mail.fwi.uva.nl>   <57ej3a$7ij@panix2.panix.com> <casper.329ae8f2@mail.fwi.uva.nl> <57hhcp$kp9@innocence.interface-business.de>
X-Newsreader: NN version 6.5.0 (NOV)
Xref: euryale.cc.adfa.oz.au comp.unix.solaris:91108 comp.unix.bsd.misc:1651

j@ida.interface-business.de (J Wunsch) writes:

>Isn't open a syscall?  No need for the libs to bother with.  The
>syscall vector of the kernel will handle this for you.

Open is a syscall (on Solaris), but how does the compiler call open?
Have you ever seen a C-Compiler putting syscalls in its output? All
Syscalls are called from wrappers within the libraries. And putting
them all into dynamic libraries has the advantage, that you do not
have to relink your program, when e.g. a syscall is replaced by a
library routine or vice versa. Socket once was a syscall (in SunOS4),
but is a library routine today (in Solaris 2.5). Perhaps this will be
changed in the future, but the interface to the binaries is not
affected by this change.

73, Mario
--
Mario Klebsch, DG1AM, M.Klebsch@tu-bs.de		+49 531 / 391 - 7457
Institut fuer Robotik und Prozessinformatik der TU Braunschweig
Hamburger Strasse 267, 38114 Braunschweig, Germany