All pastes #44807 Raw Edit

Stuff

public text v1 · immutable
#44807 ·published 2006-03-07 19:49 UTC
rendered paste body
#include <unistd.h>
#include <stdio.h>
#include <sys/socket.h>

int main(int argc, char *argv[]) {
  int s;

  while (1) {
    s = socket(AF_INET, SOCK_DGRAM, 0);
    printf("%i\n", s);
    if (s == -1)
      break;
  }
  printf("_SC_OPEN_MAX: %li\n", sysconf(_SC_OPEN_MAX));
}