auth_time.c (124178) | auth_time.c (143344) |
---|---|
1/* #pragma ident "@(#)auth_time.c 1.4 92/11/10 SMI" */ 2 3/* 4 * auth_time.c 5 * 6 * This module contains the private function __rpc_get_time_offset() 7 * which will return the difference in seconds between the local system's 8 * notion of time and a remote server's notion of time. This must be --- 14 unchanged lines hidden (view full) --- 23 * Side effects : 24 * When called a client handle to a RPCBIND process is created 25 * and destroyed. Two strings "netid" and "uaddr" are malloc'd 26 * and returned. The SIGALRM processing is modified only if 27 * needed to deal with TCP connections. 28 */ 29 30#include <sys/cdefs.h> | 1/* #pragma ident "@(#)auth_time.c 1.4 92/11/10 SMI" */ 2 3/* 4 * auth_time.c 5 * 6 * This module contains the private function __rpc_get_time_offset() 7 * which will return the difference in seconds between the local system's 8 * notion of time and a remote server's notion of time. This must be --- 14 unchanged lines hidden (view full) --- 23 * Side effects : 24 * When called a client handle to a RPCBIND process is created 25 * and destroyed. Two strings "netid" and "uaddr" are malloc'd 26 * and returned. The SIGALRM processing is modified only if 27 * needed to deal with TCP connections. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/lib/libc/rpc/auth_time.c 124178 2004-01-06 18:45:58Z nectar $"); | 31__FBSDID("$FreeBSD: head/lib/libc/rpc/auth_time.c 143344 2005-03-10 00:57:01Z stefanf $"); |
32 33#include "namespace.h" 34#include <stdio.h> 35#include <syslog.h> 36#include <string.h> 37#include <stdlib.h> 38#include <unistd.h> 39#include <netdb.h> --- 208 unchanged lines hidden (view full) --- 248 int time_valid; 249 int udp_ep = -1, tcp_ep = -1; 250 int a1, a2, a3, a4; 251 char ut[64], ipuaddr[64]; 252 endpoint teps[32]; 253 nis_server tsrv; 254 void (*oldsig)() = NULL; /* old alarm handler */ 255 struct sockaddr_in sin; | 32 33#include "namespace.h" 34#include <stdio.h> 35#include <syslog.h> 36#include <string.h> 37#include <stdlib.h> 38#include <unistd.h> 39#include <netdb.h> --- 208 unchanged lines hidden (view full) --- 248 int time_valid; 249 int udp_ep = -1, tcp_ep = -1; 250 int a1, a2, a3, a4; 251 char ut[64], ipuaddr[64]; 252 endpoint teps[32]; 253 nis_server tsrv; 254 void (*oldsig)() = NULL; /* old alarm handler */ 255 struct sockaddr_in sin; |
256 int s = RPC_ANYSOCK, len; | 256 socklen_t len; 257 int s = RPC_ANYSOCK; |
257 int type = 0; 258 259 td->tv_sec = 0; 260 td->tv_usec = 0; 261 262 /* 263 * First check to see if we need to find and address for this 264 * server. --- 233 unchanged lines hidden --- | 258 int type = 0; 259 260 td->tv_sec = 0; 261 td->tv_usec = 0; 262 263 /* 264 * First check to see if we need to find and address for this 265 * server. --- 233 unchanged lines hidden --- |