|
|
1.1 ! root 1: #include <X/mit-copyright.h> ! 2: ! 3: /* $Header: XAddHost.c,v 10.6 86/02/01 15:29:19 tony Rel $ */ ! 4: /* Copyright Massachusetts Institute of Technology 1985 */ ! 5: ! 6: #include "XlibInternal.h" ! 7: #include <sys/socket.h> ! 8: XAddHost (host) ! 9: struct in_addr *host; ! 10: { ! 11: register Display *dpy; ! 12: register XReq *req; ! 13: ! 14: GetReq (X_AddHost, 0); ! 15: req->func = XAF_INET; ! 16: req->param.l[0] = host->s_addr; ! 17: } ! 18:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.