ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/unix2.htm

319 lines
35 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>Integrated File System APIs</title>
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<!-- Begin Header Records -->
<!-- file cleaned up -->
<!-- UNIX2 SCRIPT A converted by B2H R4.1 (346) (CMS) by V2DCIJB at -->
<!-- RCHVMW2 on 1 Jun 1999 at 16:15:50 -->
<!-- Change History: -->
<!-- 010717 JTROUS Add in new apis, pread, pread64, pwrite, pwrite64, -->
<!-- faccess, faccessx, Qlgccess, fchdir - DCR 98686, V5R2 -->
<!-- and qp0lror, V5R2, DCR 98844 -->
<!-- 010820 JTROUS Add in new api, qp0fptos, V5R2 -->
<!-- 020313 JTROUS Add QP0LCHSG, QP0LRTSG and exit points,V5R3,DCR98680 -->
<!-- 020410 RTHEIS Add fclear() and fclear64(), V5R3, DCR99138 -->
<!-- 020619 JETAYLOR replaced API and Exit listings with -->
<!-- pagegenerator output from javascript array -->
<!-- 021001 JETAYLOR replaced API and/or Exit listings with -->
<!-- pagegenerator output from javascript array -->
<!-- 030107 JETAYLOR replaced API and/or Exit listings with -->
<!-- pagegenerator output from javascript array -->
<!-- 030430 JETAYLOR replaced API and/or Exit listings with -->
<!-- pagegenerator output from javascript array -->
<!-- 031105 JETAYLOR replaced API and/or Exit listings with -->
<!-- pagegenerator output from javascript array -->
<!-- 031112 JETAYLOR replaced API and/or Exit listings with -->
<!-- pagegenerator output from javascript array -->
<!-- End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<a name="Top_Of_Page"></a>
<!-- Java sync-link -->
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
</script>
<h2>Integrated File System APIs</h2>
<p>The integrated file system is a part of i5/OS<SUP>(TM)</SUP> that supports stream
input/output and storage management similar to personal computer and UNIX<SUP>(R)</SUP>
operating systems while providing an integrating structure over all information
stored in your server.</p>
<p>The stream file support is designed for efficient use in client/server
applications. Stream files are particularly well suited for storing long
continuous strings of data such as the text of documents, images, audio, and
video.</p>
<p>The integrated file system provides a hierarchical directory structure that
supports UNIX-based open system standards, such as Portable Operating System
Interface for Computer Environments (POSIX)** and The Single UNIX<sup>(R)</sup>;
Specification. This file and directory structure provides the users of PC
operating systems with a familiar environment.</p>
<p>In addition to providing an interface for users and application to access
stream files, the integrated file system also provides a common interface to
access database files, documents and other objects stored on the server.</p>
<p>For more information, see the
<a href="../ifs/rzaaxkickoff.htm">Integrated file system</a> information
in the Files and file systems topic.</p>
<p>The integrated file system APIs are:</p>
<!-- ***** NOTE ***** Do not manually update text or links in this section. -->
<!-- Updates made in this section *will* be overlaid by automated tools -->
<!-- Notify User Technologies of needed updates to be made in XML for API finder.-->
<!--***************API BEGIN PASTE***************-->
<ul>
<li><A HREF="access.htm">access()</A> (Determine file accessibility) determines whether a file can be accessed in a particular manner.</li>
<li><A HREF="accessx.htm">accessx()</A> (Determine File Accessibility for a Class of Users) determines whether a file can be accessed by a specified class of users in a particular manner.</li>
<li><A HREF="chdir.htm">chdir()</A> (Change current directory) makes the directory named by path the new current directory.</li>
<li><A HREF="chmod.htm">chmod()</A> (Change file authorizations) changes the mode of the file or directory specified in path.</li>
<li><A HREF="chown.htm">chown()</A> (Change owner and group of file) changes the owner and group of a file.</li>
<li><A HREF="close.htm">close()</A> (Close file descriptor) closes a descriptor, fildes.</li>
<li><A HREF="closedir.htm">closedir()</A> (Close directory) closes the directory stream indicated by dirp.</li>
<li><A HREF="creat.htm">creat()</A> (Create new file or rewrite existing file) creates a new file or rewrites an existing file so that it is truncated to zero length.</li>
<li><A HREF="creat64.htm">creat64()</A> (Create new file or rewrite existing file (large file enabled)) creates a new file or rewrites an existing file so that it is truncated to zero length.</li>
<li><A HREF="dossfllk.htm">DosSetFileLocks()</A> (Lock and unlock a range of an open file) locks and unlocks a range of an open file.</li>
<li><A HREF="dossfl64.htm">DosSetFileLocks64()</A> (Lock and unlock a range of an open file (large file enabled)) locks and unlocks a range of an open file.</li>
<li><A HREF="dossrmfh.htm">DosSetRelMaxFH()</A> (Change maximum number of file descriptors) requests that the system change the maximum number of file descriptors for the calling process (job).</li>
<li><A HREF="dup.htm">dup()</A> (Duplicate open file descriptor) returns a new open file descriptor.</li>
<li><A HREF="dup2.htm">dup2()</A> (Duplicate open file descriptor to another descriptor) returns a descriptor with the value fildes2.</li>
<li><A HREF="faccessx.htm">faccessx()</A> (Determine File Accessibility for a Class of Users) determines whether a file can be accessed by a specified class of users in a particular manner.</li>
<li><A HREF="fchdir.htm">fchdir()</A> (Change Current Directory by Descriptor) makes the directory named by fildes the new current directory.</li>
<li><A HREF="fchmod.htm">fchmod()</A> (Change file authorizations by descriptor) sets the file permission bits of the open file identified by fildes, its file descriptor.</li>
<li><A HREF="fchown.htm">fchown()</A> (Change owner and group of file by descriptor) changes the owner and group of a file.</li>
<li><A HREF="fclear.htm">fclear()</A> (Write (Binary Zeros) to Descriptor) clears a file.</li>
<li><A HREF="fclear64.htm">fclear64()</A> (Write (Binary Zeros) to Descriptor (Large File Enabled)) clears a file.</li>
<li><A HREF="fcntl.htm">fcntl()</A> (Perform file control command) performs various actions on open descriptors.</li>
<li><A HREF="fpathcon.htm">fpathconf()</A> (Get configurable path name variables by descriptor) determines the value of a configuration variable (name) associated with a particular file descriptor (file_descriptor).</li>
<li><A HREF="fstat.htm">fstat()</A> (Get file information by descriptor) gets status information about the file specified by the open file descriptor file_descriptor and stores the information in the area of memory indicated by the buf argument.</li>
<li><A HREF="fstat64.htm">fstat64()</A> (Get file information by descriptor (large file enabled)) gets status information about the file specified by the open file descriptor file_descriptor and stores the information in the area of memory indicated by the buf argument.</li>
<li><A HREF="fstatvfs.htm">fstatvfs()</A> (Get File System Information by Descriptor) gets status information about the file system that contains the file referenced by the open file descriptor fildes.</li>
<li><A HREF="fstatv64.htm">fstatvfs64()</A> (Get file system information by descriptor (64-bit enabled)) gets status information about the file system that contains the file referred to by the open file descriptor fildes.</li>
<li><A HREF="fsync.htm">fsync()</A> (Synchronize changes to file) transfers all data for the file indicated by the open file descriptor file_descriptor to the storage device associated with file_descriptor.</li>
<li><A HREF="ftruncat.htm">ftruncate()</A> (Truncate file) truncates the file indicated by the open file descriptor file_descriptor to the indicated length.</li>
<li><A HREF="ftrunc64.htm">ftruncate64()</A> (Truncate file (large file enabled)) truncates the file indicated by the open file descriptor file_descriptor to the indicated length.</li>
<li><A HREF="getcwd.htm">getcwd()</A> (Get Current Directory) determines the absolute path name of the current directory and stores it in buf.</li>
<li><A HREF="getegid.htm">getegid</A> (Get effective group ID) returns the effective group ID (gid) of the calling thread.</li>
<li><A HREF="geteuid.htm">geteuid()</A> (Get effective user ID) returns the effective user ID (uid) of the calling thread.</li>
<li><A HREF="getgid.htm">getgid()</A> (Get real group ID) returns the real group ID (gid) of the calling thread.</li>
<li><A HREF="getgrgid.htm">getgrgid()</A> (Get group information using group ID) returns a pointer to an object of type struct group containing an entry from the user database with a matching gid.</li>
<li><A HREF="gtgrgidr.htm">getgrgid_r()</A> (Get group information using group ID) updates the group structure pointed to by grp and stores a pointer to that structure in the location pointed to by result.</li>
<li><A HREF="gtggir64.htm">getgrgid_r_ts64()</A> (Get group information using group ID) updates the group structure pointed to by grp and stores a pointer to that structure in the location pointed to by result.</li>
<li><A HREF="getgrnam.htm">getgrnam()</A> (Get group information using group name) returns a pointer to an object of type struct group containing an entry from the user database with a matching name.</li>
<li><A HREF="gtgrnamr.htm">getgrnam_r()</A> (Get group information using group name) updates the group structure pointed to by grp and stores a pointer to that structure in the location pointed to by result.</li>
<li><A HREF="gtgnar64.htm">getgrnam_r_ts64()</A> (Get group information using group name) updates the group structure pointed to by grp and stores a pointer to that structure in the location pointed to by result.</li>
<li><A HREF="getgroup.htm">getgroups()</A> (Get group IDs) returns the number of primary and supplementary group IDs associated with the calling thread without modifying the array pointed to by the grouplist argument.</li>
<li><A HREF="getpwnam.htm">getpwnam()</A> (Get user information for user name) returns a pointer to an object of type struct passwd containing an entry from the user database with a matching name.</li>
<li><A HREF="gtpwnamr.htm">getpwnam_r()</A> (Get User Information for User Name) updates the<em>passwd</em>structure pointed to by<em>pwd</em>and stores a pointer to that structure in the location pointed to by<em>result</em>.</li>
<li><A HREF="gtpnar64.htm">getpwnam_r_ts64()</A> (Get user information for user name) updates the passwd structure pointed to by pwd and stores a pointer to that structure in the location pointed to by result.</li>
<li><A HREF="getpwuid.htm">getpwuid()</A> (Get user information for user ID) returns a pointer to an object of type struct passwd containing an entry from the user database with a matching uid.</li>
<li><A HREF="gtpwuidr.htm">getpwuid_r()</A> (Get User Information for User ID) updates the<em>passwd</em>structure pointed to by<em>pwd</em>and stores a pointer to that structure in the location pointed to by<em>result</em>.</li>
<li><A HREF="gtpuir64.htm">getpwuid_r_ts64()</A> (Get user information for user ID) updates the passwd structure pointed to by pwd and stores a pointer to that structure in the location pointed to by result.</li>
<li><A HREF="getuid.htm">getuid()</A> (Get real user ID) returns the real user ID (uid) of the calling thread.</li>
<li><A HREF="ioctl.htm">ioctl()</A> (Perform I/O control request) performs control functions (requests) on a file descriptor.</li>
<li><A HREF="lchown.htm">lchown()</A> (Change owner and group of symbolic link) changes the owner and group of a file. If the named file is a symbolic link, lchown() changes the owner or group of the link itself rather than the object to which the link points.</li>
<li><A HREF="link.htm">link()</A> (Create link to file) provides an alternative path name for the existing file, so that the file can be accessed by either the existing name or the new name.</li>
<li><A HREF="lseek.htm">lseek()</A> (Set file read/write offset) changes the current file offset to a new position in the file.</li>
<li><A HREF="lseek64.htm">lseek64()</A> (Set file read/write offset (large file enabled)) changes the current file offset to a new position in the file.</li>
<li><A HREF="lstat.htm">lstat()</A> (Get file or link information) gets status information about a specified file and places it in the area of memory pointed to by buf.</li>
<li><A HREF="lstat64.htm">lstat64()</A> (Get file or link information (large file enabled)) gets status information about a specified file and places it in the area of memory pointed to by buf.</li>
<li><A HREF="mkdir.htm">mkdir()</A> (Make directory) creates a new, empty directory whose name is defined by path.</li>
<li><A HREF="mkfifo.htm">mkfifo()</A> (Make FIFO special file) creates a new FIFO special file (FIFO) whose name is defined by path.</li>
<li><A HREF="mmap.htm">mmap()</A> (Memory map a file) establishes a mapping between a process' address space and a stream file.</li>
<li><A HREF="mmap64.htm">mmap64()</A> (Memory map a stream file (large file enabled)) is used to establish a memory mapping of a file.</li>
<li><A HREF="mprotect.htm">mprotect()</A> (Change access protection for memory mapping) is used to change the access protection of a memory mapping to that specified by protection.</li>
<li><A HREF="msync.htm">msync()</A> (Synchronize modified data with mapped file) can be used to write modified data from a shared mapping (created using the mmap() function) to non-volatile storage or invalidate privately mapped pages.</li>
<li><A HREF="munmap.htm">munmap()</A> (Remove memory mapping) removes addressability to a range of memory mapped pages of a process's address space.</li>
<li><A HREF="open.htm">open()</A> (Open file) opens a file and returns a number called a file descriptor.</li>
<li><A HREF="open64.htm">open64()</A> (Open file (large file enabled)) opens a file and returns a number called a file descriptor.</li>
<li><A HREF="opendir.htm">opendir()</A> (Open directory) opens a directory so that it can be read with the readdir() function.</li>
<li><A HREF="pathconf.htm">pathconf()</A> (Get configurable path name variables) lets an application determine the value of a configuration variable (name) associated with a particular file or directory (path).</li>
<li><A HREF="pipe2.htm">pipe()</A> (Create interprocess channel) creates a data pipe and places two file descriptors, one each into the arguments fildes[0] and fildes[1], that refer to the open file descriptions for the read and write ends of the pipe, respectively.</li>
<li><A HREF="pread.htm">pread()</A> (Read from Descriptor with Offset) reads<em>nbyte</em>bytes of input into the memory area indicated by<em>buf</em>.</li>
<li><A HREF="pread64.htm">pread64()</A> (Read from Descriptor with Offset (large file enabled)) reads<em>nbyte</em>bytes of input into the memory area indicated by<em>buf</em>.</li>
<li><A HREF="pwrite.htm">pwrite()</A> (Write to Descriptor with Offset) writes<em>nbyte</em>bytes from<em>buf</em>to the file associated with<em>file_descriptor</em>.</li>
<li><A HREF="pwrite64.htm">pwrite64()</A> (Write to Descriptor with Offset (large file enabled)) writes<em>nbyte</em>bytes from<em>buf</em>to the file associated with<em>file_descriptor</em>.</li>
<li><A HREF="accessu.htm">QlgAccess()</A> (Determine file accessibility (using NLS-enabled path name)) determines whether a file can be accessed in a particular manner.</li>
<li><A HREF="accessxu.htm">QlgAccessx()</A> (Determine File Accessibility for a Class of Users (using NLS-enabled path name)) determines whether a file can be accessed in a particular manner by a specified class of users.</li>
<li><A HREF="chdiru.htm">QlgChdir()</A> (Change current directory (using NLS-enabled path name)) makes the directory named by path the new current directory.</li>
<li><A HREF="chmodu.htm">QlgChmod()</A> (Change file authorizations (using NLS-enabled path name)) changes the mode of the file or directory specified in path.</li>
<li><A HREF="chownu.htm">QlgChown()</A> (Change owner and group of file (using NLS-enabled path name)) changes the owner and group of a file.</li>
<li><A HREF="creatu.htm">QlgCreat()</A> (Create or rewrite file (using NLS-enabled path name)) creates a new file or rewrites an existing file so that it is truncated to zero length.</li>
<li><A HREF="creat64u.htm">QlgCreat64()</A> (Create or rewrite a file (large file enabled and using NLS-enabled path name)) creates a new file or rewrites an existing file so that it is truncated to zero length.</li>
<li><A HREF="conqsysnu.htm">QlgCvtPathToQSYSObjName()</A> (Resolve integrated file system path name into QSYS object name (using NLS-enabled path name)) resolves a given integrated file system path name into the three-part QSYS.LIB file system name: library, object, and member.</li>
<li><A HREF="qgetattru.htm">QlgGetAttr()</A> (Get attributes (using NLS-enabled path name)) gets one or more attributes, on a single call, for the object that is referred to by the input Path_Name.</li>
<li><A HREF="getcwdu.htm">QlgGetcwd()</A> (Get current directory (using NLS-enabled path name)) determines the absolute path name of the current directory and returns a pointer to it.</li>
<li><A HREF="getpthffu.htm">QlgGetPathFromFileID()</A> (Get path name of object from its file ID (using NLS-enabled path name)) determines an absolute path name of the file identified by fileid and stores it in buf.</li>
<li><A HREF="getpwnamu.htm">QlgGetpwnam()</A> (Get user information for user name (using NLS-enabled path name)) returns a pointer to an object of type struct qplg_passwd containing an entry from the user database with a matching name.</li>
<li><A HREF="gtpwnamru.htm">QlgGetpwnam_r()</A> (Get user information for user name (using NLS-enabled path name)) updates the qplg_passwd structure pointed to by pwd and stores a pointer to that structure in the location pointed to by result.</li>
<li><A HREF="getpwuidu.htm">QlgGetpwuid()</A> (Get user information for user ID (using NLS-enabled path name)) returns a pointer to an object of type struct qplg_passwd containing an entry from the user database with a matching user ID (UID).</li>
<li><A HREF="gtpwuidru.htm">QlgGetpwuid_r()</A> (Get user information for user ID (using NLS-enabled path name)) updates the qplg_passwd structure pointed to by pwd and stores a pointer to that structure in the location pointed to by result.</li>
<li><A HREF="lchownu.htm">QlgLchown()</A> (Change owner and group of symbolic link (using NLS-enabled path name)) changes the owner and group of a file.</li>
<li><A HREF="linku.htm">QlgLink()</A> (Create link to file (using NLS-enabled path name)) provides an alternative path name for the existing file so that the file can be accessed by either the existing name or the new name.</li>
<li><A HREF="lstatu.htm">QlgLstat()</A> (Get file or link information (using NLS-enabled path name)) gets status information about a specified file and places it in the area of memory pointed to by buf.</li>
<li><A HREF="lstat64u.htm">QlgLstat64()</A> (Get file or link information (large file enabled and using NLS-enabled path name)) gets status information about a specified file and places it in the area of memory pointed to by buf.</li>
<li><A HREF="mkdiru.htm">QlgMkdir()</A> (Make directory (using NLS-enabled path name)) creates a new, empty directory whose name is defined by path.</li>
<li><A HREF="mkfifou.htm">QlgMkfifo()</A> (Make FIFO special file (using NLS-enabled path name)) creates a new FIFO special file whose name is defined by path.</li>
<li><A HREF="openu.htm">QlgOpen()</A> (Open a file (using NLS-enabled path name)) opens a file or creates a new, empty file whose name is defined by path and returns a number called a file descriptor.</li>
<li><A HREF="open64u.htm">QlgOpen64()</A> (Open file (large file enabled and using NLS-enabled path name)) opens a file and returns a number called a file descriptor.</li>
<li><A HREF="opendiru.htm">QlgOpendir()</A> (Open directory (using NLS-enabled path name)) opens a directory so it can be read.</li>
<li><A HREF="pathconfu.htm">QlgPathconf()</A> (Get configurable path name variables (using NLS-enabled path name)) lets an application determine the value of a configuration variable (name) associated with a particular file or directory (path).</li>
<li><A HREF="qprstreeu.htm">QlgProcessSubtree()</A> (Process a path name (using NLS-enabled path name)) searches the directory tree under a specific path name.</li>
<li><A HREF="readdiru.htm">QlgReaddir()</A> (Read directory entry (using NLS-enabled path name)) returns a pointer to a structure describing the next directory entry in the directory stream associated with dirp.</li>
<li><A HREF="readdirru.htm">QlgReaddir_r()</A> (Read directory entry (using NLS-enabled path name)) initializes a structure that is referenced by entry to represent the next directory entry in the directory stream that is associated with dirp.</li>
<li><A HREF="readlinku.htm">QlgReadlink()</A> (Read value of symbolic link (using NLS-enabled path name)) places the contents of the symboliclink path in the buffer buf.</li>
<li><A HREF="renamekpu.htm">QlgRenameKeep()</A> (Rename file or directory, keep "new" if it exists (using NLS-enabled path name)) renames a file or a directory specified by old to the name given by new.</li>
<li><A HREF="renameunu.htm">QlgRenameUnlink()</A> (Rename file or directory, unlink "new" if it exists (using NLS-enabled path name)) renames a file or a directory specified by old to the name given by new.</li>
<li><A HREF="rmdiru.htm">QlgRmdir()</A> (Remove directory (using NLS-enabled path name)) removes a directory, path, provided that the directory is empty; that is, the directory contains no entries other than 'dot' (.) or 'dot-dot' (..).</li>
<li><A HREF="qsavstgfu.htm">QlgSaveStgFree()</A> (Save Storage Free (using NLS-enabled path name)) calls a user-supplied exit program to save an *STMF iSeries object type and, upon successful completion of the exit program, frees the storage for the object and marks the object as storage freed.</li>
<li><A HREF="qsetattru.htm">QlgSetAttr()</A> (Set attributes (using NLS-enabled path name)) sets one of a set of defined attributes, on each call, for the object that is referred to by the input *Path_Name.</li>
<li><A HREF="statu.htm">QlgStat()</A> (Get file information (using NLS-enabled path name)) gets status information about a specified file and places it in the area of memory pointed to by the buf argument.</li>
<li><A HREF="stat64u.htm">QlgStat64()</A> (Get file information (large file enabled and using NLS-enabled path name)) gets status information about a specified file and places it in the area of memory pointed to by the buf argument.</li>
<li><A HREF="statvfsu.htm">QlgStatvfs()</A> (Get file system information (using NLS-enabled path name)) gets status information about the file system that contains the file named by the path argument.</li>
<li><A HREF="statvfs64u.htm">QlgStatvfs64()</A> (Get file system information (64-bit enabled and using NLS-enabled path name)) gets status information about the file system that contains the file named by the path argument.</li>
<li><A HREF="symlinku.htm">QlgSymlink()</A> (Make symbolic link (using NLS-enabled path name)) creates the symbolic link named by slink with the value specified by pname.</li>
<li><A HREF="unlinku.htm">QlgUnlink()</A> (Remove link to file (using NLS-enabled path name)) removes a directory entry that refers to a file.</li>
<li><A HREF="utimeu.htm">QlgUtime()</A> (Set file access and modification times (using NLS-enabled path name)) sets the access and modification times of path to the values in the utimbuf structure.</li>
<li><A HREF="qp0fptos.htm">QP0FPTOS</A> (Perform Miscellaneous File System Functions) performs a variety of file system functions.</li>
<li><A HREF="chgscansgn.htm">QP0LCHSG</A> (Change Scan Signature) changes the scan key signature associated with a specific scan key.</li>
<li><A HREF="conqsysn.htm">Qp0lCvtPathToQSYSObjName()</A> (Resolve integrated file system path name into QSYS object name) resolves a given integrated file system path name into the three-part QSYS.LIB file system name: library, object, and member.</li>
<li><A HREF="qp0lflop.htm">QP0LFLOP</A> (Perform file system operation) performs miscellaneous file system operations.</li>
<li><A HREF="qgetattr.htm">Qp0lGetAttr()</A> (Get attributes) gets one or more attributes, on a single call, for the object that is referred to by the input Path_Name.</li>
<li><A HREF="getpthff.htm">Qp0lGetPathFromFileID()</A> (Get path name of object from its file ID) determines an absolute path name of the file identified by fileid and stores it in buf.</li>
<li><A HREF="qp0lopen.htm">Qp0lOpen()</A> (Open file) opens a file and returns a number called a file descriptor.</li>
<li><A HREF="qprstree.htm">Qp0lProcessSubtree()</A> (Process a path name) searches the directory tree under a specific path name. It selects and passes objects, one at a time, to an exit program that is identified on its call. The exit program can be either a procedure or a program.</li>
<li><A HREF="renamekp.htm">Qp0lRenameKeep()</A> (Rename file or directory, keep<em>new</em>if it exists) renames a file or a directory specified by old to the name given by new.</li>
<li><A HREF="renameun.htm">Qp0lRenameUnlink()</A> (Rename file or directory, unlink<em>new</em>if it exists) renames a file or a directory specified by old to the name given by new.</li>
<li><A HREF="qp0lror.htm">QP0LROR</A> (Retrieve Object References) retrieves information about integrated file system references on an object.</li>
<li><A HREF="qp0lrro.htm">QP0LRRO</A> (Retrieve Referenced Objects) retrieves usage information about integrated file system objects that have been referenced by a specified job.</li>
<li><A HREF="rtvscansgn.htm">QP0LRTSG</A> (Retrieve Scan Signature) retrieves the scan key signature associated with a specific scan key.</li>
<li><A HREF="qsavstgf.htm">Qp0lSaveStgFree()</A> (Save Storage Free) calls a user-supplied exit program to save an *STMF iSeries object type and, upon successful completion of the exit program, frees the storage for the object and marks the object as storage freed.</li>
<li><A HREF="qsetattr.htm">Qp0lSetAttr()</A> (Set attributes) renames a file or a directory specified by old to the name given by new.</li>
<li><A HREF="qp0lunlk.htm">Qp0lUnlink()</A> (Remove link to file) removes a directory entry that refers to a file.</li>
<li><A HREF="pipe.htm">Qp0zPipe()</A> (Create interprocess channel with sockets) creates a data pipe that can be used by two processes.</li>
<li><A HREF="qsygetgroups.htm">qsygetgroups()</A> (Get Supplemental Group IDs) returns the supplemental group IDs associated with the calling thread.</li>
<li><A HREF="qsyseteg.htm">qsysetegid()</A> (Set effective group ID) sets the effective group ID to gid.</li>
<li><A HREF="qsyseteu.htm">qsyseteuid()</A> (Set effective user ID) sets the effective user ID to uid.</li>
<li><A HREF="qsysetgi.htm">qsysetgid()</A> (Set group ID) sets the real, effective and saved groups to gid.</li>
<li><A HREF="qsysetgroups.htm">qsysetgroups()</A> (Set Supplemental Group IDs) sets the supplementary group IDs of the calling thread.</li>
<li><A HREF="qsystreg.htm">qsysetregid()</A> (Set real and effective group IDs) is used to set the real and effective group IDs. The real and effective group IDs may be set to different values in the same call.</li>
<li><A HREF="qsystreu.htm">qsysetreuid()</A> (Set real and effective user IDs) sets the real and effective user IDs to the values specified by ruid and euid.</li>
<li><A HREF="qsysetui.htm">qsysetuid()</A> (Set user ID) sets the real, effective, and saved user ID to uid.</li>
<li><A HREF="qznfrtve.htm">QZNFRTVE</A> (Retrieve network file system export entries) returns the list of Network File System (NFS) export entries for objects currently exported to NFS clients or for objects referenced in the /etc/exports file.</li>
<li><A HREF="read.htm">read()</A> (Read from Descriptor) reads nbyte bytes of input into the memory area indicated by buf.</li>
<li><A HREF="readdir.htm">readdir()</A> (Read directory entry) returns a pointer to a dirent structure describing the next directory entry in the directory stream associated with dirp.</li>
<li><A HREF="readdirr.htm">readdir_r()</A> (Read directory entry) initializes the dirent structure that is referenced by entry to represent the next directory entry in the directory stream that is associated with dirp.</li>
<li><A HREF="readdirrts64.htm">readdir_r_ts64()</A> (Read directory entry) initializes the dirent structure that is referenced by entry to represent the next directory entry in the directory stream that is associated with dirp.</li>
<li><A HREF="readlink.htm">readlink()</A> (Read value of symbolic link) places the contents of the symbolic link path in the buffer buf.</li>
<li><A HREF="readv.htm">readv()</A> (Read from Descriptor Using Multiple Buffers) is used to receive data from a file or socket descriptor.</li>
<li><A HREF="renamefs.htm">rename()</A> (Rename file or directory) is used to rename a file or directory with the semantics of Qp0lRenameUnlink() or Qp0lRenameKeep().</li>
<li><A HREF="rewinddi.htm">rewinddir()</A> (Reset directory stream) 'rewinds' the position of an open directory stream to the beginning.</li>
<li><A HREF="rmdir.htm">rmdir()</A> (Remove directory) removes a directory, path, provided that the directory is empty; that is, the directory contains no entries other than 'dot' (.) or 'dot-dot' (..).</li>
<li><A HREF="stat.htm">stat()</A> (Get file information) gets status information about a specified file and places it in the area of memory pointed to by the buf argument.</li>
<li><A HREF="stat64.htm">stat64()</A> (Get file information (large file enabled)) gets status information about a specified file and places it in the area of memory pointed to by the buf argument.</li>
<li><A HREF="statvfs.htm">statvfs()</A> (Get file system information) gets status information about the file system that contains the file named by the path argument.</li>
<li><A HREF="statvf64.htm">statvfs64()</A> (Get file system information (large file enabled)) gets status information about the file system that contains the file named by the path argument.</li>
<li><A HREF="symlink.htm">symlink()</A> (Make symbolic link) creates the symbolic link named by slink with the value specified by pname.</li>
<li><A HREF="sysconf.htm">sysconf()</A> (Get system configuration variables) returns the value of a system configuration option.</li>
<li><A HREF="umask.htm">umask()</A> (Set authorization mask for job) changes the value of the file creation mask for the current job to the value specified in cmask.</li>
<li><A HREF="unlink.htm">unlink()</A> (Remove link to file) removes a directory entry that refers to a file.</li>
<li><A HREF="utime.htm">utime()</A> (Set file access and modification times) sets the access and modification times of path to the values in the utimbuf structure.</li>
<li><A HREF="write.htm">write()</A> (Write to Descriptor) writes nbyte bytes from buf to the file or socket associated with file_descriptor.</li>
<li><A HREF="writev.htm">writev()</A> (Write to Descriptor Using Multiple Buffers) is used to write data to a file or socket descriptor.</li>
</ul>
<!--***************API END PASTE***************-->
<p>The integrated file system exit programs are:</p>
<!-- ***** NOTE ***** Do not manually update text or links in this section. -->
<!-- Updates made in this section *will* be overlaid by automated tools -->
<!-- Notify User Technologies of needed updates to be made in XML for API finder.-->
<!--***************EXIT PROGRAM BEGIN PASTE***************-->
<ul>
<li><A HREF="ifscloseexit.htm">Integrated File System Scan on Close exit program</A> is called during close processing such as with the <a href="close.htm">close()</a>API. This exit program must be provided by the user.</li>
<li><A HREF="ifsopenexit.htm">Integrated File System Scan on Open exit program</A> is called during open processing such as with the <a href="open.htm">open()</a>API. This exit program must be provided by the user.</li>
<li><A HREF="xprstree.htm">Process a Path Name</A> is called by the <a href="qprstree.htm">Qp0lProcessSubtree()</a>API for each object in the API's search that meets the caller's selection criteria. This exit program must be provided by the user.</li>
<li><A HREF="XSAVSTGF.htm">Save Storage Free</A> is called by the <a href="qsavstgf.htm">Qp0lSaveStgFree()</a> API to save an *STMF iSeries object type.</li>
</ul>
<!--***************EXIT PROGRAM END PASTE***************-->
<p>In addition to the functions above, the following functions, which are
described in the <a href="unix8.htm">Sockets APIs</a>, also can operate on
files in the integrated file system.</p>
<strong>Other Functions that Operate on Files</strong>
<table border width="100%">
<tr>
<th align="left" valign="top">Function</th>
<th align="left" valign="top">Description</th>
</tr>
<tr>
<td align="left" valign="top" width="40%"><a href="gvsoc.htm">givedescriptor()</a></td>
<td align="left" valign="top" width="60%">Give file access to another job
<p>Give socket access to another job</p>
</td>
</tr>
<tr>
<td align="left" valign="top"><a href="sselect.htm">select()</a></td>
<td align="left" valign="top">Check I/O status of multiple file descriptors
<p>Wait for events on multiple sockets</p>
</td>
</tr>
<tr>
<td align="left" valign="top"><a href="tksoc.htm">takedescriptor()</a></td>
<td align="left" valign="top">Take file access from another job
<p>Take socket access from another job</p>
</td>
</tr>
</table>
<p><strong>Note:</strong> These functions use header (include) files from the
library QSYSINC, which is optionally installable. Make sure QSYSINC is
installed on your system before using any of the functions. See <a href=
"unix13.htm">Header Files for UNIX-Type Functions</a>) for the file and member
name of each header file.</p>
<p>Many of the terms used in this chapter, such as current directory, file
system, path name, and link, are explained in the <a href=
"../ifs/rzaaxkickoff.htm">Integrated file system</a> information. The API
<a href="../apiref/apiexmp.htm"> Examples</a> also shows an example of using several
integrated file system functions.</p>
<p>To determine whether a particular function updates the access, change, and
modification times of the object on which it performs an operation, see
<a href="ifstime.htm">Integrated File System APIs--Time Stamp Updates</a>.</p>
<br>
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
"unix.htm">UNIX-Type APIs</a> | <a href="aplist.htm">APIs by category</a></td>
</tr>
</table>
</center>
</body>
</html>