*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> libufs (3)              
Title
Content
Arch
Section
 

LIBUFS(3)

Contents


NAME    [Toc]    [Back]

     libufs -- operate on UFS filesystems from userland

LIBRARY    [Toc]    [Back]

     UFS File System Access Library (libufs, -lufs)

SYNOPSIS    [Toc]    [Back]

     #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>

DESCRIPTION    [Toc]    [Back]

     The libufs library and the functions it provides are used for implementing
 utilities which need to access a UFS filesystem 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 closed.

ERRORS    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

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

HISTORY    [Toc]    [Back]

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

AUTHORS    [Toc]    [Back]

     Juli Mallett <[email protected]>

     Additional design, feedback, and ideas were provided by
     Poul-Henning Kamp <[email protected]>.


FreeBSD 5.2.1			 June 04, 2003			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
glAccum Tru64 operate on the accumulation buffer
acbuf IRIX operate on the accumulation buffer
glaccum IRIX operate on the accumulation buffer
ufs_disk_close FreeBSD open and close userland UFS disks
ufs_disk_fillout FreeBSD open and close userland UFS disks
ufs_disk_fillout_blank FreeBSD open and close userland UFS disks
ufs_disk_write FreeBSD open and close userland UFS disks
geom_stats_snapshot_next FreeBSD userland API library for kernel GEOM subsystem
geom_stats_snapshot_reset FreeBSD userland API library for kernel GEOM subsystem
geom_stats_snapshot_timestamp FreeBSD userland API library for kernel GEOM subsystem
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service