<commit_before>/*
 **      $Id$
 */
/************************************************************************
 *                                                                      *
 *                             Copyright (C)  2002                      *
 *                                Internet2                             *
 *                             All Rights Reserved                      *
 *                                                                      *
 ************************************************************************/
/*
 **        File:        owamp.h
 **
 **        Author:      <NAME>
 **                     <NAME>
 **
 **        Date:        Wed Mar 20 11:10:33  2002
 **
 **        Description:        
 **        This header file describes the owamp API. The owamp API is intended
 **        to provide a portable layer for implementing the owamp protocol.
 */
#ifndef        OWAMP_H
#define        OWAMP_H

#include <I2util/util.h>

/*
 * Portablility sanity checkes.
 */
#if        HAVE_CONFIG_H
#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION

#include <owamp/config.h>

#if        !HAVE_ERRNO_H || !HAVE_NETDB_H || !HAVE_STDLIB_H || !HAVE_SYS_PARAM_H
#error        Missing Header!
#endif

#if        !HAVE_GETADDRINFO || !HAVE_SOCKET
#error        Missing needed networking capabilities! (getaddrinfo and socket)
#endif


#if        !HAVE_MALLOC || !HAVE_MEMSET
#error        Missing needed memory functions!
#endif
#endif        /* HAVE_CONFIG_H */

#ifndef        HAVE___ATTRIBUTE__
#define __attribute__(x)
#endif

#if        defined HAVE_DECL_FSEEKO && !HAVE_DECL_FSEEKO
#define fseeko(a,b,c) fseek(a,b,c)
#endif

#include <limits.h>
#include <sys/types.h>
#ifdef  HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <netdb.h>
#include <time.h>

/* Deal with needed inttypes.h - hopefully these were already defined... */
#ifndef PRIuPTR
#if SIZEOF_VOID_P == SIZEOF_UNSIGNED_LONG
#define	PRIuPTR "lu"
#elif SIZEOF_VOID_P == SIZEOF_UNSIGNED_LONG_LONG
#define PRIuPTR "llu"
#else
#error "Need real PRIuPTR defined by inttypes.h on this system"
#endif
#endif  /* PRIuPTR */

#ifndef PRIu64
#if SIZEOF_UINT64_T == SIZEOF_UNSIGNED_LONG
#define	PRIu64 "lu"<commit_msg>mod for 4.X version FreeBSD... (This one is trivial - if there are difficult mods later, I will just remove 4.X from the supported systems list. It is dated now...)<commit_after>/*
 **      $Id$
 */
/************************************************************************
 *                                                                      *
 *                             Copyright (C)  2002                      *
 *                                Internet2                             *
 *                             All Rights Reserved                      *
 *                                                                      *
 ************************************************************************/
/*
 **        File:        owamp.h
 **
 **        Author:      <NAME>
 **                     <NAME>
 **
 **        Date:        Wed Mar 20 11:10:33  2002
 **
 **        Description:        
 **        This header file describes the owamp API. The owamp API is intended
 **        to provide a portable layer for implementing the owamp protocol.
 */
#ifndef        OWAMP_H
#define        OWAMP_H

#include <I2util/util.h>

/*
 * Portablility sanity checkes.
 */
#if        HAVE_CONFIG_H
#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION

#include <owamp/config.h>

#if        !HAVE_ERRNO_H || !HAVE_NETDB_H || !HAVE_STDLIB_H || !HAVE_SYS_PARAM_H
#error        Missing Header!
#endif

#if        !HAVE_GETADDRINFO || !HAVE_SOCKET
#error        Missing needed networking capabilities! (getaddrinfo and socket)
#endif


#if        !HAVE_MALLOC || !HAVE_MEMSET
#error        Missing needed memory functions!
#endif
#endif        /* HAVE_CONFIG_H */

#ifndef        HAVE___ATTRIBUTE__
#define __attribute__(x)
#endif

#if        defined HAVE_DECL_FSEEKO && !HAVE_DECL_FSEEKO
#define fseeko(a,b,c) fseek(a,b,c)
#endif

#include <limits.h>
#include <sys/types.h>
#ifdef  HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/socket.h>
/* sys/param.h defines MIN/MAX on some systems... */
#ifdef MIN
#undef MIN
#endif
#ifdef MAX
#undef MAX
#endif
#include <sys/param.h>
#include <netdb.h>
#include <time.h>

/* Deal with needed inttypes.h - hopefully these were already defined... */
#ifndef PRIuPTR
#if SIZEOF_VOID_P == SIZEOF_UNSIGNED_LONG
#define	PRIuPTR "lu"
#elif SIZEOF_VOID_P == SIZEOF_UNSIGNED_LONG_LONG
#define PRIuPTR "llu"
#else
#error "Need real PRIuPTR defined by inttypes.h on this system"
#endif
#endif  /* PRIuPTR */

#ifndef PRIu64
#if SIZEOF_UINT64_T == SIZEOF_UNSIGNED_LONG
#define	PRIu64 "lu"
{'fraction_non_alphanumeric': 0.1532161406312425, 'fraction_numerical': 0.00998801438274071, 'mean_word_length': 2.1060794044665014, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7607837', 'n_tokens_mistral': 1606, 'n_tokens_neox': 1500, 'n_words': 397}