tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Subfile GSoC Mid-Checkpoint Status



On Mon, Jul 14, 2008 at 01:23:13PM -0700, Adam Burkepile wrote:
> On Jul 14, 2008, at 3:22 AM, Martin Husemann wrote:
> >On Mon, Jul 14, 2008 at 12:31:09AM -0700, Adam Burkepile wrote:
> >>project, I will, for the most part, continue to work on the system
> >>call and once I get it done, use it as a template for the other  
> >>system
> >>call, subfile_fopen, since they are almost exactly the same.
> >
> >What does subfile_fopen do? Sounds like a FILE* variant of  
> >subfile_open,
> >in which case it wouldn't be a system call but a libc function.
> >
> >Martin
> >
> 
> int
> subfile_open( const char* base_file , const char* base_file , int  
> open_flags)
> 
> int
> subfile_fopen( int base_file , const char* base_file , int open_flags)
> 
> So they both return normal int file descriptors, just like open would.  
> The difference is how you are getting the basefile. subfile_fopen is  
> for a basefile that you already have open and have the fd.

Other operating systems have similar functionality. Why are you rolling 
new syntax? Your subfile_open() looks like the same thing as Solaris's 
attropen().

Take care,

Bill

Attachment: pgp94dSnpX3Lb.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index