Parent: [8051b9] (diff)

Child: [91419d] (diff)

Download this file

Intro.dox    74 lines (73 with data), 3.5 kB

/** @mainpage pxattr: portable extended attributes C++ programming interface
 *    
 * @authors Jean-Francois Dockes <jfd@recoll.org>
 *
 * @section intro Introduction
 * 
 * Extended attributes are arbitrarily named pieces of data associated
 * with a file and managed by the file system.
 *
 * The names and the values for the attributes are freely chosen by
 * applications and/or users, with very few restrictions.
 * Most recent systems support extended attributes, but the interfaces 
 * used to manage them are far from identical.
 *
 * Linux, FreeBSD and Mac OS X all provide similar extended attributes 
 * functionality.
 *
 * The pxattr package aims at providing a single interface to extended
 * attributes on all three systems. It consists in a single C++ module (one 
 * source and one include file), which is to be included in the application 
 * source code (being too trivial to justify a library).
 *
 * Linux note: on Linux, user attributes are distinguished by having a
 * "user." prefix in their name. On Mac OS X and FreeBSD, the user and
 * other name spaces are distinguished by argument to the library calls.
 * pxattr hides the "user." prefix on Linux, so that you should not specify it
 * when reading or setting a value.
 *
 * The previous version of the library had a bug which had it adding the
 * "user." prefix to names on other platforms. This was not a main issue
 * inside pxattr, but posed a compatibility problem when using raw system
 * utilities or moving files between systems. Version 2.0 fixes this
 * problem but the change means that it is incompatible with attributes
 * created by pxattr 1.0 (which contain the "user." prefix, which will
 * appear when listing the attributes and now need to be added when
 * fetching a value. You can use "make CXXFLAGS=-DCOMPAT1 to force
 * the 1.0 behaviour with 2.0. This does not make a lot of sense though,
 * because you're just as well staying with 1.0 then, as nothing else has
 * changed.
 * 
 * The C++ file can also be compiled to a command line program, which is both
 * a test tool and a handy way to manage attributes from the command line.
 *
 * pxattr is free software, with an MIT-type license, use and redistribute 
 * freely.
 *
 * Download pxattr: <a href="pxattr-2.0.2.tar.gz">pxattr-2.0.2.tar.gz</a> 
 *
 * @par Licensing
 * Copyright (c) 2009 Jean-Francois Dockes
 * @par
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 * @par
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 * @par
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 * 
 */