1c0b746e5SOllivier Robert /* 2ea906c41SOllivier Robert * /src/NTP/ntp4-dev/include/binio.h,v 4.5 2005/04/16 17:32:10 kardel RELEASE_20050508_A 3ea906c41SOllivier Robert * 4ea906c41SOllivier Robert * binio.h,v 4.5 2005/04/16 17:32:10 kardel RELEASE_20050508_A 5c0b746e5SOllivier Robert * 6c0b746e5SOllivier Robert * $Created: Sun Jul 20 13:03:05 1997 $ 7c0b746e5SOllivier Robert * 8ea906c41SOllivier Robert * Copyright (c) 1997-2005 by Frank Kardel <kardel <AT> ntp.org> 9ea906c41SOllivier Robert * 10ea906c41SOllivier Robert * Redistribution and use in source and binary forms, with or without 11ea906c41SOllivier Robert * modification, are permitted provided that the following conditions 12ea906c41SOllivier Robert * are met: 13ea906c41SOllivier Robert * 1. Redistributions of source code must retain the above copyright 14ea906c41SOllivier Robert * notice, this list of conditions and the following disclaimer. 15ea906c41SOllivier Robert * 2. Redistributions in binary form must reproduce the above copyright 16ea906c41SOllivier Robert * notice, this list of conditions and the following disclaimer in the 17ea906c41SOllivier Robert * documentation and/or other materials provided with the distribution. 18ea906c41SOllivier Robert * 3. Neither the name of the author nor the names of its contributors 19ea906c41SOllivier Robert * may be used to endorse or promote products derived from this software 20ea906c41SOllivier Robert * without specific prior written permission. 21ea906c41SOllivier Robert * 22ea906c41SOllivier Robert * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 23ea906c41SOllivier Robert * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24ea906c41SOllivier Robert * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25ea906c41SOllivier Robert * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 26ea906c41SOllivier Robert * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27ea906c41SOllivier Robert * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28ea906c41SOllivier Robert * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29ea906c41SOllivier Robert * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30ea906c41SOllivier Robert * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31ea906c41SOllivier Robert * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32ea906c41SOllivier Robert * SUCH DAMAGE. 33ea906c41SOllivier Robert * 34c0b746e5SOllivier Robert */ 35c0b746e5SOllivier Robert #ifndef BINIO_H 36c0b746e5SOllivier Robert #define BINIO_H 37c0b746e5SOllivier Robert 38c0b746e5SOllivier Robert #include "ntp_stdlib.h" 39c0b746e5SOllivier Robert 40*2b15cb3dSCy Schubert long get_lsb_short (unsigned char **); 41*2b15cb3dSCy Schubert void put_lsb_short (unsigned char **, long); 42*2b15cb3dSCy Schubert long get_lsb_long (unsigned char **); 43*2b15cb3dSCy Schubert void put_lsb_long (unsigned char **, long); 44c0b746e5SOllivier Robert 45*2b15cb3dSCy Schubert long get_msb_short (unsigned char **); 46*2b15cb3dSCy Schubert void put_msb_short (unsigned char **, long); 47*2b15cb3dSCy Schubert long get_msb_long (unsigned char **); 48*2b15cb3dSCy Schubert void put_msb_long (unsigned char **, long); 49c0b746e5SOllivier Robert 50c0b746e5SOllivier Robert #endif 51c0b746e5SOllivier Robert /* 52ea906c41SOllivier Robert * History: 53ea906c41SOllivier Robert * 54c0b746e5SOllivier Robert * binio.h,v 55ea906c41SOllivier Robert * Revision 4.5 2005/04/16 17:32:10 kardel 56ea906c41SOllivier Robert * update copyright 57ea906c41SOllivier Robert * 58ea906c41SOllivier Robert * Revision 4.4 2004/11/14 15:29:41 kardel 59ea906c41SOllivier Robert * support PPSAPI, upgrade Copyright to Berkeley style 60ea906c41SOllivier Robert * 61c0b746e5SOllivier Robert * Revision 4.2 1998/06/28 16:52:15 kardel 62c0b746e5SOllivier Robert * added binio MSB prototypes for {get,put}_msb_{short,long} 63c0b746e5SOllivier Robert * 64c0b746e5SOllivier Robert * Revision 4.1 1998/06/12 15:07:40 kardel 65c0b746e5SOllivier Robert * fixed prototyping 66c0b746e5SOllivier Robert * 67c0b746e5SOllivier Robert * Revision 4.0 1998/04/10 19:50:38 kardel 68c0b746e5SOllivier Robert * Start 4.0 release version numbering 69c0b746e5SOllivier Robert * 70c0b746e5SOllivier Robert * Revision 1.1 1998/04/10 19:27:32 kardel 71c0b746e5SOllivier Robert * initial NTP VERSION 4 integration of PARSE with GPS166 binary support 72c0b746e5SOllivier Robert * 73c0b746e5SOllivier Robert * Revision 1.1 1997/10/06 20:55:37 kardel 74c0b746e5SOllivier Robert * new parse structure 75c0b746e5SOllivier Robert * 76c0b746e5SOllivier Robert */ 77