From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Waychison Subject: Re: [PATCH 3/11] FUSE - device functions Date: Tue, 11 Jan 2005 12:30:01 -0500 Message-ID: <41E40D19.8010806@sun.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT Cc: akpm@osdl.org, torvalds@osdl.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Return-path: Received: from brmea-mail-3.Sun.COM ([192.18.98.34]:9409 "EHLO brmea-mail-3.sun.com") by vger.kernel.org with ESMTP id S261193AbVAKRdy (ORCPT ); Tue, 11 Jan 2005 12:33:54 -0500 Received: from phys-mpk-1 ([129.146.11.81]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id j0BHXmWE017422 for ; Tue, 11 Jan 2005 10:33:49 -0700 (MST) Received: from conversion-daemon.mpk-mail1.sfbay.sun.com by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IA500E01XWUAE@mpk-mail1.sfbay.sun.com> (original mail from Michael.Waychison@Sun.COM) for linux-fsdevel@vger.kernel.org; Tue, 11 Jan 2005 09:30:27 -0800 (PST) In-reply-to: To: Miklos Szeredi Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Miklos Szeredi wrote: > This adds the FUSE device handling functions. > > This contains the following files: > > o dev.c > - fuse device operations (read, write, release, poll) > - registers misc device > - support for sending requests to userspace > > Signed-off-by: Miklos Szeredi > diff -Nurp a/fs/fuse/Makefile b/fs/fuse/Makefile > --- a/fs/fuse/Makefile 2005-01-10 19:28:38.000000000 +0100 > +++ b/fs/fuse/Makefile 2005-01-10 19:28:38.000000000 +0100 > @@ -4,4 +4,4 @@ > > obj-$(CONFIG_FUSE) += fuse.o > > -fuse-objs := inode.o > +fuse-objs := dev.o inode.o > diff -Nurp a/fs/fuse/dev.c b/fs/fuse/dev.c > --- a/fs/fuse/dev.c 1970-01-01 01:00:00.000000000 +0100 > +++ b/fs/fuse/dev.c 2005-01-10 19:28:38.000000000 +0100 [...] > +static inline void block_sigs(sigset_t *oldset) > +{ > + sigset_t sigmask; > + > + siginitsetinv(&sigmask, sigmask(SIGKILL)); > + sigprocmask(SIG_BLOCK, &sigmask, oldset); sigmask shadows sigmask. I'm surprised this works actually. (I see that sigmask() is a macro..) - -- Mike Waychison Sun Microsystems, Inc. 1 (650) 352-5299 voice 1 (416) 202-8336 voice ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: The opinions expressed in this email are held by me, and may not represent the views of Sun Microsystems, Inc. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB5A0ZdQs4kOxk3/MRAvJfAJ9AqZqRWRKpRww2zJVaM4gsDq00lQCgjp4Q Bh+GXSiI/mAx3rghwFvT9UA= =U2iZ -----END PGP SIGNATURE-----