2 fontconfig/doc/func.sgml
4 Copyright © 2003 Keith Packard
6 Permission to use, copy, modify, distribute, and sell this software and its
7 documentation for any purpose is hereby granted without fee, provided that
8 the above copyright notice appear in all copies and that both that
9 copyright notice and this permission notice appear in supporting
10 documentation, and that the name of the author(s) not be used in
11 advertising or publicity pertaining to distribution of the software without
12 specific, written prior permission. The authors make no
13 representations about the suitability of this software for any purpose. It
14 is provided "as is" without express or implied warranty.
16 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 PERFORMANCE OF THIS SOFTWARE.
24 <refentry id="FcAtomicCreate">
26 <refentrytitle>FcAtomicCreate</refentrytitle>
27 <manvolnum>3</manvolnum>
28 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
31 <refname>FcAtomicCreate</refname>
32 <refpurpose>create an FcAtomic object</refpurpose>
37 #include <fontconfig/fontconfig.h>
40 <funcdef>FcAtomic * <function>FcAtomicCreate</function></funcdef>
41 <paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
45 <refsect1><title>Description</title>
47 Creates a data structure containing data needed to control access to <parameter>file</parameter>.
48 Writing is done to a separate file. Once that file is complete, the original
49 configuration file is atomically replaced so that reading process always see
50 a consistent and complete file without the need to lock for reading.
55 fontconfig/doc/func.sgml
57 Copyright © 2003 Keith Packard
59 Permission to use, copy, modify, distribute, and sell this software and its
60 documentation for any purpose is hereby granted without fee, provided that
61 the above copyright notice appear in all copies and that both that
62 copyright notice and this permission notice appear in supporting
63 documentation, and that the name of the author(s) not be used in
64 advertising or publicity pertaining to distribution of the software without
65 specific, written prior permission. The authors make no
66 representations about the suitability of this software for any purpose. It
67 is provided "as is" without express or implied warranty.
69 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
70 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
71 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
72 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
73 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
74 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
75 PERFORMANCE OF THIS SOFTWARE.
77 <refentry id="FcAtomicLock">
79 <refentrytitle>FcAtomicLock</refentrytitle>
80 <manvolnum>3</manvolnum>
81 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
84 <refname>FcAtomicLock</refname>
85 <refpurpose>lock a file</refpurpose>
90 #include <fontconfig/fontconfig.h>
93 <funcdef>FcBool <function>FcAtomicLock</function></funcdef>
94 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
98 <refsect1><title>Description</title>
100 Attempts to lock the file referenced by <parameter>atomic</parameter>.
101 Returns FcFalse if the file is already locked, else returns FcTrue and
102 leaves the file locked.
107 fontconfig/doc/func.sgml
109 Copyright © 2003 Keith Packard
111 Permission to use, copy, modify, distribute, and sell this software and its
112 documentation for any purpose is hereby granted without fee, provided that
113 the above copyright notice appear in all copies and that both that
114 copyright notice and this permission notice appear in supporting
115 documentation, and that the name of the author(s) not be used in
116 advertising or publicity pertaining to distribution of the software without
117 specific, written prior permission. The authors make no
118 representations about the suitability of this software for any purpose. It
119 is provided "as is" without express or implied warranty.
121 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
122 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
123 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
124 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
125 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
126 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
127 PERFORMANCE OF THIS SOFTWARE.
129 <refentry id="FcAtomicNewFile">
131 <refentrytitle>FcAtomicNewFile</refentrytitle>
132 <manvolnum>3</manvolnum>
133 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
136 <refname>FcAtomicNewFile</refname>
137 <refpurpose>return new temporary file name</refpurpose>
142 #include <fontconfig/fontconfig.h>
145 <funcdef>FcChar8 * <function>FcAtomicNewFile</function></funcdef>
146 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
150 <refsect1><title>Description</title>
152 Returns the filename for writing a new version of the file referenced
153 by <parameter>atomic</parameter>.
158 fontconfig/doc/func.sgml
160 Copyright © 2003 Keith Packard
162 Permission to use, copy, modify, distribute, and sell this software and its
163 documentation for any purpose is hereby granted without fee, provided that
164 the above copyright notice appear in all copies and that both that
165 copyright notice and this permission notice appear in supporting
166 documentation, and that the name of the author(s) not be used in
167 advertising or publicity pertaining to distribution of the software without
168 specific, written prior permission. The authors make no
169 representations about the suitability of this software for any purpose. It
170 is provided "as is" without express or implied warranty.
172 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
173 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
174 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
175 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
176 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
177 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
178 PERFORMANCE OF THIS SOFTWARE.
180 <refentry id="FcAtomicOrigFile">
182 <refentrytitle>FcAtomicOrigFile</refentrytitle>
183 <manvolnum>3</manvolnum>
184 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
187 <refname>FcAtomicOrigFile</refname>
188 <refpurpose>return original file name</refpurpose>
193 #include <fontconfig/fontconfig.h>
196 <funcdef>FcChar8 * <function>FcAtomicOrigFile</function></funcdef>
197 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
201 <refsect1><title>Description</title>
203 Returns the file referenced by <parameter>atomic</parameter>.
208 fontconfig/doc/func.sgml
210 Copyright © 2003 Keith Packard
212 Permission to use, copy, modify, distribute, and sell this software and its
213 documentation for any purpose is hereby granted without fee, provided that
214 the above copyright notice appear in all copies and that both that
215 copyright notice and this permission notice appear in supporting
216 documentation, and that the name of the author(s) not be used in
217 advertising or publicity pertaining to distribution of the software without
218 specific, written prior permission. The authors make no
219 representations about the suitability of this software for any purpose. It
220 is provided "as is" without express or implied warranty.
222 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
223 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
224 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
225 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
226 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
227 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
228 PERFORMANCE OF THIS SOFTWARE.
230 <refentry id="FcAtomicReplaceOrig">
232 <refentrytitle>FcAtomicReplaceOrig</refentrytitle>
233 <manvolnum>3</manvolnum>
234 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
237 <refname>FcAtomicReplaceOrig</refname>
238 <refpurpose>replace original with new</refpurpose>
243 #include <fontconfig/fontconfig.h>
246 <funcdef>FcBool <function>FcAtomicReplaceOrig</function></funcdef>
247 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
251 <refsect1><title>Description</title>
253 Replaces the original file referenced by <parameter>atomic</parameter> with
254 the new file. Returns FcFalse if the file cannot be replaced due to
255 permission issues in the filesystem. Otherwise returns FcTrue.
260 fontconfig/doc/func.sgml
262 Copyright © 2003 Keith Packard
264 Permission to use, copy, modify, distribute, and sell this software and its
265 documentation for any purpose is hereby granted without fee, provided that
266 the above copyright notice appear in all copies and that both that
267 copyright notice and this permission notice appear in supporting
268 documentation, and that the name of the author(s) not be used in
269 advertising or publicity pertaining to distribution of the software without
270 specific, written prior permission. The authors make no
271 representations about the suitability of this software for any purpose. It
272 is provided "as is" without express or implied warranty.
274 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
275 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
276 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
277 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
278 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
279 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
280 PERFORMANCE OF THIS SOFTWARE.
282 <refentry id="FcAtomicDeleteNew">
284 <refentrytitle>FcAtomicDeleteNew</refentrytitle>
285 <manvolnum>3</manvolnum>
286 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
289 <refname>FcAtomicDeleteNew</refname>
290 <refpurpose>delete new file</refpurpose>
295 #include <fontconfig/fontconfig.h>
298 <funcdef>void <function>FcAtomicDeleteNew</function></funcdef>
299 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
303 <refsect1><title>Description</title>
305 Deletes the new file. Used in error recovery to back out changes.
310 fontconfig/doc/func.sgml
312 Copyright © 2003 Keith Packard
314 Permission to use, copy, modify, distribute, and sell this software and its
315 documentation for any purpose is hereby granted without fee, provided that
316 the above copyright notice appear in all copies and that both that
317 copyright notice and this permission notice appear in supporting
318 documentation, and that the name of the author(s) not be used in
319 advertising or publicity pertaining to distribution of the software without
320 specific, written prior permission. The authors make no
321 representations about the suitability of this software for any purpose. It
322 is provided "as is" without express or implied warranty.
324 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
325 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
326 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
327 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
328 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
329 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
330 PERFORMANCE OF THIS SOFTWARE.
332 <refentry id="FcAtomicUnlock">
334 <refentrytitle>FcAtomicUnlock</refentrytitle>
335 <manvolnum>3</manvolnum>
336 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
339 <refname>FcAtomicUnlock</refname>
340 <refpurpose>unlock a file</refpurpose>
345 #include <fontconfig/fontconfig.h>
348 <funcdef>void <function>FcAtomicUnlock</function></funcdef>
349 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
353 <refsect1><title>Description</title>
360 fontconfig/doc/func.sgml
362 Copyright © 2003 Keith Packard
364 Permission to use, copy, modify, distribute, and sell this software and its
365 documentation for any purpose is hereby granted without fee, provided that
366 the above copyright notice appear in all copies and that both that
367 copyright notice and this permission notice appear in supporting
368 documentation, and that the name of the author(s) not be used in
369 advertising or publicity pertaining to distribution of the software without
370 specific, written prior permission. The authors make no
371 representations about the suitability of this software for any purpose. It
372 is provided "as is" without express or implied warranty.
374 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
375 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
376 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
377 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
378 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
379 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
380 PERFORMANCE OF THIS SOFTWARE.
382 <refentry id="FcAtomicDestroy">
384 <refentrytitle>FcAtomicDestroy</refentrytitle>
385 <manvolnum>3</manvolnum>
386 <refmiscinfo class="software">Fontconfig &version;</refmiscinfo>
389 <refname>FcAtomicDestroy</refname>
390 <refpurpose>destroy an FcAtomic object</refpurpose>
395 #include <fontconfig/fontconfig.h>
398 <funcdef>void <function>FcAtomicDestroy</function></funcdef>
399 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
403 <refsect1><title>Description</title>
405 Destroys <parameter>atomic</parameter>.