(no subject)

Dan Nelson dnelson at allantgroup.com
Sun Feb 12 22:51:51 PST 2006


In the last episode (Feb 13), gs_stoller at juno.com said:
> > I don't really understand what it is you're looking for, but the source
> > code for *all* the FreeBSD `programs' is available at:
> 
> >     http://cvsweb.freebsd.org/
> 
> > It's also available through FTP, CVS, CVSup and is distributed as part
> > of the official release CD-ROMs.
> 
> > You can look for yourself, any time :)
> 
> Is there a  find  command [that takes patterns] so if I know the name
> (or part of the name) of a program of interest, I can find out the
> directory path to it so I can find it easily.  Also, where do I look
> for the basic sector i/o programs (the ones that underly the
> file-system, they are eventually called just before the hardware does
> the i/o] and what are their names?

In usderland, they're called open, lseek, read, and write.  Just open
the raw disk device and treat it like a regular file, and remember you
need to access it in 512-byte chunks.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list