<commit_before>/*                               -*- Mode: C -*- 
 * <strport.h> --- Linux STREAMS portability declarations. 
 * Author          : gram & nemo
 * Created On      : Fri Mar 24 2:40:21 1995
 * RCS Id          ; $Id: strport.h,v 1.4 1996/01/20 17:00:53 dave Exp $
 * Last Modified By: <NAME>
 * Restrictions    : SHAREd items can be read/writen by usr
 *                 : EXPORTed items can only be read by usr
 *                 : PRIVATEd items cannot be read nor writen
 * Purpose         : All system dependent stuff goes here. The idea
 *                 : is that different versions of this file can be
 *                 : used to port STREAMS to other operating systems
 *                 : as well as providing a user-space testbed environment.
 *
 *    Copyright (C) 1995  <NAME>, <NAME>
 *    Copyright (C) 1997  <NAME>, Gcom, Inc <<EMAIL>>
 *
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 * 
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,
 * MA 02139, USA.
 * 
 *
 *    You can reach us by email to any of
 *    <EMAIL>, <EMAIL>
 */

#ifndef _STRPORT_H
#define _STRPORT_H

#ident "@(#) LiS strport.h 2.2 10/25/02 21:32:03 "

/*  *******************************************************************  */
/*                               Dependencies                            */

#if	defined( __MSDOS__)
#include <sys/LiS/dos-mdep.h>
#elif defined(LINUX)
#include <sys/LiS/linux-mdep.h>
#elif defined(USER)
#include <sys/LiS/user-mdep.h>
#elif defined (QNX)
#include <sys/LiS/qnx-mdep.h>
#elif defined(SYS_SCO)
#include <sys/LiS/sco-mdep.h>
#elif defined(SYS_54)
#include <sys/LiS/sys54-mdep.h>
#elif defined(PORTABLE)
#include <sys/LiS/port-mdep.h>
#endif /* !__MSDOS__ */

/*
 * Establish some version dependent sub-defines for all to see.
 */
/*
 * If neither KERNEL_2_0 nor KERNEL_2_1 is defined then we are
 * being compiled as portable code.  We want to use portable constructs
 * for such things as poll.
 */
#if !defined(KERNEL_2_0) && !defined(KERNEL_2_1)
#define PORTABLE_POLL   1
#else
# if defined(KERNEL_2_0)
# define PORTABLE_POLL   1
# elif defined(KERNEL_2_1)
# define LINUX_POLL      2<commit_msg>Import from CVS Tue Oct  7 15:27:10 2003 -0600<commit_after>/*                               -*- Mode: C -*- 
 * <strport.h> --- Linux STREAMS portability declarations. 
 * Author          : gram & nemo
 * Created On      : Fri Mar 24 2:40:21 1995
 * RCS Id          ; $Id: strport.h,v 1.4 1996/01/20 17:00:53 dave Exp $
 * Last Modified By: <NAME>
 * Restrictions    : SHAREd items can be read/writen by usr
 *                 : EXPORTed items can only be read by usr
 *                 : PRIVATEd items cannot be read nor writen
 * Purpose         : All system dependent stuff goes here. The idea
 *                 : is that different versions of this file can be
 *                 : used to port STREAMS to other operating systems
 *                 : as well as providing a user-space testbed environment.
 *
 *    Copyright (C) 1995  <NAME>, <NAME>
 *    Copyright (C) 1997  <NAME>, Gcom, Inc <<EMAIL>>
 *
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 * 
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,
 * MA 02139, USA.
 * 
 *
 *    You can reach us by email to any of
 *    <EMAIL>, <EMAIL>
 */

#ifndef _STRPORT_H
#define _STRPORT_H

#ident "@(#) LiS strport.h 2.5 10/7/03 15:27:10 "

/*  *******************************************************************  */
/*                               Dependencies                            */

#if	defined( __MSDOS__)
#include <sys/LiS/dos-mdep.h>
#elif defined(LINUX)
#include <sys/LiS/linux-mdep.h>
#elif defined(USER)
#include <sys/LiS/user-mdep.h>
#elif defined (QNX)
#include <sys/LiS/qnx-mdep.h>
#elif defined(SYS_SCO)
#include <sys/LiS/sco-mdep.h>
#elif defined(SYS_54)
#include <sys/LiS/sys54-mdep.h>
#elif defined(PORTABLE)
#include <sys/LiS/port-mdep.h>
#endif /* !__MSDOS__ */

/*
 * linux/types.h does not have intptr_t or uintptr_t
 * For user level pgms, stdint.h supplies these
 */
#if defined(__KERNEL__) && !defined(_INTTYPES_H)
#define _INTTYPES_H	1		/* kernel types.h is just as good */
 					/* with the addition of these */
# if defined(_ASM_IA64_UNISTD_H)
#  ifndef intptr_t
typedef long		_intptr_t;
#  define intptr_t	_intptr_t
#  endif
typedef unsigned long	uintptr_t;
# else					/* _ASM_IA64_UNISTD_H */
#  ifndef intptr_t
typedef int		_intptr_t;
#  define intptr_t	_intptr_t
#  endif
typedef unsigned int	uintptr_t;
# endif					/* _ASM_IA64_UNISTD_H */

/*
 * Define some selected formatting phrases that we would have gotten
 * had we included the real inttypes.h.
 */
# if defined(_ASM_IA64_UNISTD_H)
#  define PRIx32	"x"
#  define PRIx64	"qx"
#  define PRId32	"d"
#  define PRId64	"qd"
#  define PRIu32	"u"
#  define PRIu64	"qu"
# else					/* _ASM_IA64_UNISTD_H */
#  define PRIx32	"x"
#  define PRIx64	"lx"
#  define PRId32	"d"
#  define PRId64	"ld"
#  define PRIu32	"u"
#  define PRIu64	"lu"
# endif					/* _ASM_IA64_UNISTD_H */

#endif

/*
 * Establish some version dependent sub-defines for all to see.
 */
/*
 * If neither KERNEL_2_0 nor KERNEL_2_1 is defined then we are
 * being compiled as portable code.  We want to use portable constructs
 * for such things as poll.
 */
#if !defined(KERNEL_2_0) && !defined(KERNEL_2_1)
#define PORTABLE_POLL   1
#else
# if defined(KERNEL_2_0)
# define PORTABLE_POLL   1
# elif defined(KERNEL_2_1)
# define LINUX_POLL      2
{'fraction_non_alphanumeric': 0.11616009629852543, 'fraction_numerical': 0.03144748721035209, 'mean_word_length': 2.8069873997709047, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1428265', 'n_tokens_mistral': 2359, 'n_tokens_neox': 2162, 'n_words': 775}