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>
30 <refname>FcAtomicCreate</refname>
31 <refpurpose>create an FcAtomic object</refpurpose>
36 #include <fontconfig.h>
39 <funcdef>FcAtomic * <function>FcAtomicCreate</function></funcdef>
40 <paramdef>const FcChar8 *<parameter>file</parameter></paramdef>
44 <refsect1><title>Description</title>
46 Creates a data structure containing data needed to control access to <parameter>file</parameter>.
47 Writing is done to a separate file. Once that file is complete, the original
48 configuration file is atomically replaced so that reading process always see
49 a consistent and complete file without the need to lock for reading.
52 <refsect1><title>Version</title>
54 Fontconfig version &version;
59 fontconfig/doc/func.sgml
61 Copyright © 2003 Keith Packard
63 Permission to use, copy, modify, distribute, and sell this software and its
64 documentation for any purpose is hereby granted without fee, provided that
65 the above copyright notice appear in all copies and that both that
66 copyright notice and this permission notice appear in supporting
67 documentation, and that the name of the author(s) not be used in
68 advertising or publicity pertaining to distribution of the software without
69 specific, written prior permission. The authors make no
70 representations about the suitability of this software for any purpose. It
71 is provided "as is" without express or implied warranty.
73 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
74 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
75 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
76 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
77 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
78 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
79 PERFORMANCE OF THIS SOFTWARE.
81 <refentry id="FcAtomicLock">
83 <refentrytitle>FcAtomicLock</refentrytitle>
84 <manvolnum>3</manvolnum>
87 <refname>FcAtomicLock</refname>
88 <refpurpose>lock a file</refpurpose>
93 #include <fontconfig.h>
96 <funcdef>FcBool <function>FcAtomicLock</function></funcdef>
97 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
101 <refsect1><title>Description</title>
103 Attempts to lock the file referenced by <parameter>atomic</parameter>.
104 Returns FcFalse if the file is already locked, else returns FcTrue and
105 leaves the file locked.
108 <refsect1><title>Version</title>
110 Fontconfig version &version;
115 fontconfig/doc/func.sgml
117 Copyright © 2003 Keith Packard
119 Permission to use, copy, modify, distribute, and sell this software and its
120 documentation for any purpose is hereby granted without fee, provided that
121 the above copyright notice appear in all copies and that both that
122 copyright notice and this permission notice appear in supporting
123 documentation, and that the name of the author(s) not be used in
124 advertising or publicity pertaining to distribution of the software without
125 specific, written prior permission. The authors make no
126 representations about the suitability of this software for any purpose. It
127 is provided "as is" without express or implied warranty.
129 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
130 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
131 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
132 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
133 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
134 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
135 PERFORMANCE OF THIS SOFTWARE.
137 <refentry id="FcAtomicNewFile">
139 <refentrytitle>FcAtomicNewFile</refentrytitle>
140 <manvolnum>3</manvolnum>
143 <refname>FcAtomicNewFile</refname>
144 <refpurpose>return new temporary file name</refpurpose>
149 #include <fontconfig.h>
152 <funcdef>FcChar8 * <function>FcAtomicNewFile</function></funcdef>
153 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
157 <refsect1><title>Description</title>
159 Returns the filename for writing a new version of the file referenced
160 by <parameter>atomic</parameter>.
163 <refsect1><title>Version</title>
165 Fontconfig version &version;
170 fontconfig/doc/func.sgml
172 Copyright © 2003 Keith Packard
174 Permission to use, copy, modify, distribute, and sell this software and its
175 documentation for any purpose is hereby granted without fee, provided that
176 the above copyright notice appear in all copies and that both that
177 copyright notice and this permission notice appear in supporting
178 documentation, and that the name of the author(s) not be used in
179 advertising or publicity pertaining to distribution of the software without
180 specific, written prior permission. The authors make no
181 representations about the suitability of this software for any purpose. It
182 is provided "as is" without express or implied warranty.
184 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
185 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
186 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
187 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
188 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
189 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
190 PERFORMANCE OF THIS SOFTWARE.
192 <refentry id="FcAtomicOrigFile">
194 <refentrytitle>FcAtomicOrigFile</refentrytitle>
195 <manvolnum>3</manvolnum>
198 <refname>FcAtomicOrigFile</refname>
199 <refpurpose>return original file name</refpurpose>
204 #include <fontconfig.h>
207 <funcdef>FcChar8 * <function>FcAtomicOrigFile</function></funcdef>
208 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
212 <refsect1><title>Description</title>
214 Returns the file referenced by <parameter>atomic</parameter>.
217 <refsect1><title>Version</title>
219 Fontconfig version &version;
224 fontconfig/doc/func.sgml
226 Copyright © 2003 Keith Packard
228 Permission to use, copy, modify, distribute, and sell this software and its
229 documentation for any purpose is hereby granted without fee, provided that
230 the above copyright notice appear in all copies and that both that
231 copyright notice and this permission notice appear in supporting
232 documentation, and that the name of the author(s) not be used in
233 advertising or publicity pertaining to distribution of the software without
234 specific, written prior permission. The authors make no
235 representations about the suitability of this software for any purpose. It
236 is provided "as is" without express or implied warranty.
238 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
239 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
240 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
241 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
242 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
243 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
244 PERFORMANCE OF THIS SOFTWARE.
246 <refentry id="FcAtomicReplaceOrig">
248 <refentrytitle>FcAtomicReplaceOrig</refentrytitle>
249 <manvolnum>3</manvolnum>
252 <refname>FcAtomicReplaceOrig</refname>
253 <refpurpose>replace original with new</refpurpose>
258 #include <fontconfig.h>
261 <funcdef>FcBool <function>FcAtomicReplaceOrig</function></funcdef>
262 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
266 <refsect1><title>Description</title>
268 Replaces the original file referenced by <parameter>atomic</parameter> with
269 the new file. Returns FcFalse if the file cannot be replaced due to
270 permission issues in the filesystem. Otherwise returns FcTrue.
273 <refsect1><title>Version</title>
275 Fontconfig version &version;
280 fontconfig/doc/func.sgml
282 Copyright © 2003 Keith Packard
284 Permission to use, copy, modify, distribute, and sell this software and its
285 documentation for any purpose is hereby granted without fee, provided that
286 the above copyright notice appear in all copies and that both that
287 copyright notice and this permission notice appear in supporting
288 documentation, and that the name of the author(s) not be used in
289 advertising or publicity pertaining to distribution of the software without
290 specific, written prior permission. The authors make no
291 representations about the suitability of this software for any purpose. It
292 is provided "as is" without express or implied warranty.
294 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
295 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
296 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
297 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
298 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
299 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
300 PERFORMANCE OF THIS SOFTWARE.
302 <refentry id="FcAtomicDeleteNew">
304 <refentrytitle>FcAtomicDeleteNew</refentrytitle>
305 <manvolnum>3</manvolnum>
308 <refname>FcAtomicDeleteNew</refname>
309 <refpurpose>delete new file</refpurpose>
314 #include <fontconfig.h>
317 <funcdef>void <function>FcAtomicDeleteNew</function></funcdef>
318 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
322 <refsect1><title>Description</title>
324 Deletes the new file. Used in error recovery to back out changes.
327 <refsect1><title>Version</title>
329 Fontconfig version &version;
334 fontconfig/doc/func.sgml
336 Copyright © 2003 Keith Packard
338 Permission to use, copy, modify, distribute, and sell this software and its
339 documentation for any purpose is hereby granted without fee, provided that
340 the above copyright notice appear in all copies and that both that
341 copyright notice and this permission notice appear in supporting
342 documentation, and that the name of the author(s) not be used in
343 advertising or publicity pertaining to distribution of the software without
344 specific, written prior permission. The authors make no
345 representations about the suitability of this software for any purpose. It
346 is provided "as is" without express or implied warranty.
348 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
349 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
350 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
351 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
352 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
353 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
354 PERFORMANCE OF THIS SOFTWARE.
356 <refentry id="FcAtomicUnlock">
358 <refentrytitle>FcAtomicUnlock</refentrytitle>
359 <manvolnum>3</manvolnum>
362 <refname>FcAtomicUnlock</refname>
363 <refpurpose>unlock a file</refpurpose>
368 #include <fontconfig.h>
371 <funcdef>void <function>FcAtomicUnlock</function></funcdef>
372 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
376 <refsect1><title>Description</title>
381 <refsect1><title>Version</title>
383 Fontconfig version &version;
388 fontconfig/doc/func.sgml
390 Copyright © 2003 Keith Packard
392 Permission to use, copy, modify, distribute, and sell this software and its
393 documentation for any purpose is hereby granted without fee, provided that
394 the above copyright notice appear in all copies and that both that
395 copyright notice and this permission notice appear in supporting
396 documentation, and that the name of the author(s) not be used in
397 advertising or publicity pertaining to distribution of the software without
398 specific, written prior permission. The authors make no
399 representations about the suitability of this software for any purpose. It
400 is provided "as is" without express or implied warranty.
402 THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
403 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
404 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
405 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
406 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
407 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
408 PERFORMANCE OF THIS SOFTWARE.
410 <refentry id="FcAtomicDestroy">
412 <refentrytitle>FcAtomicDestroy</refentrytitle>
413 <manvolnum>3</manvolnum>
416 <refname>FcAtomicDestroy</refname>
417 <refpurpose>destroy an FcAtomic object</refpurpose>
422 #include <fontconfig.h>
425 <funcdef>void <function>FcAtomicDestroy</function></funcdef>
426 <paramdef>FcAtomic *<parameter>atomic</parameter></paramdef>
430 <refsect1><title>Description</title>
432 Destroys <parameter>atomic</parameter>.
435 <refsect1><title>Version</title>
437 Fontconfig version &version;