[comp.sources.wanted] mount

pahlow@einstein.eds.com (Gary Pahlow) (03/12/91)

Does anyone have or know where I can get the source code for the mount()
function that is in section 2 of the man pages? I am looking for the source
that is described in that man section and runs on Sun workstations. This is
different than the mount command entered from the command line. The mount	command entered on the command line calls this mount function in section 2.

Thanks in advance,

Gary Pahlow - pahlow@einstein.eds.com
Electronic Data Systems
Troy, MI

-- 
gary pahlow

jik@athena.mit.edu (Jonathan I. Kamens) (03/15/91)

In article <374@einstein.eds.com>, pahlow@einstein.eds.com (Gary Pahlow) writes:
|> Does anyone have or know where I can get the source code for the mount()
|> function that is in section 2 of the man pages? I am looking for the source
|> that is described in that man section and runs on Sun workstations. This is
|> different than the mount command entered from the command line. The mount	command entered on the command line calls this mount function in section 2.

  The manual pages in section 2 document system calls, rather than library
functions.

  Therefore, all you are going to find if you get the source to the library
function mount is an immediate "mount" system call.

  So, what you are probably actually asking for is the sources in the kernel
that actually handle mount requests.  First of all, I have to ask, why do you
want this?  Second, I have to point out that in most cases you are probably
not going to be able to get it, because kernel sources tend to be proprietary,
and the SunOS sources are probably no exception to this.

  You might be able to see *one implementation* of the mount system call in
the 4.3reno BSD sources, if they've got a version that is freely
redistributable.  You can find the freely redistributable 4.3reno sources in
the directory bsd-sources on uunet.uu.net.  One file you might find
interesting is /bsd-sources/sys/ufs/ufs_vfsops.c.

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik@Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710