Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fstatfs(2) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(2)

chown(2)

creat(2)

fchmod(2)

fchown(2)

link(2)

mknod(2)

pipe(2)

read(2)

statfs(2)

time(2)

times(2)

ustat(2)

write(2)

fs(4)

statfs(5)



     fstatfs(2)                 DG/UX 4.30                  fstatfs(2)



     NAME
          fstatfs - Get information about a mounted file system.

     SYNOPSIS
          #include <sys/types.h>
          #include <sys/statfs.h>

          int      fstatfs  (fildes, statfs_buffer, len, fstype)
          int                   fildes;
          struct statfs *       statfs_buffer;
          int                   len;
          int                   fstype;

     PARAMETERS
          filedes        File descriptor for any file within the file
                         system to be reported on.


          statfs_buffer  Where information about the file system is
                         returned.  Points to a statfs structure.


          len            Length of the users buffer.


          fstype         Type of the file system.  (see statfs.).

     DESCRIPTION
          <Fildes> is a valid, active descriptor referring to an open
          file of any type (ordinary, directory, FIFO, block special,
          character special, or symbolic link).  Terminal symbolic
          links are resolved in the system call that returned
          <filedes>.  Fstatfs returns the same information about the
          mounted file system that contains the file that statfs does.

     ACCESS CONTROL
          None.

     RETURN VALUE
          0              The file system information was successfully
                         returned.


          -1             An error occurred.  Errno is set to indicate
                         the error.

     EXCEPTIONS
          Errno may be set to one of the following error codes:


          EBADF          <Fildes> is not a valid, active file
                         descriptor.



     Licensed material--property of copyright holder(s)         Page 1





     fstatfs(2)                 DG/UX 4.30                  fstatfs(2)



          EFAULT         Some part of the statfs structure pointed to
                         by <statfs_buffer> lies outside of the
                         process's writable address space.


          EINVAL         <Fildes> refers to a pipe or socket.

     SEE ALSO
          The related manual sections:  chmod(2), chown(2), creat(2),
          fchmod(2), fchown(2), link(2), mknod(2), pipe(2), read(2),
          statfs(2), time(2), times(2), ustat(2), write(2),
          fs(4),
          statfs(5).










































     Licensed material--property of copyright holder(s)         Page 2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026