From mboxrd@z Thu Jan 1 00:00:00 1970 From: jnc@mercury.lcs.mit.edu (Noel Chiappa) Date: Sun, 14 Aug 2016 20:27:11 -0400 (EDT) Subject: [TUHS] fstat(2) on pipes? Message-ID: <20160815002711.3F3C418C096@mercury.lcs.mit.edu> > From: Warren Toomey > I'm trying to find out what fstat(2) returns when the file descriptor > is a pipe. In V6, it returns information about the file (inode) used as a temporary storage area for data which has been written into the pipe, but not yet read; i.e. it's an un-named file with a length which varies between 0 and 4KB. > xv6 has fstat() but returns an error if the file descriptor isn't > associated with an i-node. ?? All pipe file descriptors should have an inode? Noel