From owner-cvs-all Fri Dec 20 1:25:15 2002 Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 7B88B37B401; Fri, 20 Dec 2002 01:25:14 -0800 (PST) Date: Fri, 20 Dec 2002 01:25:14 -0800 From: Juli Mallett To: "M. Warner Losh" Cc: ru@FreeBSD.org, bde@zeta.org.au, wollman@lcs.mit.edu, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/sys _exit.2 accept.2 access.2 acct.2 adjtime.2 aio_cancel.2 aio_error.2 aio_read.2 aio_return.2 aio_suspend.2 aio_waitcomplete.2 aio_write.2 bind.2 brk.2 chdir Message-ID: <20021220012514.A17293@FreeBSD.org> References: <20021219095247.GA79372@sunbay.com> <20021219.211701.128866860.imp@bsdimp.com> <20021220080144.GB70051@sunbay.com> <20021220.010540.103018236.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021220.010540.103018236.imp@bsdimp.com>; from imp@bsdimp.com on Fri, Dec 20, 2002 at 01:05:40AM -0700 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , , X-Towel: Yes X-LiveJournal: flata, jmallett X-Negacore: Yes Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * De: "M. Warner Losh" [ Data: 2002-12-20 ] [ Subjecte: Re: cvs commit: src/lib/libc/sys _exit.2 accept.2 access.2 acct.2 adjtime.2 aio_cancel.2 aio_error.2 aio_read.2 aio_return.2 aio_suspend.2 aio_waitcomplete.2 aio_write.2 bind.2 brk. > I think that the overhead is worth it. We rarely move these things, > so optimizing for that case is less useful than knowing what's a > system call and what's a library call. > > System calls live in section 2 and library calls live in section 3. > Even if we call them all functions, and have to move them around from > time to time, that's a good thing and something I would actively fight > against changing. It's vaguely misleading though, since the convention for calling a system call may not in fact be the same as a system call. Certainly calling exit(1); is certainly different from doing syscall(SYS_exit, 1); or li $2, SYS_exit li $4, 1 syscall or whatever. System calls aren't really functions, we just as niceities provide frontends to system calls that look like C functions to libc consumers. Just my thoughts, worth what you paid for them. Thanx, juli. -- Juli Mallett OpenDarwin, Mono, FreeBSD Developer. ircd-hybrid Developer, EFnet addict. FreeBSD on MIPS-Anything on FreeBSD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message