summary refs log tree commit diff
path: root/src/trysocketlib.c
blob: 0fe5d06566f57bb0ddfabdc2dc658dd232ae4fa2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>

int main(void) {
  int s;

  s =socket(AF_INET, SOCK_STREAM, 0);
  return(close(s));
}