system-source: Use /dev/log on HP-UX

Using /dev/pipe on HP-UX was a mistake, use /dev/log instead, as the
original shell script did.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
afstreams: Migrate to new, working APIs

The afstreams module has been broken for more than a year, this patch
brings it back from the dead by migrating it to newer APIs and all.

Based on a patch by Balazs Scheidler <bazsi@balabit.hu>.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
system-source: Fix the uname() call on Solaris

On Solaris, uname() can return any positive value, and that indicates
success. Pretty much everywhere else, only 0 does. Thankfully, -1
signals failure everywhere, so check for that.

This makes system() work on Solaris again.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
affile: fixed a pipe permission problem

When syslog-ng creates a pipe, create it with user-specified permissions
or restrictive ones (0600) by default, instead of creating it with broad
read-write permissions (0666) and patching it up later.

Signed-off-by: Budai Laszlo <lbudai@balabit.hu>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
.travis.yml: Update for the new branch structure

Update the Travis-CI control file for the new branch structure.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
afuser: remove alarm workaround

The Linux kernel used to have a bug that caused the afuser driver
to block even if O_NONBLOCK is set in the open flags. It was fixed
a long time ago, and alarm() is incompatible with multithreaded programs,
thus get rid off the alarm() call to detect blocked ttys.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
README.md: add new file to describe syslog-ng

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
README.md: Various improvements

Rearrange the README a little bit, putting the source installation docs
at the top, adding more links, and rewording a few things here and
there.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>