yp_ping.c (97d92980a96a50750844f420cc225ddf918f0699) | yp_ping.c (c447342094276b4d604449bb776063c7b88c4992) |
---|---|
1/* 2 * Copyright (c) 1996, 1997 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 83 unchanged lines hidden (view full) --- 92#include <rpc/pmap_prot.h> 93#include <rpcsvc/yp.h> 94#include <sys/socket.h> 95#include <sys/ioctl.h> 96#include <net/if.h> 97#include "yp_ping.h" 98 99#ifndef timeradd | 1/* 2 * Copyright (c) 1996, 1997 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 83 unchanged lines hidden (view full) --- 92#include <rpc/pmap_prot.h> 93#include <rpcsvc/yp.h> 94#include <sys/socket.h> 95#include <sys/ioctl.h> 96#include <net/if.h> 97#include "yp_ping.h" 98 99#ifndef timeradd |
100#ifndef KERNEL /* use timevaladd/timevalsub in kernel */ | 100#ifndef _KERNEL /* use timevaladd/timevalsub in kernel */ |
101/* NetBSD/OpenBSD compatable interfaces */ 102#define timeradd(tvp, uvp, vvp) \ 103 do { \ 104 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 105 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ 106 if ((vvp)->tv_usec >= 1000000) { \ 107 (vvp)->tv_sec++; \ 108 (vvp)->tv_usec -= 1000000; \ --- 437 unchanged lines hidden --- | 101/* NetBSD/OpenBSD compatable interfaces */ 102#define timeradd(tvp, uvp, vvp) \ 103 do { \ 104 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \ 105 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \ 106 if ((vvp)->tv_usec >= 1000000) { \ 107 (vvp)->tv_sec++; \ 108 (vvp)->tv_usec -= 1000000; \ --- 437 unchanged lines hidden --- |