posix

  1. Zirias

    C/C++ Behavior of connect() with O_NONBLOCK on a Unix domain socket

    For a service that can optionally listen on a local (Unix) socket, I want to implement detection of a "stale" socket, so it can startup without user intervention in this case by just unlinking the stale socket. As my service is designed around an event loop using pselect, I put all sockets into...
  2. J

    C/C++ POSIX compliant Makefile - Pattern Rules?

    I'm trying to remove any implementation specific (GNU Make) details from my Makefiles but having a hard time fixing some issues. The structure of my projects is like so; myapp/ Makefile src/ foo/ foo1.c foo2.c bar/ bar1.c obj/ 1) The mere presence of an...
Top