github.com/fabiokung/docker@v0.11.2-0.20170222101415-4534dcd49497/contrib/syscall-test/appletalk.c (about)

     1  #include <stdio.h>
     2  #include <sys/socket.h>
     3  
     4  int main() {
     5  
     6  	if (socket(AF_APPLETALK, SOCK_DGRAM, 0) != -1) {
     7  		fprintf(stderr, "Opening Appletalk socket worked, should be blocked\n");
     8  		return 1;
     9  	}
    10  
    11  	return 0;
    12  }