fd.c: Avoid gcc warning regarding fchdir(). gcc-4.8.4 on Ubuntu-14.04 complains about our use of fchdir(): fd.c:181:9: warning: ignoring return value of ‘fchdir’, declared with attribute warn_unused_result [-Wunused-result] fchdir(*cwd); Silence the warning by introducing a dummy variable. The patch also fixes the indentation of the comment which explains why we ignore the return value here.
fd.c: EAGAIN can not happen in __write(). The only caller does not specify O_NONBLOCK, so the check for EAGAIN is unnecessary.
fd.c: Make __write() static. It's an internal function which is only used inside fd.c, as indicated by the leading underscores. And it does not have a prototype in fd.h.
Simplify and rename mmap_full_file(). There is only one caller which maps the file privately into read-only memory. Moreover, this caller does not care about the file descriptor from which the mapping was created. This commit removes the argument from mmap_full_file() which control the type of the map and the result pointer for the file descriptor, thereby simplifying the function slightly. Rename it to mmap_file_ro() to indicate that read-only private mappings are implied.
Make fd.c and select.c include their own header file. This helps to spot bugs where declaration and implementation differ. Fortunately, there is so such bug in adu, but it's a good thing (TM) to let the compiler error out in this case.
Replace systemlinux.org URL and email address. Although the web page is still online at the old location, the new location at tuebingen.mpg.de is now the "official" one. This commit changes the URL in the INSTALL file and all email addresses to the new domain.
fd.c: Make __chdir() static. This function is only used in fd.c.
new option database-root If database-root is given, the database dir is computed by appending the base dir to it. Obviously this works only if base dir is given, even for select mode. The needed directory structure is created below database-root by the new function mkpath(), which recursively creates any directory needed to copy the structure of base dir. This has the side-effect that the database dir is always created for the user (if permissions allow) which wasn't the case before. database_dir is now a global variable just like conf and should be used whenever conf.database_dir_arg was used before.
Add \brief command to file header to make doxygen happy.
Replace para_ prefix by adu_.
Kill a bunch of unused cruft.
Introduce the osl() wrapper and rename error_txt() to adu_strerror(). This gets rid of the copy of the error codes from libosl. Also, remove para_fgets() as it is unused.
Add missing functions to fd.c. These were previously exported by osl but don't really belong there.
Initial git checkin. Not nice, but kinda working.