Select the types of activity you want to include in your feed.
Implement psynch with darlingserver
Like I stated in the corresponding darlingserver commit, this is the initial implementation, with more changes and fixes sure to be needed later. But for now, it certainly works!
···11-#include "../errno.h"
22-33-#ifndef USE_NEW_PSYNC_CODE
44- #define USE_NEW_PSYNC_CODE 0
55-#endif
66-77-// psynch syscalls send back extra bits and leave only the bottom 8 bits for errors
88-// So we have to filter out the top 24 bits, translate errno and put the 24 bits back.
99-int psynch_errno(int rv)
1010-{
1111- int top;
1212- if (rv >= 0)
1313- return rv;
1414-1515- rv = -rv;
1616- top = rv & 0xffffff00;
1717-#if USE_NEW_PSYNC_CODE
1818- rv = rv & 0xff;
1919-#else
2020- rv = errno_linux_to_bsd(rv & 0xff);
2121-#endif
2222- rv |= top;
2323-2424- return -rv;
2525-}
2626-