From owner-freebsd-hackers Wed Apr 15 09:31:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA02504 for freebsd-hackers-outgoing; Wed, 15 Apr 1998 09:31:20 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from d183-205.uoregon.edu (d183-205.uoregon.edu [128.223.183.205]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA02462 for ; Wed, 15 Apr 1998 16:30:57 GMT (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by d183-205.uoregon.edu (8.8.7/8.8.7) id JAA03842; Wed, 15 Apr 1998 09:30:43 -0700 (PDT) Message-ID: <19980415093042.30113@hydrogen.nike.efn.org> Date: Wed, 15 Apr 1998 09:30:42 -0700 From: John-Mark Gurney To: Eivind Eklund Cc: "Eric A. Davis" , freebsd-hackers@FreeBSD.ORG Subject: Re: how to add new system calls... References: <199804142351.QAA16873@shark.nas.nasa.gov> <19980415125729.03160@follo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <19980415125729.03160@follo.net>; from Eivind Eklund on Wed, Apr 15, 1998 at 12:57:29PM +0200 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Eivind Eklund scribbled this message on Apr 15: > On Tue, Apr 14, 1998 at 04:51:08PM -0700, Eric A. Davis wrote: > > > > I am working on a project (for McKusick's Adv. Kernel class) that allows > > user level processes to monitor filesystem activity on a file by file > > basis. The application program expresses interest in files by supplying > > the pathname of a file and a set of events to be monitored. These events > > can be create file, delete file, size changed, attributes changed, etc. > > YES! I've been missing this since I left my Amiga 5 years ago! > > Does the above imply watching for changes in directories, too? Ie, > file added to directory, notification sent... > > What level of notification? Do you get information saying 'file so > changed atime to XXX'/'file XXX added to directory', or just a flag > saying 'event so happened on descriptor so'? personally this is what the poll syscall should be used for... you just define a few new poll event.. of course there is a problem in that posix doesn't say you can obtain a fd for a directory like you can under FreeBSD.. of course I haven't looked at the code, so I'm not sure how feasable using poll is... that said, shouldn't there be a way to support more than 32 different events in poll? -- John-Mark Gurney Modem Rev/FAX: +1 541 346 9237 Cu Networking P.O. Box 5693, 97405 Live in Peace, destroy Micro$oft, support free software, run FreeBSD Don't trust anyone you don't have the source for To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message