First draft of the libosl patch series.
Fix various dead stores found by the clang static analyzer.
Change year of copyright from 2008 to 2009.
Fix -Wdeclaration-after-statement warnings. This option is new in gcc-4, so do not activate it by default.
osl.c: Do not include list.h.
make send_callback_request() and friends take a result handler. This is a first step to overcome a design flaw in the afs callback code: The output of the commands is currently stored in an osl object that is copied to a shared memory area whose shmid is passed back to the command handler via the local socket. This method limits the size of the command output to the maximal size that can be stored in a shared memory area which is not enough to hold large outputs like that of ls -c. This patch allows the command handlers to pass a result handler function instead of an osl object. This result handler is called for each shared memory area that gets sent through the local socket. Further patches will change the callbacks so that they pass multiple result buffers instead of returning a single buffer. This has the additional advantage that partial command output produced by the callback can be sent even before the callback returns. This parital output is seen immediately by the command handler.
osl.c: Simplify comment.
Kill two unnecessary return statements.
Change year in Copyright comment from 2007 to 2008.
More error cleanups.
Add additional sanity checks to osl_get_rank(). Check whether the riven rank is greater than zero and not greater than the number of rows in the table.
Fix osl_del_row(). Only free volatile columns of the deleted row if OSL_DONT_FREE is not set.
osl: Introduce volatile columns that need not be freed. If the new OSL_DONT_FREE flag is given, osl_close_table() will not try to free such objects.
Move mmap_full_file from osl.c to fd.c. To make it independent from osl.c, we must not pass a pointer to struct osl_data. Replace it by void *, size_t * pointers. Also add new int *fd_ptr parameter. If it's non-NULL the file is not closed after mmap, and the open fd is returned in fd_ptr.
Implement afs events.
Remove some system errors from errno.h No need to have system errors duplicated in error.h. Just return -ERRNO_TO_PARA_ERROR(errno) in these cases.
for_each_file_in_dir(): Ignore permission errors for subdirectories.
Still more typo fixes.
Make rbtree_loop() and rbtree_loop_reverse() safe against removal of an entry. Also, fix the documentation of osl_rbtree_loop() which claimed that an osl_rbtree_loop_func takes two void pointers which is not true any more.
Make para_fsck work without specifying tables. Also, move some fd related functions from osl.c to fd.c and introduce para_opendir().