libufs man page on FreeBSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
FreeBSD logo
[printable version]

LIBUFS(3)		 BSD Library Functions Manual		     LIBUFS(3)

     libufs — operate on UFS file systems from userland

     library “libufs”

     #include <sys/param.h>
     #include <sys/mount.h>
     #include <ufs/ufs/ufsmount.h>
     #include <ufs/ufs/dinode.h>
     #include <ufs/ffs/fs.h>
     #include <libufs.h>

     The libufs library and the functions it provides are used for implement‐
     ing utilities which need to access a UFS file system at a low level from
     userland.	Facilities provided are used to implement utilities such as
     newfs(8) and dumpfs(8).  The libufs library is designed to be simple, and
     to provide functions that are traditionally useful to have.

     A disk is represented as the type struct uufsd as defined in <libufs.h>.
     The structure is filled out, operations are performed, and the disk is

     Functions provided by libufs return -1 in every functional error situa‐
     tion.  They also set the d_error field of struct uufsd to a string
     describing the error.

     bread(3), bwrite(3), cgread(3), cgread1(3), cgwrite1(3), sbread(3),
     sbwrite(3), ufs_disk_close(3), ufs_disk_fillout(3),
     ufs_disk_fillout_blank(3), ufs_disk_write(3), ffs(7)

     The libufs(3) library first appeared in FreeBSD 5.0.

     Juli Mallett ⟨⟩

     Additional design, feedback, and ideas were provided by Poul-Henning Kamp

BSD				 June 4, 2003				   BSD

List of man pages available for FreeBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net