From owner-cvs-sys Sun May 14 13:23:20 1995 Return-Path: cvs-sys-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id NAA28280 for cvs-sys-outgoing; Sun, 14 May 1995 13:23:20 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id NAA28256 ; Sun, 14 May 1995 13:23:10 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id NAA04490; Sun, 14 May 1995 13:22:53 -0700 From: "Rodney W. Grimes" Message-Id: <199505142022.NAA04490@gndrsh.aac.dev.com> Subject: Re: cvs commit: src/sys/sys mman.h To: nate@trout.sri.MT.net (Nate Williams) Date: Sun, 14 May 1995 13:22:53 -0700 (PDT) Cc: nate@freefall.cdrom.com, CVS-commiters@freefall.cdrom.com, cvs-sys@freefall.cdrom.com In-Reply-To: <199505142015.OAA23760@trout.sri.MT.net> from "Nate Williams" at May 14, 95 02:15:31 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1599 Sender: cvs-sys-owner@freebsd.org Precedence: bulk > > > > nate 95/05/14 12:19:08 > > > > > > Modified: sys/sys mman.h > > > Log: > > > Prototype for madvise() is missing from sys/mman.h > > > > > > Submitted by: Kai Vorma > > > > BANG!!! From the FREEZE document: > > > > 2) All kernel bug fixes are to be reviewed by David Greenman *before* > > they are committed. > > This isn't a *kernel* bug fix, and *couldn't* possibly cause any sort of > kernel problems since madvise() is a user function. Prototyping a > function can only be considered a bug-fix and nothing else. If the code lives in /usr/src/sys, it *IS* a kernel change, no if's and's or buts about it. Madvice is implemented in the kernel via a system call isn't it?? thump:rgrimes {148} kfind -i madvise ./kern/init_sysent.c:int madvise(); ./kern/init_sysent.c: { 3, madvise }, /* 75 = madvise */ ./kern/syscalls.c: "madvise", /* 75 = madvise */ ./kern/syscalls.master:75 STD 3 BSD madvise ./sys/mman.h: * Advice to madvise ./sys/syscall-hide.h:HIDE_BSD(madvise) ./sys/syscall.h:#define SYS_madvise 75 ./vm/vm_extern.h:int madvise __P((struct proc *, void *, int *)); ./vm/vm_mmap.c:struct madvise_args { ./vm/vm_mmap.c:madvise(p, uap, retval) ./vm/vm_mmap.c: struct madvise_args *uap; thump:rgrimes {149} Note we already had a prototype for it in vm/vm_extern.h. This was also a non-critical item. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD