This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ICE in emit_move_insn when compiling with -march=i686


Attached preprocessed C++ code will let current gcc CVS ICE when compiling
with -march=i686

napstertransfer.cpp: In method `NapsterTransfer::NapsterTransfer (long
napstertransfer.cpp: int, int, const char *, const char *, int, const
napstertransfer.cpp: char *)':
napstertransfer.cpp:43: Internal compiler error in `emit_move_insn', at
napstertransfer.cpp:43: expr.c:2550



-- 
Philipp Thomas <pthomas@suse.de>
SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany

#define NINODE  50              /* number of in core inodes */
#define NPROC   30              /* max number of processes */
 	-- Version 7 UNIX fuer PDP 11, /usr/include/sys/param.h
# 1 "napstertransfer.cpp"
 







 








# 1 "napstertransfer.h" 1
 







 












 





# 1 "/usr/lib/qt/include/qstring.h" 1
 
# 24 "/usr/lib/qt/include/qstring.h"





# 1 "/usr/lib/qt/include/qarray.h" 1
 
# 23 "/usr/lib/qt/include/qarray.h"





# 1 "/usr/lib/qt/include/qgarray.h" 1
 
# 23 "/usr/lib/qt/include/qgarray.h"





# 1 "/usr/lib/qt/include/qshared.h" 1
 
# 23 "/usr/lib/qt/include/qshared.h"





# 1 "/usr/lib/qt/include/qglobal.h" 1
 
# 23 "/usr/lib/qt/include/qglobal.h"









 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

# 83 "/usr/lib/qt/include/qglobal.h"


# 115 "/usr/lib/qt/include/qglobal.h"










 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

# 157 "/usr/lib/qt/include/qglobal.h"


# 187 "/usr/lib/qt/include/qglobal.h"







 
 
 





 
 
 










 
 
 


















 
 
 
 
 
 



 
 
 

# 267 "/usr/lib/qt/include/qglobal.h"










 
 
 





# 293 "/usr/lib/qt/include/qglobal.h"











typedef unsigned char	uchar;
typedef unsigned short	ushort;
typedef unsigned	uint;
typedef unsigned long	ulong;
typedef char	       *pchar;
typedef uchar	       *puchar;
typedef const char     *pcchar;


 
 
 


const bool FALSE = 0;
const bool TRUE = !0;



 
 
 





inline int qRound( double d )
{
    return d > 0.0 ? int(d+0.5) : int(d-0.5);
}


 
 
 


typedef char		INT8;			 
typedef unsigned char	UINT8;			 
typedef short		INT16;			 
typedef unsigned short	UINT16;			 
typedef int		INT32;			 
typedef unsigned int	UINT32;			 


typedef char		Q_INT8;			 
typedef unsigned char	Q_UINT8;		 
typedef short		Q_INT16;		 
typedef unsigned short	Q_UINT16;		 
typedef int		Q_INT32;		 
typedef unsigned int	Q_UINT32;		 


 
 
 

class QDataStream;


 
 
 

  const char *qVersion();
  bool qSysInfo( int *wordSize, bool *bigEndian );


 
 
 












 
 
 
 





# 410 "/usr/lib/qt/include/qglobal.h"



 
 
 





 
 
 





 
 
 









 
 
 











  void debug( const char *, ... )	 

    __attribute__ ((format (printf, 1, 2)))

;

  void warning( const char *, ... )	 

    __attribute__ ((format (printf, 1, 2)))

;

  void fatal( const char *, ... )	 

    __attribute__ ((format (printf, 1, 2)))

;









  bool chk_pointer( bool c, const char *, int );







enum QtMsgType { QtDebugMsg, QtWarningMsg, QtFatalMsg };

typedef void (*msg_handler)(QtMsgType, const char *);
  msg_handler qInstallMsgHandler( msg_handler );


 
 
 




  void qSuppressObsoleteWarnings( bool = TRUE );



  void qObsolete( const char *obj, const char *oldfunc,
			 const char *newfunc );
  void qObsolete( const char *obj, const char *oldfunc );
  void qObsolete( const char *message );




# 28 "/usr/lib/qt/include/qshared.h" 2




struct QShared
{
    QShared()		{ count = 1; }
    void ref()		{ count++; }
    bool deref()	{ return !--count; }
    uint count;
};



# 28 "/usr/lib/qt/include/qgarray.h" 2




class   QGArray					 
{
friend class QBuffer;
public:
    struct array_data : public QShared {	 
	array_data()	{ data=0; len=0; }
	char *data;				 
	uint  len;
    };
    QGArray();
protected:
    QGArray( int, int );			 
    QGArray( int size );			 
    QGArray( const QGArray &a );		 
    virtual ~QGArray();

    QGArray    &operator=( const QGArray &a ) { return assign( a ); }

    virtual void detach()	{ duplicate(*this); }

    char       *data()	 const	{ return shd->data; }
    uint	nrefs()	 const	{ return shd->count; }
    uint	size()	 const	{ return shd->len; }
    bool	isEqual( const QGArray &a ) const;

    bool	resize( uint newsize );

    bool	fill( const char *d, int len, uint sz );

    QGArray    &assign( const QGArray &a );
    QGArray    &assign( const char *d, uint len );
    QGArray    &duplicate( const QGArray &a );
    QGArray    &duplicate( const char *d, uint len );
    void	store( const char *d, uint len );

    array_data *sharedBlock()	const		{ return shd; }
    void	setSharedBlock( array_data *p ) { shd=(array_data*)p; }

    QGArray    &setRawData( const char *d, uint len );
    void	resetRawData( const char *d, uint len );

    int		find( const char *d, uint index, uint sz ) const;
    int		contains( const char *d, uint sz ) const;

    char       *at( uint index ) const;

    bool	setExpand( uint index, const char *d, uint sz );

protected:
    virtual array_data *newData()		    { return new array_data; }
    virtual void	deleteData( array_data *p ) { delete p; }

private:
    static void msg_index( uint );
    array_data *shd;
};


inline char *QGArray::at( uint index ) const
{

    if ( index >= size() ) {
	msg_index( index );
	index = 0;
    }

    return &shd->data[index];
}



# 28 "/usr/lib/qt/include/qarray.h" 2






# 1 "/usr/lib/qt/include/qgeneric.h" 1
 
# 23 "/usr/lib/qt/include/qgeneric.h"





# 1 "/usr/lib/qt/include/qglobal.h" 1
 
# 23 "/usr/lib/qt/include/qglobal.h"

# 513 "/usr/lib/qt/include/qglobal.h"

# 28 "/usr/lib/qt/include/qgeneric.h" 2




 





 
 










 
 



















# 34 "/usr/lib/qt/include/qarray.h" 2














# 96 "/usr/lib/qt/include/qarray.h"











template<class type> class   QArrayT : public QGArray
{
protected:
    QArrayT( int, int ) : QGArray( 0, 0 ) {}
public:
    QArrayT()			{}
    QArrayT( int size ) : QGArray(size*sizeof(type)) {}
    QArrayT( const QArrayT<type> &a ) : QGArray(a) {}
   ~QArrayT()			{}
    QArrayT<type> &operator=(const QArrayT<type> &a)
				{ return (QArrayT<type>&)QGArray::assign(a); }
    type *data()    const	{ return (type *)QGArray::data(); }
    uint  nrefs()   const	{ return QGArray::nrefs(); }
    uint  size()    const	{ return QGArray::size()/sizeof(type); }
    bool  isEmpty() const	{ return QGArray::size() == 0; }
    bool  isNull()  const	{ return QGArray::data() == 0; }
    bool  resize( uint size )	{ return QGArray::resize(size*sizeof(type)); }
    bool  truncate( uint pos )	{ return QGArray::resize(pos*sizeof(type)); }
    bool  fill( const type &d, int size=-1 )
	{ return QGArray::fill((char*)&d,size,sizeof(type) ); }
    void  detach()		{ QGArray::detach(); }
    QArrayT<type>   copy() const
	{ QArrayT<type> tmp; return tmp.duplicate(*this); }
    QArrayT<type>& assign( const QArrayT<type>& a )
	{ return (QArrayT<type>&)QGArray::assign(a); }
    QArrayT<type>& assign( const type *a, uint n )
	{ return (QArrayT<type>&)QGArray::assign((char*)a,n*sizeof(type)); }
    QArrayT<type>& duplicate( const QArrayT<type>& a )
	{ return (QArrayT<type>&)QGArray::duplicate(a); }
    QArrayT<type>& duplicate( const type *a, uint n )
	{ return (QArrayT<type>&)QGArray::duplicate((char*)a,n*sizeof(type)); }
    QArrayT<type>& setRawData( const type *a, uint n )
	{ return (QArrayT<type>&)QGArray::setRawData((char*)a,
						     n*sizeof(type)); }
    void resetRawData( const type *a, uint n )
	{ QGArray::resetRawData((char*)a,n*sizeof(type)); }
    int	 find( const type &d, uint i=0 ) const
	{ return QGArray::find((char*)&d,i,sizeof(type)); }
    int	 contains( const type &d ) const
	{ return QGArray::contains((char*)&d,sizeof(type)); }
    type& operator[]( int i ) const
	{ return (type &)(*(type *)QGArray::at(i*sizeof(type))); }
    type& at( uint i ) const
	{ return (type &)(*(type *)QGArray::at(i*sizeof(type))); }
	 operator const type*() const { return (const type *)QGArray::data(); }
    bool operator==( const QArrayT<type> &a ) const { return isEqual(a); }
    bool operator!=( const QArrayT<type> &a ) const { return !isEqual(a); }
};






# 29 "/usr/lib/qt/include/qstring.h" 2



# 1 "/usr/include/string.h" 1 3
 
# 18 "/usr/include/string.h" 3

 






# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3




 
# 80 "/usr/include/features.h" 3


 



















 





 



 







 
# 138 "/usr/include/features.h" 3


 









 





 



























# 196 "/usr/include/features.h" 3


































 



 








 




 

# 1 "/usr/include/sys/cdefs.h" 1 3
 
# 18 "/usr/include/sys/cdefs.h" 3




 




 





 








 




# 71 "/usr/include/sys/cdefs.h" 3


 







 



# 103 "/usr/include/sys/cdefs.h" 3



 








 
# 124 "/usr/include/sys/cdefs.h" 3







 








 








 









 







# 250 "/usr/include/features.h" 2 3


 








 





 

 








# 1 "/usr/include/gnu/stubs.h" 1 3
 






































# 278 "/usr/include/features.h" 2 3




# 26 "/usr/include/string.h" 2 3


extern "C" {

 


# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 1 3
 
# 19 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3

 






 








 


# 48 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3



 


 





 


# 90 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 





 


















 





 

 

# 160 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 


































typedef unsigned int size_t;






















 




 

# 303 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


# 315 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 
# 348 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3




 





















# 33 "/usr/include/string.h" 2 3



 
extern void * memcpy (void * __restrict __dest,
			    __const void * __restrict __src, size_t __n) throw ();
 

extern void * memmove (void * __dest, __const void * __src,
			     size_t __n) throw ();

 



extern void * memccpy (void * __dest, __const void * __src,
			     int __c, size_t __n) throw ();



 
extern void * memset (void * __s, int __c, size_t __n) throw ();

 
extern int memcmp (__const void * __s1, __const void * __s2,
			size_t __n) throw ();

 
extern void * memchr (__const void * __s, int __c, size_t __n) throw ();








 
extern char *strcpy (char *__restrict __dest,
			  __const char *__restrict __src) throw ();
 
extern char *strncpy (char *__restrict __dest,
			   __const char *__restrict __src, size_t __n) throw ();

 
extern char *strcat (char *__restrict __dest,
			  __const char *__restrict __src) throw ();
 
extern char *strncat (char *__restrict __dest,
			   __const char *__restrict __src, size_t __n) throw ();

 
extern int strcmp (__const char *__s1, __const char *__s2) throw ();
 
extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) throw ();

 
extern int strcoll (__const char *__s1, __const char *__s2) throw ();
 
extern size_t strxfrm (char *__restrict __dest,
			    __const char *__restrict __src, size_t __n) throw ();

# 107 "/usr/include/string.h" 3



 
extern char *__strdup (__const char *__s) throw ();
extern char *strdup (__const char *__s) throw ();


 






# 143 "/usr/include/string.h" 3


 
extern char *strchr (__const char *__s, int __c) throw ();
 
extern char *strrchr (__const char *__s, int __c) throw ();







 

extern size_t strcspn (__const char *__s, __const char *__reject) throw ();
 

extern size_t strspn (__const char *__s, __const char *__accept) throw ();
 
extern char *strpbrk (__const char *__s, __const char *__accept) throw ();
 
extern char *strstr (__const char *__haystack, __const char *__needle) throw ();









 
extern char *strtok (char *__restrict __s,
			  __const char *__restrict __delim) throw ();

 

extern char *__strtok_r (char *__restrict __s,

			      __const char *__restrict __delim,
# 183 "/usr/include/string.h" 3
			      char **__restrict __save_ptr) throw ();

extern char *strtok_r (char *__restrict __s,

			    __const char *__restrict __delim,
# 187 "/usr/include/string.h" 3
			    char **__restrict __save_ptr) throw ();


# 203 "/usr/include/string.h" 3



 
extern size_t strlen (__const char *__s) throw ();








 
extern char *strerror (int __errnum) throw ();

 

extern char *__strerror_r (int __errnum, char *__buf, size_t __buflen) throw ();
extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) throw ();


 

extern void __bzero (void * __s, size_t __n) throw ();


 
extern void bcopy (__const void * __src, void * __dest, size_t __n) throw ();

 
extern void bzero (void * __s, size_t __n) throw ();

 
extern int bcmp (__const void * __s1, __const void * __s2, size_t __n) throw ();

 
extern char *index (__const char *__s, int __c) throw ();

 
extern char *rindex (__const char *__s, int __c) throw ();

 

extern int __ffs (int __i) throw () __attribute__ ((const));
extern int ffs (int __i) throw () __attribute__ ((const));

 









 
extern int __strcasecmp (__const char *__s1, __const char *__s2) throw ();
extern int strcasecmp (__const char *__s1, __const char *__s2) throw ();

 
extern int strncasecmp (__const char *__s1, __const char *__s2,
			     size_t __n) throw ();


# 277 "/usr/include/string.h" 3



 

extern char *strsep (char **__restrict __stringp,
			  __const char *__restrict __delim) throw ();


# 319 "/usr/include/string.h" 3




# 347 "/usr/include/string.h" 3



 }


# 32 "/usr/lib/qt/include/qstring.h" 2







 



# 54 "/usr/lib/qt/include/qstring.h"



 



  void *qmemmove( void *dst, const void *src, uint len );





  char *qstrdup( const char * );

  inline uint cstrlen( const char *str )
{ return strlen(str); }

  inline uint qstrlen( const char *str )
{ return str ? strlen(str) : 0; }




  inline char *cstrcpy( char *dst, const char *src )
{ return strcpy(dst,src); }

  inline char *qstrcpy( char *dst, const char *src )
{ return src ? strcpy(dst, src) : 0; }




  char *qstrncpy( char *dst, const char *src, uint len );

  inline int cstrcmp( const char *str1, const char *str2 )
{ return strcmp(str1,str2); }

  inline int qstrcmp( const char *str1, const char *str2 )
{ return (str1 && str2) ? strcmp(str1,str2) : (int)((long)str2 - (long)str1); }




  inline int cstrncmp( const char *str1, const char *str2, uint len )
{ return strncmp(str1,str2,len); }

  inline int qstrncmp( const char *str1, const char *str2, uint len )
{ return (str1 && str2) ? strncmp(str1,str2,len) :
			  (int)((long)str2 - (long)str1); }




  int qstricmp( const char *, const char * );
  int qstrnicmp( const char *, const char *, uint len );







 



  UINT16 qchecksum( const char *s, uint len );


  Q_UINT16 qChecksum( const char *s, uint len );

 
















 



  QDataStream &operator<<( QDataStream &, const QArrayT<char> & );
  QDataStream &operator>>( QDataStream &, QArrayT<char> & );


 



class QRegExp;

class   QString : public QArrayT<char>		 
{
public:
    QString() {}				 
    QString( int size );			 
    QString( const QString &s ) : QArrayT<char>( s ) {}
    QString( const char *str );			 
    QString( const char *str, uint maxlen );	 

    QString    &operator=( const QString &s );	 
    QString    &operator=( const char *str );	 

    bool	isNull()	const;
    bool	isEmpty()	const;
    uint	length()	const;
    bool	resize( uint newlen );
    bool	truncate( uint pos );
    bool	fill( char c, int len = -1 );

    QString	copy()	const;

    QString    &sprintf( const char *format, ... );

    int		find( char c, int index=0, bool cs=TRUE ) const;
    int		find( const char *str, int index=0, bool cs=TRUE ) const;
    int		find( const QRegExp &, int index=0 ) const;
    int		findRev( char c, int index=-1, bool cs=TRUE) const;
    int		findRev( const char *str, int index=-1, bool cs=TRUE) const;
    int		findRev( const QRegExp &, int index=-1 ) const;
    int		contains( char c, bool cs=TRUE ) const;
    int		contains( const char *str, bool cs=TRUE ) const;
    int		contains( const QRegExp & ) const;

    QString	left( uint len )  const;
    QString	right( uint len ) const;
    QString	mid( uint index, uint len) const;

    QString	leftJustify( uint width, char fill=' ', bool trunc=FALSE)const;
    QString	rightJustify( uint width, char fill=' ',bool trunc=FALSE)const;

    QString	lower() const;
    QString	upper() const;

    QString	stripWhiteSpace()	const;
    QString	simplifyWhiteSpace()	const;

    QString    &insert( uint index, const char * );
    QString    &insert( uint index, char );
    QString    &append( const char * );
    QString    &prepend( const char * );
    QString    &remove( uint index, uint len );
    QString    &replace( uint index, uint len, const char * );
    QString    &replace( const QRegExp &, const char * );

    short	toShort( bool *ok=0 )	const;
    ushort	toUShort( bool *ok=0 )	const;
    int		toInt( bool *ok=0 )	const;
    uint	toUInt( bool *ok=0 )	const;
    long	toLong( bool *ok=0 )	const;
    ulong	toULong( bool *ok=0 )	const;
    float	toFloat( bool *ok=0 )	const;
    double	toDouble( bool *ok=0 )	const;

    QString    &setStr( const char *s );
    QString    &setNum( short );
    QString    &setNum( ushort );
    QString    &setNum( int );
    QString    &setNum( uint );
    QString    &setNum( long );
    QString    &setNum( ulong );
    QString    &setNum( float, char f='g', int prec=6 );
    QString    &setNum( double, char f='g', int prec=6 );

    bool	setExpand( uint index, char c );

		operator const char *() const;
    QString    &operator+=( const char *str );
    QString    &operator+=( char c );
};


 



  QDataStream &operator<<( QDataStream &, const QString & );
  QDataStream &operator>>( QDataStream &, QString & );


 



inline QString &QString::operator=( const QString &s )
{ return (QString&)assign( s ); }

inline QString &QString::operator=( const char *str )
{ return (QString&)duplicate( str, qstrlen(str)+1 ); }

inline bool QString::isNull() const
{ return data() == 0; }

inline bool QString::isEmpty() const
{ return data() == 0 || *data() == '\0'; }

inline uint QString::length() const
{ return qstrlen( data() ); }

inline bool QString::truncate( uint pos )
{ return resize(pos+1); }

inline QString QString::copy() const
{ return QString( data() ); }

inline QString &QString::prepend( const char *s )
{ return insert(0,s); }

inline QString &QString::append( const char *s )
{ return operator+=(s); }

inline QString &QString::setNum( short n )
{ return setNum((long)n); }

inline QString &QString::setNum( ushort n )
{ return setNum((ulong)n); }

inline QString &QString::setNum( int n )
{ return setNum((long)n); }

inline QString &QString::setNum( uint n )
{ return setNum((ulong)n); }

inline QString &QString::setNum( float n, char f, int prec )
{ return setNum((double)n,f,prec); }

inline QString::operator const char *() const
{ return (const char *)data(); }


 



  inline bool operator==( const QString &s1, const QString &s2 )
{ return qstrcmp(s1.data(),s2.data()) == 0; }

  inline bool operator==( const QString &s1, const char *s2 )
{ return qstrcmp(s1.data(),s2) == 0; }

  inline bool operator==( const char *s1, const QString &s2 )
{ return qstrcmp(s1,s2.data()) == 0; }

  inline bool operator!=( const QString &s1, const QString &s2 )
{ return qstrcmp(s1.data(),s2.data()) != 0; }

  inline bool operator!=( const QString &s1, const char *s2 )
{ return qstrcmp(s1.data(),s2) != 0; }

  inline bool operator!=( const char *s1, const QString &s2 )
{ return qstrcmp(s1,s2.data()) != 0; }

  inline bool operator<( const QString &s1, const char *s2 )
{ return qstrcmp(s1.data(),s2) < 0; }

  inline bool operator<( const char *s1, const QString &s2 )
{ return qstrcmp(s1,s2.data()) < 0; }

  inline bool operator<=( const QString &s1, const char *s2 )
{ return qstrcmp(s1.data(),s2) <= 0; }

  inline bool operator<=( const char *s1, const QString &s2 )
{ return qstrcmp(s1,s2.data()) <= 0; }

  inline bool operator>( const QString &s1, const char *s2 )
{ return qstrcmp(s1.data(),s2) > 0; }

  inline bool operator>( const char *s1, const QString &s2 )
{ return qstrcmp(s1,s2.data()) > 0; }

  inline bool operator>=( const QString &s1, const char *s2 )
{ return qstrcmp(s1.data(),s2) >= 0; }

  inline bool operator>=( const char *s1, const QString &s2 )
{ return qstrcmp(s1,s2.data()) >= 0; }

  inline QString operator+( const QString &s1, const QString &s2 )
{
    QString tmp( s1.data() );
    tmp += s2;
    return tmp;
}

  inline QString operator+( const QString &s1, const char *s2 )
{
    QString tmp( s1.data() );
    tmp += s2;
    return tmp;
}

  inline QString operator+( const char *s1, const QString &s2 )
{
    QString tmp( s1 );
    tmp += s2;
    return tmp;
}

  inline QString operator+( const QString &s1, char c2 )
{
    QString tmp( s1.data() );
    tmp += c2;
    return tmp;
}

  inline QString operator+( char c1, const QString &s2 )
{
    QString tmp;
    tmp += c1;
    tmp += s2;
    return tmp;
}



# 28 "napstertransfer.h" 2


# 1 "/usr/include/sys/types.h" 1 3
 
# 18 "/usr/include/sys/types.h" 3

 






# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 26 "/usr/include/sys/types.h" 2 3


extern "C" {

# 1 "/usr/include/bits/types.h" 1 3
 
# 18 "/usr/include/bits/types.h" 3

 






# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 26 "/usr/include/bits/types.h" 2 3



# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 1 3
 
# 19 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3

 






 








 


# 48 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3



 


 





 


# 90 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 





 


















 





 

 

# 160 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 


# 217 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3





 




 

# 303 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


# 315 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 
# 348 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3




 





















# 29 "/usr/include/bits/types.h" 2 3


 
typedef unsigned char __u_char;
typedef unsigned short __u_short;
typedef unsigned int __u_int;
typedef unsigned long __u_long;

__extension__ typedef unsigned long long int __u_quad_t;
__extension__ typedef long long int __quad_t;
# 48 "/usr/include/bits/types.h" 3

typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;

__extension__ typedef signed long long int __int64_t;
__extension__ typedef unsigned long long int __uint64_t;

typedef __quad_t *__qaddr_t;

typedef __u_quad_t __dev_t;		 
typedef __u_int __uid_t;		 
typedef __u_int __gid_t;		 
typedef __u_long __ino_t;		 
typedef __u_int __mode_t;		 
typedef __u_int __nlink_t; 		 
typedef long int __off_t;		 
typedef __quad_t __loff_t;		 
typedef int __pid_t;			 
typedef int __ssize_t;			 
typedef __u_long __rlim_t;		 
typedef __u_quad_t __rlim64_t;		 
typedef __u_int __id_t;			 

typedef struct
  {
    int __val[2];
  } __fsid_t;				 

 
typedef int __daddr_t;			 
typedef char *__caddr_t;
typedef long int __time_t;
typedef long int __swblk_t;		 

typedef long int __clock_t;

 
typedef unsigned long int __fd_mask;

 


 




 
typedef struct
  {
     





    __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))];


  } __fd_set;


typedef int __key_t;

 
typedef unsigned short int __ipc_pid_t;


 

 
typedef long int __blkcnt_t;
typedef __quad_t __blkcnt64_t;

 
typedef __u_long __fsblkcnt_t;
typedef __u_quad_t __fsblkcnt64_t;

 
typedef __u_long __fsfilcnt_t;
typedef __u_quad_t __fsfilcnt64_t;

 
typedef __u_long __ino64_t;

 
typedef __loff_t __off64_t;

 
typedef long int __t_scalar_t;
typedef unsigned long int __t_uscalar_t;

 
typedef int __intptr_t;


 





# 30 "/usr/include/sys/types.h" 2 3



typedef __u_char u_char;
typedef __u_short u_short;
typedef __u_int u_int;
typedef __u_long u_long;
typedef __quad_t quad_t;
typedef __u_quad_t u_quad_t;
typedef __fsid_t fsid_t;


typedef __loff_t loff_t;



typedef __ino_t ino_t;











typedef __dev_t dev_t;




typedef __gid_t gid_t;




typedef __mode_t mode_t;




typedef __nlink_t nlink_t;




typedef __uid_t uid_t;





typedef __off_t off_t;











typedef __pid_t pid_t;




typedef __id_t id_t;



typedef __ssize_t ssize_t;




typedef __daddr_t daddr_t;
typedef __caddr_t caddr_t;



typedef __key_t key_t;






# 1 "/usr/include/time.h" 1 3
 
# 18 "/usr/include/time.h" 3

 














# 51 "/usr/include/time.h" 3



# 62 "/usr/include/time.h" 3








 
typedef __time_t time_t;





# 89 "/usr/include/time.h" 3




# 279 "/usr/include/time.h" 3



# 122 "/usr/include/sys/types.h" 2 3



# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 1 3
 
# 19 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3

 






 








 


# 48 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3



 


 





 


# 90 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 





 


















 





 

 

# 160 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 


# 217 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3





 




 

# 303 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


# 315 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 
# 348 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3




 





















# 125 "/usr/include/sys/types.h" 2 3



 
typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;


 

# 159 "/usr/include/sys/types.h" 3


 







typedef int int8_t __attribute__ ((__mode__ ( __QI__)));
typedef int int16_t __attribute__ ((__mode__ ( __HI__)));
typedef int int32_t __attribute__ ((__mode__ ( __SI__)));
typedef int int64_t __attribute__ ((__mode__ ( __DI__)));


typedef unsigned int u_int8_t __attribute__ ((__mode__ ( __QI__)));
typedef unsigned int u_int16_t __attribute__ ((__mode__ ( __HI__)));
typedef unsigned int u_int32_t __attribute__ ((__mode__ ( __SI__)));
typedef unsigned int u_int64_t __attribute__ ((__mode__ ( __DI__)));

typedef int register_t __attribute__ ((__mode__ (__word__)));


 






 
# 1 "/usr/include/endian.h" 1 3
 
# 18 "/usr/include/endian.h" 3




# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 22 "/usr/include/endian.h" 2 3


 









 
# 1 "/usr/include/bits/endian.h" 1 3
 






# 35 "/usr/include/endian.h" 2 3


 













# 191 "/usr/include/sys/types.h" 2 3


 
# 1 "/usr/include/sys/select.h" 1 3
 
# 19 "/usr/include/sys/select.h" 3

 




# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 25 "/usr/include/sys/select.h" 2 3


 


 
# 1 "/usr/include/bits/select.h" 1 3
 
# 18 "/usr/include/bits/select.h" 3









# 36 "/usr/include/bits/select.h" 3












# 56 "/usr/include/bits/select.h" 3

# 72 "/usr/include/bits/select.h" 3

# 31 "/usr/include/sys/select.h" 2 3


 
# 1 "/usr/include/bits/sigset.h" 1 3
 
# 19 "/usr/include/bits/sigset.h" 3




typedef int __sig_atomic_t;

 


typedef struct
  {
    unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
  } __sigset_t;




 





# 125 "/usr/include/bits/sigset.h" 3

# 34 "/usr/include/sys/select.h" 2 3


 

# 1 "/usr/include/time.h" 1 3
 
# 18 "/usr/include/time.h" 3

 














# 51 "/usr/include/time.h" 3



# 62 "/usr/include/time.h" 3



# 73 "/usr/include/time.h" 3








 

struct timespec
  {
    long int tv_sec;		 
    long int tv_nsec;		 
  };





# 279 "/usr/include/time.h" 3



# 38 "/usr/include/sys/select.h" 2 3


extern "C" {

 



struct timeval;

typedef __fd_mask fd_mask;

 
typedef __fd_set fd_set;

 



 




 






 




extern int __select (int __nfds, __fd_set *__readfds,

			  __fd_set *__writefds, __fd_set *__exceptfds,
# 76 "/usr/include/sys/select.h" 3
			  struct timeval *__timeout) throw ();
extern int select (int __nfds, __fd_set *__readfds,

			__fd_set *__writefds, __fd_set *__exceptfds,
# 79 "/usr/include/sys/select.h" 3
			struct timeval *__timeout) throw ();

# 91 "/usr/include/sys/select.h" 3


 }


# 194 "/usr/include/sys/types.h" 2 3


 
# 1 "/usr/include/sys/sysmacros.h" 1 3
 
# 19 "/usr/include/sys/sysmacros.h" 3




 








# 47 "/usr/include/sys/sysmacros.h" 3



# 197 "/usr/include/sys/types.h" 2 3




 

typedef __blkcnt_t blkcnt_t;	  
typedef __fsblkcnt_t fsblkcnt_t;  
typedef __fsfilcnt_t fsfilcnt_t;  












 }


# 30 "napstertransfer.h" 2

# 1 "/usr/include/netinet/in.h" 1 3
 
# 18 "/usr/include/netinet/in.h" 3




# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 22 "/usr/include/netinet/in.h" 2 3

# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/limits.h" 1 3
 


 





 
# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/syslimits.h" 1 3
 





# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/limits.h" 1 3
 


 

# 114 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/limits.h" 3



# 1 "/usr/include/limits.h" 1 3
 
# 18 "/usr/include/limits.h" 3

 






# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 26 "/usr/include/limits.h" 2 3



 
# 1 "/usr/include/bits/posix1_lim.h" 1 3
 
# 18 "/usr/include/bits/posix1_lim.h" 3

 









 

 


 


 


 


 


 


 


 



 


 


 


 


 



 


 


 


 


 


 


 


 


 


 


 


 



 


 


 


 


 



 
# 1 "/usr/include/bits/local_lim.h" 1 3
 
# 19 "/usr/include/bits/local_lim.h" 3

 





 
# 1 "/usr/include/linux/limits.h" 1 3



















# 27 "/usr/include/bits/local_lim.h" 2 3


 





 

 


 

 


 

 


 



 

# 126 "/usr/include/bits/posix1_lim.h" 2 3








 







# 30 "/usr/include/limits.h" 2 3




# 1 "/usr/include/bits/posix2_lim.h" 1 3
 
# 18 "/usr/include/bits/posix2_lim.h" 3

 







 


 


 


 


 




 




 



 


 



 




 































 



# 34 "/usr/include/limits.h" 2 3








 





 

# 121 "/usr/include/limits.h" 3




  








# 117 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/limits.h" 2 3




# 7 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/syslimits.h" 2 3


# 11 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/limits.h" 2 3





 



 



 




 





 



 












 

 




 



 








 



 













 



# 107 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/limits.h" 3




 









# 23 "/usr/include/netinet/in.h" 2 3

# 1 "/usr/include/stdint.h" 1 3
 
# 18 "/usr/include/stdint.h" 3

 






# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 26 "/usr/include/stdint.h" 2 3


# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 1 3
 
# 19 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3

 






 








 


# 48 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3



 


 





 


# 90 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 





 


















 





 

 

# 160 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 

# 219 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3



 




 





























 
# 267 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


# 280 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3

























# 315 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 
# 348 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3




 





















# 28 "/usr/include/stdint.h" 2 3

# 1 "/usr/include/bits/wordsize.h" 1 3
 
# 18 "/usr/include/bits/wordsize.h" 3


# 29 "/usr/include/stdint.h" 2 3


 

 

 
# 47 "/usr/include/stdint.h" 3


 
typedef unsigned char		uint8_t;
typedef unsigned short int	uint16_t;
typedef unsigned int		uint32_t;



__extension__
typedef unsigned long long int	uint64_t;



 

 
typedef signed char		int_least8_t;
typedef short int		int_least16_t;
typedef int			int_least32_t;



__extension__
typedef long long int		int_least64_t;


 
typedef unsigned char		uint_least8_t;
typedef unsigned short int	uint_least16_t;
typedef unsigned int		uint_least32_t;



__extension__
typedef unsigned long long int	uint_least64_t;



 

 
typedef signed char		int_fast8_t;





typedef int			int_fast16_t;
typedef int			int_fast32_t;
__extension__
typedef long long int		int_fast64_t;


 
typedef unsigned char		uint_fast8_t;





typedef unsigned int		uint_fast16_t;
typedef unsigned int		uint_fast32_t;
__extension__
typedef unsigned long long int	uint_fast64_t;



 








typedef int			intptr_t;


typedef unsigned int		uintptr_t;



 




__extension__
typedef long long int		intmax_t;
__extension__
typedef unsigned long long int	uintmax_t;



 

# 280 "/usr/include/stdint.h" 3



 

# 316 "/usr/include/stdint.h" 3



# 24 "/usr/include/netinet/in.h" 2 3


# 1 "/usr/include/sys/types.h" 1 3
 
# 18 "/usr/include/sys/types.h" 3

 



# 220 "/usr/include/sys/types.h" 3

# 26 "/usr/include/netinet/in.h" 2 3

# 1 "/usr/include/bits/socket.h" 1 3
 
# 19 "/usr/include/bits/socket.h" 3










# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 1 3
 
# 19 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3

 






 








 


# 48 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3



 


 





 


# 90 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 





 


















 





 

 

# 160 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 


# 217 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3





 




 

# 303 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


# 315 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 
# 348 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3




 





















# 29 "/usr/include/bits/socket.h" 2 3


# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/limits.h" 1 3
 


 

# 114 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/limits.h" 3







# 31 "/usr/include/bits/socket.h" 2 3

# 1 "/usr/include/sys/types.h" 1 3
 
# 18 "/usr/include/sys/types.h" 3

 



# 220 "/usr/include/sys/types.h" 3

# 32 "/usr/include/bits/socket.h" 2 3


 
typedef unsigned int socklen_t;

 
enum __socket_type
{
  SOCK_STREAM = 1,		 


  SOCK_DGRAM = 2,		 


  SOCK_RAW = 3,			 

  SOCK_RDM = 4,			 

  SOCK_SEQPACKET = 5,		 


  SOCK_PACKET = 10		 



};

 




























 




























 











 


 
# 1 "/usr/include/bits/sockaddr.h" 1 3
 
# 19 "/usr/include/bits/sockaddr.h" 3

 







 
typedef unsigned short int sa_family_t;

 








 

extern int __libc_sa_len (sa_family_t __af) throw ();


# 133 "/usr/include/bits/socket.h" 2 3


 
struct sockaddr
  {
    sa_family_t sa_family;	 
    char sa_data[14];		 
  };


 









struct sockaddr_storage
  {
    sa_family_t __ss_family;	 
    __uint32_t __ss_align;	 
    char __ss_padding[(128 - (2 * sizeof (__uint32_t)))];
  };


 
enum
  {
    MSG_OOB		= 0x01,	 

    MSG_PEEK		= 0x02,	 

    MSG_DONTROUTE	= 0x04,	 






    MSG_CTRUNC		= 0x08,	 

    MSG_PROXY		= 0x10,	 

    MSG_TRUNC		= 0x20,

    MSG_DONTWAIT	= 0x40,  

    MSG_EOR		= 0x80,  

    MSG_WAITALL		= 0x100,  

    MSG_FIN		= 0x200,

    MSG_SYN		= 0x400,

    MSG_URG		= 0x800,

    MSG_RST		= 0x1000,

    MSG_ERRQUEUE	= 0x2000,  

    MSG_NOSIGNAL	= 0x4000   

  };


 

struct msghdr
  {
    void * msg_name;		 
    socklen_t msg_namelen;	 

    struct iovec *msg_iov;	 
    size_t msg_iovlen;		 

    void * msg_control;	 
    size_t msg_controllen;	 

    int msg_flags;		 
  };

 
struct cmsghdr
  {
    size_t cmsg_len;		 

    int cmsg_level;		 
    int cmsg_type;		 

    unsigned char __cmsg_data[0];  
     

  };

 















extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr,
					   struct cmsghdr *__cmsg) throw ();




extern __inline struct cmsghdr *
__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) throw ()
{
  if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr))
     
    return 0;

  __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg
			       + (((__cmsg->cmsg_len) + sizeof (size_t) - 1) 			 & ~(sizeof (size_t) - 1)));
  if ((unsigned char *) (__cmsg + 1) >= ((unsigned char *) __mhdr->msg_control
					 + __mhdr->msg_controllen)
      || ((unsigned char *) __cmsg + (((__cmsg->cmsg_len) + sizeof (size_t) - 1) 			 & ~(sizeof (size_t) - 1))
	  >= ((unsigned char *) __mhdr->msg_control + __mhdr->msg_controllen)))
     
    return 0;
  return __cmsg;
}


 

enum
  {
    SCM_RIGHTS = 0x01,		 


    SCM_CREDENTIALS = 0x02,      


    __SCM_CONNECT = 0x03	 
  };

 

struct ucred
{
  pid_t pid;			 
  uid_t uid;			 
  gid_t gid;			 
};

 
# 1 "/usr/include/asm/socket.h" 1 3



# 1 "/usr/include/asm/sockios.h" 1 3



 








# 4 "/usr/include/asm/socket.h" 2 3


 
















 







 






 






# 295 "/usr/include/bits/socket.h" 2 3



 
struct linger
  {
    int l_onoff;		 
    int l_linger;		 
  };


# 27 "/usr/include/netinet/in.h" 2 3



extern "C" {

 
enum
  {
    IPPROTO_IP = 0,	    
    IPPROTO_HOPOPTS = 0,    
    IPPROTO_ICMP = 1,	    
    IPPROTO_IGMP = 2,	    
    IPPROTO_IPIP = 4,	    
    IPPROTO_TCP = 6,	    
    IPPROTO_EGP = 8,	    
    IPPROTO_PUP = 12,	    
    IPPROTO_UDP = 17,	    
    IPPROTO_IDP = 22,	    
    IPPROTO_TP = 29,	    
    IPPROTO_IPV6 = 41,      
    IPPROTO_ROUTING = 43,   
    IPPROTO_FRAGMENT = 44,  
    IPPROTO_RSVP = 46,	    
    IPPROTO_GRE = 47,	    
    IPPROTO_ESP = 50,       
    IPPROTO_AH = 51,        
    IPPROTO_ICMPV6 = 58,    
    IPPROTO_NONE = 59,      
    IPPROTO_DSTOPTS = 60,   
    IPPROTO_MTP = 92,	    
    IPPROTO_ENCAP = 98,	    
    IPPROTO_PIM = 103,	    
    IPPROTO_COMP = 108,	    
    IPPROTO_RAW = 255,	    
    IPPROTO_MAX
  };

 
enum
  {
    IPPORT_ECHO = 7,		 
    IPPORT_DISCARD = 9,		 
    IPPORT_SYSTAT = 11,		 
    IPPORT_DAYTIME = 13,	 
    IPPORT_NETSTAT = 15,	 
    IPPORT_FTP = 21,		 
    IPPORT_TELNET = 23,		 
    IPPORT_SMTP = 25,		 
    IPPORT_TIMESERVER = 37,	 
    IPPORT_NAMESERVER = 42,	 
    IPPORT_WHOIS = 43,		 
    IPPORT_MTP = 57,

    IPPORT_TFTP = 69,		 
    IPPORT_RJE = 77,
    IPPORT_FINGER = 79,		 
    IPPORT_TTYLINK = 87,
    IPPORT_SUPDUP = 95,		 


    IPPORT_EXECSERVER = 512,	 
    IPPORT_LOGINSERVER = 513,	 
    IPPORT_CMDSERVER = 514,
    IPPORT_EFSSERVER = 520,

     
    IPPORT_BIFFUDP = 512,
    IPPORT_WHOSERVER = 513,
    IPPORT_ROUTESERVER = 520,

     
    IPPORT_RESERVED = 1024,

     
    IPPORT_USERRESERVED = 5000
  };


 
struct in_addr
  {
    uint32_t s_addr;
  };


 



























 

 

 


 

 




 






 
struct in6_addr
  {
    union
      {
	uint8_t		u6_addr8[16];
	uint16_t	u6_addr16[8];
	uint32_t	u6_addr32[4];



      } in6_u;




  };

extern const struct in6_addr in6addr_any;         
extern const struct in6_addr in6addr_loopback;    






 
# 1 "/usr/include/bits/sockaddr.h" 1 3
 
# 19 "/usr/include/bits/sockaddr.h" 3

 



# 44 "/usr/include/bits/sockaddr.h" 3

# 188 "/usr/include/netinet/in.h" 2 3



 
struct sockaddr_in
  {
    sa_family_t sin_family;
    uint16_t sin_port;			 
    struct in_addr sin_addr;		 

     
    unsigned char sin_zero[sizeof (struct sockaddr) -
			   (sizeof (unsigned short int)) -
			   sizeof (uint16_t) -
			   sizeof (struct in_addr)];
  };

 
struct sockaddr_in6
  {
    sa_family_t sin6_family;
    uint16_t sin6_port;		 
    uint32_t sin6_flowinfo;	 
    struct in6_addr sin6_addr;	 
  };

 
struct ipv6_mreq
  {
     
    struct in6_addr ipv6mr_multiaddr;

     
    unsigned int ipv6mr_interface;
  };

 
# 1 "/usr/include/bits/in.h" 1 3
 
# 18 "/usr/include/bits/in.h" 3

 





 






















 


 




 






 


struct ip_opts
  {
    struct in_addr ip_dst;	 
    char ip_opts[40];		 
  };

 
struct ip_mreq
  {
    struct in_addr imr_multiaddr;	 
    struct in_addr imr_interface;	 
  };

 
struct ip_mreqn
  {
    struct in_addr imr_multiaddr;	 
    struct in_addr imr_address;		 
    int	imr_ifindex;			 
  };

 
struct in_pktinfo
  {
    int ipi_ifindex;			 
    struct in_addr ipi_spec_dst;	 
    struct in_addr ipi_addr;		 
  };

 

























 




 


# 225 "/usr/include/netinet/in.h" 2 3


 






extern uint32_t ntohl (uint32_t __netlong) throw ();
extern uint16_t ntohs (uint16_t __netshort) throw ();
extern uint32_t htonl (uint32_t __hostlong) throw ();
extern uint16_t htons (uint16_t __hostshort) throw ();

# 1 "/usr/include/endian.h" 1 3
 
# 18 "/usr/include/endian.h" 3

# 50 "/usr/include/endian.h" 3

# 239 "/usr/include/netinet/in.h" 2 3


 
# 1 "/usr/include/bits/byteswap.h" 1 3
 
# 19 "/usr/include/bits/byteswap.h" 3





 





# 40 "/usr/include/bits/byteswap.h" 3






 





 

# 68 "/usr/include/bits/byteswap.h" 3


# 79 "/usr/include/bits/byteswap.h" 3







 









# 242 "/usr/include/netinet/in.h" 2 3
















































 
extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) throw ();


















 
struct in6_pktinfo
  {
    struct in6_addr	ipi6_addr;     
    unsigned int	ipi6_ifindex;  
  };

 }


# 31 "napstertransfer.h" 2

# 1 "/usr/include/arpa/inet.h" 1 3
 
# 18 "/usr/include/arpa/inet.h" 3




# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 22 "/usr/include/arpa/inet.h" 2 3


# 1 "/usr/include/sys/types.h" 1 3
 
# 18 "/usr/include/sys/types.h" 3

 



# 220 "/usr/include/sys/types.h" 3

# 24 "/usr/include/arpa/inet.h" 2 3



extern "C" {

 

extern u_int32_t inet_addr (__const char *__cp) throw ();

 

extern int inet_aton (__const char *__cp, struct in_addr *__inp) throw ();

 
extern u_int32_t inet_lnaof (struct in_addr __in) throw ();

 

extern struct in_addr inet_makeaddr (u_int32_t __net, u_int32_t __host) throw ();

 

extern char *inet_neta (u_int32_t __net, char *__buf, size_t __len) throw ();

 
extern u_int32_t inet_netof (struct in_addr __in) throw ();

 

extern u_int32_t inet_network (__const char *__cp) throw ();

 


extern char *inet_net_ntop (int __af, __const void *__cp, int __bits,
				 char *__buf, size_t __len) throw ();

 


extern int inet_net_pton (int __af, __const char *__cp,
			       void *__buf, size_t __len) throw ();

 

extern char *inet_ntoa (struct in_addr __in) throw ();

 


extern int inet_pton (int __af, __const char *__cp, void *__buf) throw ();

 


extern __const char *inet_ntop (int __af, __const void *__cp,
				     char *__buf, size_t __len) throw ();

 


extern unsigned int inet_nsap_addr (__const char *__cp,
					 unsigned char *__buf, int __len) throw ();

 

extern char *inet_nsap_ntoa (int __len, __const unsigned char *__cp,
				  char *__buf) throw ();

 }


# 32 "napstertransfer.h" 2

# 1 "/usr/include/sys/socket.h" 1 3
 
# 19 "/usr/include/sys/socket.h" 3




# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 23 "/usr/include/sys/socket.h" 2 3


extern "C" {


# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 1 3
 
# 19 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3

 






 








 


# 48 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3



 


 





 


# 90 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 





 


















 





 

 

# 160 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 


# 217 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3





 




 

# 303 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


# 315 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 
# 348 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3




 





















# 28 "/usr/include/sys/socket.h" 2 3



 


# 1 "/usr/include/bits/socket.h" 1 3
 
# 19 "/usr/include/bits/socket.h" 3

# 305 "/usr/include/bits/socket.h" 3

# 34 "/usr/include/sys/socket.h" 2 3



 

struct osockaddr
  {
    unsigned short int sa_family;
    unsigned char sa_data[14];
  };


 

enum
{
  SHUT_RD = 0,		 

  SHUT_WR,		 

  SHUT_RDWR		 

};

 









# 94 "/usr/include/sys/socket.h" 3



 


extern int socket (int __domain, int __type, int __protocol) throw ();

 



extern int socketpair (int __domain, int __type, int __protocol,
			    int __fds[2]) throw ();

 
extern int bind (int __fd, __const struct sockaddr * __addr, socklen_t __len) throw ();

 
extern int getsockname (int __fd, struct sockaddr * __addr,
			     socklen_t *__len) throw ();

 



extern int __connect (int __fd,
			   __const struct sockaddr * __addr, socklen_t __len) throw ();
extern int connect (int __fd,
			 __const struct sockaddr * __addr, socklen_t __len) throw ();

 

extern int getpeername (int __fd, struct sockaddr * __addr,
			     socklen_t *__len) throw ();


 
extern int __send (int __fd, __const void * __buf, size_t __n,
			int __flags) throw ();
extern int send (int __fd, __const void * __buf, size_t __n,
		      int __flags) throw ();

 

extern int recv (int __fd, void * __buf, size_t __n, int __flags) throw ();

 

extern int sendto (int __fd, __const void * __buf, size_t __n,

			int __flags, __const struct sockaddr * __addr,
# 145 "/usr/include/sys/socket.h" 3
			socklen_t __addr_len) throw ();

 



extern int recvfrom (int __fd, void * __buf, size_t __n, int __flags,
			  struct sockaddr * __addr, socklen_t *__addr_len) throw ();


 

extern int sendmsg (int __fd, __const struct msghdr *__message,
			 int __flags) throw ();

 

extern int recvmsg (int __fd, struct msghdr *__message, int __flags) throw ();


 


extern int getsockopt (int __fd, int __level, int __optname,
			    void * __optval, socklen_t *__optlen) throw ();

 


extern int setsockopt (int __fd, int __level, int __optname,
			    __const void * __optval, socklen_t __optlen) throw ();


 


extern int listen (int __fd, unsigned int __n) throw ();

 




extern int accept (int __fd, struct sockaddr * __addr,
			socklen_t *__addr_len) throw ();

 





extern int shutdown (int __fd, int __how) throw ();


 


extern int isfdtype (int __fd, int __fdtype) throw ();

 }


# 33 "napstertransfer.h" 2


# 1 "/usr/include/pthread.h" 1 3
 
 
 
 
 
 
 
 
 
 
 
 
 




# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 18 "/usr/include/pthread.h" 2 3


# 1 "/usr/include/sched.h" 1 3
 
# 19 "/usr/include/sched.h" 3




# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 23 "/usr/include/sched.h" 2 3


 



# 1 "/usr/include/time.h" 1 3
 
# 18 "/usr/include/time.h" 3

 














# 51 "/usr/include/time.h" 3



# 62 "/usr/include/time.h" 3



# 73 "/usr/include/time.h" 3




# 89 "/usr/include/time.h" 3




# 279 "/usr/include/time.h" 3



# 29 "/usr/include/sched.h" 2 3


 
# 1 "/usr/include/bits/sched.h" 1 3
 
# 20 "/usr/include/bits/sched.h" 3








 





 











 
struct sched_param
  {
    int sched_priority;
  };

extern "C" {

 

extern int clone (int (*__fn) (void *__arg), void *__child_stack,
		       int __flags, void *__arg) throw ();


 }






 
struct __sched_param
  {
    int sched_priority;
  };


# 32 "/usr/include/sched.h" 2 3


extern "C" {

 
extern int __sched_setparam (__pid_t __pid,
				  __const struct sched_param *__param) throw ();
extern int sched_setparam (__pid_t __pid,
				__const struct sched_param *__param) throw ();

 
extern int __sched_getparam (__pid_t __pid, struct sched_param *__param) throw ();
extern int sched_getparam (__pid_t __pid, struct sched_param *__param) throw ();

 
extern int __sched_setscheduler (__pid_t __pid, int __policy,
				      __const struct sched_param *__param) throw ();
extern int sched_setscheduler (__pid_t __pid, int __policy,
				    __const struct sched_param *__param) throw ();

 
extern int __sched_getscheduler (__pid_t __pid) throw ();
extern int sched_getscheduler (__pid_t __pid) throw ();

 
extern int __sched_yield (void) throw ();
extern int sched_yield (void) throw ();

 
extern int __sched_get_priority_max (int __algorithm) throw ();
extern int sched_get_priority_max (int __algorithm) throw ();

 
extern int __sched_get_priority_min (int __algorithm) throw ();
extern int sched_get_priority_min (int __algorithm) throw ();

 
extern int __sched_rr_get_interval (__pid_t __pid, struct timespec *__t) throw ();
extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) throw ();

 }


# 20 "/usr/include/pthread.h" 2 3

# 1 "/usr/include/time.h" 1 3
 
# 18 "/usr/include/time.h" 3

 








# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 28 "/usr/include/time.h" 2 3


extern "C" {




 


# 1 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 1 3
 
# 19 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3

 






 








 


# 48 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3



 


 





 


# 90 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 





 


















 





 

 

# 160 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 


# 217 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3





 




 

# 303 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


# 315 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3


 

 
# 348 "/usr/local/lib/gcc-lib/k6-suse-linux/2.96/include/stddef.h" 3




 





















# 38 "/usr/include/time.h" 2 3


 

# 1 "/usr/include/bits/time.h" 1 3
 
# 19 "/usr/include/bits/time.h" 3

 







 


 





 







# 59 "/usr/include/bits/time.h" 3

# 42 "/usr/include/time.h" 2 3


 














 
typedef __clock_t clock_t;




# 73 "/usr/include/time.h" 3




# 89 "/usr/include/time.h" 3





 
struct tm
{
  int tm_sec;			 
  int tm_min;			 
  int tm_hour;			 
  int tm_mday;			 
  int tm_mon;			 
  int tm_year;			 
  int tm_wday;			 
  int tm_yday;			 
  int tm_isdst;			 


  long int tm_gmtoff;		 
  __const char *tm_zone;	 




};


 

extern clock_t clock (void) throw ();

 
extern time_t time (time_t *__timer) throw ();

 
extern double difftime (time_t __time1, time_t __time0) throw ()
     __attribute__ ((__const__));

 
extern time_t mktime (struct tm *__tp) throw ();


 


extern size_t strftime (char *__restrict __s, size_t __maxsize,

			     __const char *__restrict __format,
# 137 "/usr/include/time.h" 3
			     __const struct tm *__restrict __tp) throw ();









 

extern struct tm *gmtime (__const time_t *__timer) throw ();

 

extern struct tm *localtime (__const time_t *__timer) throw ();


 

extern struct tm *__gmtime_r (__const time_t *__restrict __timer,
				   struct tm *__restrict __tp) throw ();
extern struct tm *gmtime_r (__const time_t *__restrict __timer,
				 struct tm *__restrict __tp) throw ();

 

extern struct tm *localtime_r (__const time_t *__restrict __timer,
				    struct tm *__restrict __tp) throw ();


 

extern char *asctime (__const struct tm *__tp) throw ();

 
extern char *ctime (__const time_t *__timer) throw ();


 

 

extern char *asctime_r (__const struct tm *__restrict __tp,
			     char *__restrict __buf) throw ();

 
extern char *ctime_r (__const time_t *__restrict __timer,
			   char *__restrict __buf) throw ();



 
extern char *__tzname[2];	 
extern int __daylight;		 
extern long int __timezone;	 



 
extern char *tzname[2];

 

extern void tzset (void) throw ();



extern int daylight;
extern long int timezone;



 

extern int stime (__const time_t *__when) throw ();



 






 


 
extern time_t timegm (struct tm *__tp) throw ();

 
extern time_t timelocal (struct tm *__tp) throw ();

 
extern int dysize (int __year) throw ();




 
extern int nanosleep (__const struct timespec *__requested_time,
			   struct timespec *__remaining) throw ();



# 264 "/usr/include/time.h" 3


# 274 "/usr/include/time.h" 3



 }




# 21 "/usr/include/pthread.h" 2 3



# 1 "/usr/include/signal.h" 1 3
 
# 18 "/usr/include/signal.h" 3

 









# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 29 "/usr/include/signal.h" 2 3


extern "C" {

# 1 "/usr/include/bits/sigset.h" 1 3
 
# 19 "/usr/include/bits/sigset.h" 3

# 33 "/usr/include/bits/sigset.h" 3



 





# 125 "/usr/include/bits/sigset.h" 3

# 33 "/usr/include/signal.h" 2 3


 













typedef __sigset_t sigset_t;



# 360 "/usr/include/signal.h" 3


 }


# 24 "/usr/include/pthread.h" 2 3

# 1 "/usr/include/bits/pthreadtypes.h" 1 3
 
 
 
 
 
 
 
 
 
 
 
 
 









# 1 "/usr/include/bits/sched.h" 1 3
 
# 20 "/usr/include/bits/sched.h" 3

# 62 "/usr/include/bits/sched.h" 3


# 73 "/usr/include/bits/sched.h" 3

# 23 "/usr/include/bits/pthreadtypes.h" 2 3


 
struct _pthread_fastlock
{
  long int __status;             
  int __spinlock;                
};


 
typedef struct _pthread_descr_struct *_pthread_descr;




 
typedef struct
{
  int __detachstate;
  int __schedpolicy;
  struct __sched_param __schedparam;
  int __inheritsched;
  int __scope;
  size_t __guardsize;
  int __stackaddr_set;
  void *__stackaddr;
  size_t __stacksize;
} pthread_attr_t;


 
typedef struct
{
  struct _pthread_fastlock __c_lock;  
  _pthread_descr __c_waiting;         
} pthread_cond_t;


 
typedef struct
{
  int __dummy;
} pthread_condattr_t;

 
typedef unsigned int pthread_key_t;


 
 

typedef struct
{
  int __m_reserved;                
  int __m_count;                   
  _pthread_descr __m_owner;        
  int __m_kind;                    
  struct _pthread_fastlock __m_lock;  
} pthread_mutex_t;


 
typedef struct
{
  int __mutexkind;
} pthread_mutexattr_t;


 
typedef int pthread_once_t;


# 116 "/usr/include/bits/pthreadtypes.h" 3



 
typedef unsigned long int pthread_t;


# 25 "/usr/include/pthread.h" 2 3



extern "C" {

 
















 

enum
{
  PTHREAD_CREATE_JOINABLE,

  PTHREAD_CREATE_DETACHED

};

enum
{
  PTHREAD_INHERIT_SCHED,

  PTHREAD_EXPLICIT_SCHED

};

enum
{
  PTHREAD_SCOPE_SYSTEM,

  PTHREAD_SCOPE_PROCESS

};

enum
{
  PTHREAD_MUTEX_FAST_NP,
  PTHREAD_MUTEX_RECURSIVE_NP,
  PTHREAD_MUTEX_ERRORCHECK_NP







};

enum
{
  PTHREAD_PROCESS_PRIVATE,

  PTHREAD_PROCESS_SHARED

};

# 103 "/usr/include/pthread.h" 3




 

struct _pthread_cleanup_buffer
{
  void (*__routine) (void *);	   
  void *__arg;				   
  int __canceltype;			   
  struct _pthread_cleanup_buffer *__prev;  
};

 

enum
{
  PTHREAD_CANCEL_ENABLE,

  PTHREAD_CANCEL_DISABLE

};
enum
{
  PTHREAD_CANCEL_DEFERRED,

  PTHREAD_CANCEL_ASYNCHRONOUS

};



 

 


extern int pthread_create (pthread_t *__thread,


				__const pthread_attr_t *__attr,
# 144 "/usr/include/pthread.h" 3
				void *(*__start_routine) (void *),
# 144 "/usr/include/pthread.h" 3
				void *__arg) throw ();

 
extern pthread_t pthread_self (void) throw ();

 
extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) throw ();

 
extern void pthread_exit (void *__retval) throw () __attribute__ ((__noreturn__));

 


extern int pthread_join (pthread_t __th, void **__thread_return) throw ();

 



extern int pthread_detach (pthread_t __th) throw ();


 

 


extern int pthread_attr_init (pthread_attr_t *__attr) throw ();

 
extern int pthread_attr_destroy (pthread_attr_t *__attr) throw ();

 
extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
					     int __detachstate) throw ();

 
extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr,
					     int *__detachstate) throw ();

 
extern int pthread_attr_setschedparam (pthread_attr_t *__attr,
				        __const struct sched_param *__param) throw ();

 
extern int pthread_attr_getschedparam (__const pthread_attr_t *__attr,
					    struct sched_param *__param) throw ();

 
extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr,
					     int __policy) throw ();

 
extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__attr,
					     int *__policy) throw ();

 
extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
					      int __inherit) throw ();

 
extern int pthread_attr_getinheritsched (__const pthread_attr_t *__attr,
					      int *__inherit) throw ();

 
extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) throw ();

 
extern int pthread_attr_getscope (__const pthread_attr_t *__attr,
				       int *__scope) throw ();

# 224 "/usr/include/pthread.h" 3


 



extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
					   void *__stackaddr) throw ();

 
extern int pthread_attr_getstackaddr (__const pthread_attr_t *__attr,
					   void **__stackaddr) throw ();

 


extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
					   size_t __stacksize) throw ();

 
extern int pthread_attr_getstacksize (__const pthread_attr_t *__attr,
					   size_t *__stacksize) throw ();

 

 

extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
				       __const struct sched_param *__param) throw ();

 
extern int pthread_getschedparam (pthread_t __target_thread,

				       int *__policy,
# 257 "/usr/include/pthread.h" 3
				       struct sched_param *__param) throw ();









 

 

extern int __pthread_mutex_init (pthread_mutex_t *__mutex,
				   __const pthread_mutexattr_t *__mutex_attr) throw ();
extern int pthread_mutex_init (pthread_mutex_t *__mutex,
				   __const pthread_mutexattr_t *__mutex_attr) throw ();

 
extern int __pthread_mutex_destroy (pthread_mutex_t *__mutex) throw ();
extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) throw ();

 
extern int __pthread_mutex_trylock (pthread_mutex_t *__mutex) throw ();
extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) throw ();

 
extern int __pthread_mutex_lock (pthread_mutex_t *__mutex) throw ();
extern int pthread_mutex_lock (pthread_mutex_t *__mutex) throw ();

 
extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex) throw ();
extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) throw ();


 

 

extern int __pthread_mutexattr_init (pthread_mutexattr_t *__attr) throw ();
extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) throw ();

 
extern int __pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) throw ();
extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) throw ();

# 316 "/usr/include/pthread.h" 3



 

 

extern int pthread_cond_init (pthread_cond_t *__cond,
				   __const pthread_condattr_t *__cond_attr) throw ();

 
extern int pthread_cond_destroy (pthread_cond_t *__cond) throw ();

 
extern int pthread_cond_signal (pthread_cond_t *__cond) throw ();

 
extern int pthread_cond_broadcast (pthread_cond_t *__cond) throw ();

 

extern int pthread_cond_wait (pthread_cond_t *__cond,
				   pthread_mutex_t *__mutex) throw ();

 



extern int pthread_cond_timedwait (pthread_cond_t *__cond,

					pthread_mutex_t *__mutex,
# 346 "/usr/include/pthread.h" 3
					__const struct timespec *__abstime) throw ();

 

 
extern int pthread_condattr_init (pthread_condattr_t *__attr) throw ();

 
extern int pthread_condattr_destroy (pthread_condattr_t *__attr) throw ();


# 409 "/usr/include/pthread.h" 3



 

 





extern int __pthread_key_create (pthread_key_t *__key,
				      void (*__destr_function) (void *)) throw ();
extern int pthread_key_create (pthread_key_t *__key,
				    void (*__destr_function) (void *)) throw ();

 
extern int pthread_key_delete (pthread_key_t __key) throw ();

 
extern int __pthread_setspecific (pthread_key_t __key,
				       __const void *__pointer) throw ();
extern int pthread_setspecific (pthread_key_t __key,
				     __const void *__pointer) throw ();

 
extern void *__pthread_getspecific (pthread_key_t __key) throw ();
extern void *pthread_getspecific (pthread_key_t __key) throw ();


 

 



extern int __pthread_once (pthread_once_t *__once_control,
				void (*__init_routine) (void)) throw ();
extern int pthread_once (pthread_once_t *__once_control,
			      void (*__init_routine) (void)) throw ();


 

 

extern int pthread_setcancelstate (int __state, int *__oldstate) throw ();

 

extern int pthread_setcanceltype (int __type, int *__oldtype) throw ();

 
extern int pthread_cancel (pthread_t __thread) throw ();

 


extern void pthread_testcancel (void) throw ();


 










extern void _pthread_cleanup_push (struct _pthread_cleanup_buffer *__buffer,

					void (*__routine) (void *),
# 483 "/usr/include/pthread.h" 3
					void *__arg) throw ();

 





extern void _pthread_cleanup_pop (struct _pthread_cleanup_buffer *__buffer,
				       int __execute) throw ();

 


# 515 "/usr/include/pthread.h" 3


 
# 1 "/usr/include/bits/sigthread.h" 1 3
 
# 19 "/usr/include/bits/sigthread.h" 3








 

 

extern int pthread_sigmask (int __how, __const __sigset_t *__newmask,
				 __sigset_t *__oldmask) throw ();

 
extern int pthread_kill (pthread_t __thread, int __signo) throw ();


# 518 "/usr/include/pthread.h" 2 3



 

 
# 533 "/usr/include/pthread.h" 3

extern int __pthread_atfork (void (*__prepare) (void),

				  void (*__parent) (void),
# 536 "/usr/include/pthread.h" 3
				  void (*__child) (void)) throw ();
extern int pthread_atfork (void (*__prepare) (void),

				void (*__parent) (void),
# 539 "/usr/include/pthread.h" 3
				void (*__child) (void)) throw ();

 


extern void pthread_kill_other_threads_np (void) throw ();


 
extern void __pthread_initialize (void) throw ();

 }


# 35 "napstertransfer.h" 2

# 1 "/usr/include/sys/time.h" 1 3
 
# 18 "/usr/include/sys/time.h" 3




# 1 "/usr/include/features.h" 1 3
 
# 18 "/usr/include/features.h" 3

# 281 "/usr/include/features.h" 3

# 22 "/usr/include/sys/time.h" 2 3


# 1 "/usr/include/time.h" 1 3
 
# 18 "/usr/include/time.h" 3

 



# 281 "/usr/include/time.h" 3

# 24 "/usr/include/sys/time.h" 2 3




# 1 "/usr/include/bits/time.h" 1 3
 
# 19 "/usr/include/bits/time.h" 3

 



# 43 "/usr/include/bits/time.h" 3








 

struct timeval
  {
    __time_t tv_sec;		 
    __time_t tv_usec;		 
  };


# 28 "/usr/include/sys/time.h" 2 3



extern "C" {

 










 

struct timezone
  {
    int tz_minuteswest;		 
    int tz_dsttime;		 
  };

 




extern int gettimeofday (struct timeval *__tv,
			      struct timezone *__tz) throw ();

 

extern int settimeofday (__const struct timeval *__tv,
			      __const struct timezone *__tz) throw ();

 



extern int adjtime (__const struct timeval *__delta,
			 struct timeval *__olddelta) throw ();


 
enum __itimer_which
  {
     
    ITIMER_REAL = 0,

     
    ITIMER_VIRTUAL = 1,

     

    ITIMER_PROF = 2

  };

 

struct itimerval
  {
     
    struct timeval it_interval;
     
    struct timeval it_value;
  };

 

extern int getitimer (enum __itimer_which __which,
			   struct itimerval *__value) throw ();

 


extern int setitimer (enum __itimer_which __which,

			   __const struct itimerval *__new,
# 108 "/usr/include/sys/time.h" 3
			   struct itimerval *__old) throw ();

 

extern int utimes (__const char *__file, struct timeval __tvp[2]) throw ();


 








# 133 "/usr/include/sys/time.h" 3

# 142 "/usr/include/sys/time.h" 3

 }


# 36 "napstertransfer.h" 2



class NapsterTransfer {

protected:
  struct sockaddr_in _sockaddr;

  mutable long _totalsize;
  mutable long _readsize;
  mutable long _status;

  QString _filename;
  int _speed;
  QString _user;
  QString _dest;
  QString _destname;

  pthread_mutex_t _mutex;

  mutable time_t _starttime;

  bool _terminate;
  bool _connected;

public:
  enum { DL_NOLOCALFILE=-4,DL_NOCONNECT=-3,DL_KILLED=-2,DL_ERROR=-1,
         DL_QUEUED=0,DL_INIT=1,
         DL_DOWNLOADING=2,DL_FINISHED=3 };

  bool isConnected() { return _connected; }

   
  virtual bool start(int listen=-1,long sz=0)=0;

	virtual ~NapsterTransfer();

  bool cancel();

  void setInit() { _status=DL_INIT; }    

  bool getInfo(long *status,long *read,long *total,long *bps);

  QString getLocalName() { return _destname; }
protected:
   
   
	NapsterTransfer(long ip,int port,const char *filename,const char *user,
        int speed,const char *dest);

  void down();
  void up();
  bool trydown();

  void setSigpipeHandler();
};


# 18 "napstertransfer.cpp" 2


NapsterTransfer::NapsterTransfer(long ip,int port,const char *filename,
        const char *user,int speed,const char *dest)
{
   _connected=false;

   _readsize=0;
   _totalsize=0;
   _status=DL_QUEUED;

   _terminate=false;

   _user=user;
   _speed=speed;
   _filename=filename;

   _destname=dest;

   _starttime=0;

   pthread_mutex_init(&_mutex,__null);

   memset(&_sockaddr,0,sizeof(_sockaddr));
   _sockaddr.sin_family = 2;
   _sockaddr.sin_port = (__extension__							            ({ register unsigned short int __v;				      	 if (__builtin_constant_p (port))					      	   __v = ((((port) >> 8) & 0xff) | (((port) & 0xff) << 8));				      	 else								      	   __asm__ __volatile__ ("rorw $8, %w0"				      				 : "=r" (__v)				      				 : "0" ((unsigned short int) (port))	      				 : "cc");				      	 __v; }));
   _sockaddr.sin_addr.s_addr = ip;

}
NapsterTransfer::~NapsterTransfer()
{
  pthread_mutex_destroy(&_mutex);
}
bool NapsterTransfer::cancel()
{
  down();
    _terminate=true;
    if(_status==DL_QUEUED) _status=DL_KILLED;
  up();

  return true;
}

bool NapsterTransfer::getInfo(long *status,long *red,long *total,long *bps)
{
  down();

  if(status) *status=_status;
  if(red) *red=_readsize;
  if(total) *total=_totalsize;

  if(bps) {
    *bps=0;

    time_t currtime;
    time(&currtime);  
    if(_starttime!=0) {
      currtime=currtime-_starttime;  

      if(currtime<1) currtime=1;

       *bps=_readsize/currtime;
     }
  }

  up();

  return true;
}

void NapsterTransfer::down()
{
 pthread_mutex_lock(&_mutex);
}

void NapsterTransfer::up()
{
  pthread_mutex_unlock(&_mutex);
}

 
bool NapsterTransfer::trydown()
{
 if(pthread_mutex_trylock(&_mutex)==0) return true;
 return false;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]