10139N/A<!
DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
10139N/A<!
ENTITY cmd "TIFFWriteDirectory">
10139N/A<!
ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A<
refentry id="TIFFWriteDirectory-3tiff">
10139N/A<
refmeta><
refentrytitle>TIFFWriteDirectory</
refentrytitle><
manvolnum>3tiff
10139N/A<
refmiscinfo class="date">05 Apr 2004</
refmiscinfo>
10139N/A<
refmiscinfo class="sectdesc">&man3;</
refmiscinfo>
10139N/A<
refmiscinfo class="software">&release;</
refmiscinfo>
10139N/A<
refmiscinfo class="arch">generic</
refmiscinfo>
10139N/A<
refmiscinfo class="copyright">&suncopy;</
refmiscinfo>
10139N/A<
indexterm><
primary>TIFFWriteDirectory</
primary></
indexterm><
indexterm><
primary>
10139N/Awrite the current directory in an open TIFF file</
primary></
indexterm>
10139N/A<
refnamediv id="TIFFWriteDirectory-3tiff-name"><
refname>TIFFWriteDirectory
10139N/A</
refname><
refpurpose>write the current directory in an open TIFF file</
refpurpose>
10139N/A<
refsect1 id="TIFFWriteDirectory-3tiff-synp"><
title>&synp-tt;</
title>
10139N/Aint TIFFWriteDirectory(TIFF* tif)</
programlisting>
10139N/A<
refsect1 id="TIFFWriteDirectory-3tiff-desc"><
title>&desc-tt;</
title>
10139N/A<
para>Write the contents of the current directory to the file and set up to
10139N/Acreate a new subfile in the same file. Applications only need to call <
literal>
10139N/ATIFFWriteDirectory</
literal> when writing multiple subfiles to a single TIFF
10139N/Afile. <
literal>TIFFWriteDirectory</
literal> is automatically called by <
literal>
10139N/ATIFFClose</
literal> and <
literal>TIFFFlush</
literal> to write a modified directory
10139N/Aif the file is open for writing.</
para>
10139N/A<
refsect1 id="TIFFWriteDirectory-3tiff-exde"><
title>&exde-tt;</
title>
10139N/A<
refsect2 id="TIFFWriteDirectory-3tiff-exde-diags">
10139N/A<
para>All error messages are directed to the <
literal>TIFFError(3tiff)</
literal>
10139N/A<
varlistentry><
term>Error post-encoding before directory write.</
term><
listitem>
10139N/A<
para>Before writing the contents of the current directory, any pending data
10139N/Ais flushed. This message indicates that an error occurred while doing this.
10139N/A<
varlistentry><
term>Error flushing data before directory write.</
term><
listitem>
10139N/A<
para>Before writing the contents of the current directory, any pending data
10139N/Ais flushed. This message indicates that an error occurred while doing this.
10139N/A<
varlistentry><
term>Cannot write directory, out of space.</
term><
listitem>
10139N/A<
para>There was not enough space to allocate a temporary area for the directory
10139N/A<
varlistentry><
term>Error writing directory count.</
term><
listitem><
para>
10139N/AA write error occurred when writing the count of fields in the directory.
10139N/A<
varlistentry><
term>Error writing directory contents.</
term><
listitem><
para>
10139N/AA write error occurred when writing the directory fields.</
para>
10139N/A<
varlistentry><
term>Error writing directory link.</
term><
listitem><
para>A
10139N/Awrite error occurred when writing the link to the next directory.</
para>
10139N/A<
varlistentry><
term>Error writing data for field "%s".</
term><
listitem><
para>
10139N/AA write error occurred when writing indirect data for the specified field.
10139N/A<
varlistentry><
term>Error writing TIFF header.</
term><
listitem><
para>A write
10139N/Aerror occurred when rewriting header at the front of the file.</
para>
10139N/A<
varlistentry><
term>Error fetching directory count.</
term><
listitem><
para>
10139N/AA read error occurred when fetching the directory count field for a previous
10139N/Adirectory. This can occur when setting up a link to the directory that is
10139N/A<
varlistentry><
term>Error fetching directory link.</
term><
listitem><
para>
10139N/AA read error occurred when fetching the directory link field for a previous
10139N/Adirectory. This can occur when setting up a link to the directory that is
10139N/A<
refsect1 id="TIFFWriteDirectory-3tiff-rtrn"><
title>&rtrn-tt;</
title>
10139N/A<
para>1 is returned when the contents are successfully written to the file.
10139N/AOtherwise, 0 is returned if an error was encountered when writing the directory
10139N/A<
refsect1 id="TIFFWriteDirectory-3tiff-attr"><
title>&attr-tt;</
title>
10139N/A<
para>See <
olink targetdocent="REFMAN5" localinfo="attributes-5"><
citerefentry>
10139N/A<
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry></
olink>
10139N/Afor descriptions of the following attributes:</
para>
10139N/A<
tgroup cols="2" colsep="1" rowsep="1"><
colspec colname="COLSPEC0" colwidth="1*">
10139N/A<
colspec colname="COLSPEC1" colwidth="1*">
10139N/A<
row><
entry align="center" valign="middle">ATTRIBUTE TYPE</
entry><
entry align="center" 10139N/Avalign="middle">ATTRIBUTE VALUE</
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0"><
para>Interface stability</
para></
entry><
entry 13623N/Acolname="COLSPEC1"><
para>Uncommitted</
para></
entry></
row>
10139N/A<
refsect1 id="TIFFWriteDirectory-3tiff-also"><
title>&also-tt;</
title>
10139N/A<!--Reference to another man page--> 10139N/A<!--Reference to a Help manual--> 10139N/A<
para><
citerefentry><
refentrytitle>libtiff</
refentrytitle><
manvolnum>3</
manvolnum>
10139N/A</
citerefentry>, <
citerefentry><
refentrytitle>TIFFError<?
Pub Caret></
refentrytitle>
10139N/A<
manvolnum>3tiff</
manvolnum></
citerefentry>, <
citerefentry><
refentrytitle>
10139N/ATIFFOpen</
refentrytitle><
manvolnum>3tiff</
manvolnum></
citerefentry>, <
citerefentry>
10139N/A<
refentrytitle>TIFFReadDirectory</
refentrytitle><
manvolnum>3tiff</
manvolnum>
10139N/A</
citerefentry>, <
citerefentry><
refentrytitle>TIFFSetDirectory</
refentrytitle>
10139N/A<
manvolnum>3tiff</
manvolnum></
citerefentry></
para>
10139N/A<
refsect1 id="TIFFWriteDirectory-3tiff-note"><
title>¬e-tt;</
title>
10139N/A<
para>This man page was originally written by Sam Leffler. Updated by Breda
10139N/AMcColgan, Sun Microsystems Inc., 2004.</
para>