154359Sroberto/* 2182007Sroberto * /src/NTP/ntp4-dev/include/binio.h,v 4.5 2005/04/16 17:32:10 kardel RELEASE_20050508_A 354359Sroberto * 4182007Sroberto * binio.h,v 4.5 2005/04/16 17:32:10 kardel RELEASE_20050508_A 5182007Sroberto * 654359Sroberto * $Created: Sun Jul 20 13:03:05 1997 $ 754359Sroberto * 8182007Sroberto * Copyright (c) 1997-2005 by Frank Kardel <kardel <AT> ntp.org> 9182007Sroberto * 10182007Sroberto * Redistribution and use in source and binary forms, with or without 11182007Sroberto * modification, are permitted provided that the following conditions 12182007Sroberto * are met: 13182007Sroberto * 1. Redistributions of source code must retain the above copyright 14182007Sroberto * notice, this list of conditions and the following disclaimer. 15182007Sroberto * 2. Redistributions in binary form must reproduce the above copyright 16182007Sroberto * notice, this list of conditions and the following disclaimer in the 17182007Sroberto * documentation and/or other materials provided with the distribution. 18182007Sroberto * 3. Neither the name of the author nor the names of its contributors 19182007Sroberto * may be used to endorse or promote products derived from this software 20182007Sroberto * without specific prior written permission. 21182007Sroberto * 22182007Sroberto * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 23182007Sroberto * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24182007Sroberto * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25182007Sroberto * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 26182007Sroberto * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27182007Sroberto * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28182007Sroberto * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29182007Sroberto * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30182007Sroberto * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31182007Sroberto * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32182007Sroberto * SUCH DAMAGE. 33182007Sroberto * 3454359Sroberto */ 3554359Sroberto#ifndef BINIO_H 3654359Sroberto#define BINIO_H 3754359Sroberto 3854359Sroberto#include "ntp_stdlib.h" 3954359Sroberto 4054359Srobertolong get_lsb_short P((unsigned char **)); 4154359Srobertovoid put_lsb_short P((unsigned char **, long)); 4254359Srobertolong get_lsb_long P((unsigned char **)); 4354359Srobertovoid put_lsb_long P((unsigned char **, long)); 4454359Sroberto 4554359Srobertolong get_msb_short P((unsigned char **)); 4654359Srobertovoid put_msb_short P((unsigned char **, long)); 4754359Srobertolong get_msb_long P((unsigned char **)); 4854359Srobertovoid put_msb_long P((unsigned char **, long)); 4954359Sroberto 5054359Sroberto#endif 5154359Sroberto/* 52182007Sroberto * History: 53182007Sroberto * 5454359Sroberto * binio.h,v 55182007Sroberto * Revision 4.5 2005/04/16 17:32:10 kardel 56182007Sroberto * update copyright 57182007Sroberto * 58182007Sroberto * Revision 4.4 2004/11/14 15:29:41 kardel 59182007Sroberto * support PPSAPI, upgrade Copyright to Berkeley style 60182007Sroberto * 6154359Sroberto * Revision 4.2 1998/06/28 16:52:15 kardel 6254359Sroberto * added binio MSB prototypes for {get,put}_msb_{short,long} 6354359Sroberto * 6454359Sroberto * Revision 4.1 1998/06/12 15:07:40 kardel 6554359Sroberto * fixed prototyping 6654359Sroberto * 6754359Sroberto * Revision 4.0 1998/04/10 19:50:38 kardel 6854359Sroberto * Start 4.0 release version numbering 6954359Sroberto * 7054359Sroberto * Revision 1.1 1998/04/10 19:27:32 kardel 7154359Sroberto * initial NTP VERSION 4 integration of PARSE with GPS166 binary support 7254359Sroberto * 7354359Sroberto * Revision 1.1 1997/10/06 20:55:37 kardel 7454359Sroberto * new parse structure 7554359Sroberto * 7654359Sroberto */ 77