#include <sys/cdefs.h>
#include "namespace.h"
-#undef NDEBUG
-
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#if DEBUG
fprintf(stderr, "recvfrom: not implemented for fd %d\n", sock);
#endif
- errno= ENOSYS;
- assert(0);
- return -1;
+ abort();
}
static ssize_t _tcp_recvfrom(int sock, void *__restrict buffer, size_t length,
static int first_slot = 0, next_slot = 0;
static int initialized = 0;
+#define DEBUG 0
+
/*===========================================================================*
* asynsend3 *
*===========================================================================*/
if ((flags & (AMF_VALID|AMF_DONE)) == (AMF_VALID|AMF_DONE)) {
/* Marked in use by us (VALID) and processed by the kernel */
if (msgtable[first_slot].result != OK) {
-#if NDEBUG
+#if DEBUG
printf("asynsend: found entry %d with error %d\n",
first_slot, msgtable[first_slot].result);
#endif
if (msgtable[src_ind].result == OK)
continue;
else {
-#if NDEBUG
+#if DEBUG
printf(
"asynsend: found entry %d with error %d\n",
src_ind, msgtable[src_ind].result);
/* Copy/move in use entry */
-#if NDEBUG
+#if DEBUG
printf("asynsend: copying entry %d to %d\n", src_ind, dst_ind);
#endif
if (src_ind != dst_ind) msgtable[dst_ind] = msgtable[src_ind];