From owner-freebsd-hackers Sun Jan 18 14:49:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA22150 for hackers-outgoing; Sun, 18 Jan 1998 14:49:26 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA22110 for ; Sun, 18 Jan 1998 14:48:58 -0800 (PST) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id PAA01290; Sun, 18 Jan 1998 15:36:33 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp03.primenet.com, id smtpd001272; Sun Jan 18 15:36:31 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id PAA05447; Sun, 18 Jan 1998 15:36:29 -0700 (MST) From: Terry Lambert Message-Id: <199801182236.PAA05447@usr04.primenet.com> Subject: Re: socket ops To: guido@gvr.org (Guido van Rooij) Date: Sun, 18 Jan 1998 22:36:29 +0000 (GMT) Cc: tlambert@primenet.com, FreeBSD-hackers@FreeBSD.ORG In-Reply-To: <199801182228.XAA24830@gvr.gvr.org> from "Guido van Rooij" at Jan 18, 98 11:28:12 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > > Look for "struct fileops" in /sys/kern/*.c, and all will be revealed. > > > > The mode is referenced via VOP_GETATTR/VOP_SETATTR off of a vnode > > to get the FS specific method of getting/setting mode bits. If you > > do not have a backing object, you do not have mode bits. > > ?? There *is* a backing object. I am talking about UNIX domain > sockets here. That's a handle object, not a backing object. Go look for the "struct fileops" stuff. If there was a backing object, you'd reference the thing by vnode and you'd be able to fchmod it. Look at it this way; I call socketpair(). In which FS does the backing object (inode that I can reference by vnode) exist? Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.