File: trysocketlib.c

package info (click to toggle)
runit 2.1.2-9.2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,660 kB
  • ctags: 1,087
  • sloc: ansic: 5,701; sh: 664; makefile: 361
file content (12 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (18)
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));
}