lint.h

dsI/fluffos-2.7-ds2.018/lint.h · 1.8 KB

From the archive dsI.zip

Download the archive   « Back to the archive contents

/*
 * lint.h
 *
 * This file is now exclusively for prototypes for system functions where
 * we haven't found the right header yet ...
 *
 * The goal is to have as little as possible in this file
 */

#ifndef LINT_H_
#define LINT_H_

#include "std.h"

/*******************************************************
 *  Declarations and/or prototypes for lib functions.  *
 *******************************************************/

#ifdef USE_POSIX_SIGNALS
   int port_sigblock();
   int port_sigmask();

#  ifndef _M_UNIX
     void (*port_signal()) ();
#  endif

   int port_sigsetmask();
#endif

#ifdef NeXT
   int _setjmp();
   void _longjmp();
#endif

/* SunOS is missing a lot of prototypes ... */
#if defined(sun) && !defined(SunOS_5) && defined(__STDC__)
#  ifdef BUFSIZ
     int fputs(char *, FILE *);
     int fwrite(char *, int, int, FILE *);
     int fread(char *, int, int, FILE *);
#  endif
   int sscanf(char *, char *,...);
   void perror(char *);
   int system (char *);
   int atoi (const char *);
   int setsockopt (int, int, int, char *, int);
   int fseek PROT_STDIO((FILE *, long, int));
   unsigned int alarm (unsigned int);
   int ioctl (int,...);
   extern int rename (char *, char *);
   int readlink (char *, char *, int);
   int symlink (char *, char *);
   extern int fchmod (int, int);
#endif

#if (defined(SVR4) && !defined(sgi)) || defined(__386BSD__)
   void exit (int);
#endif

#if !defined(SunOS_5) && !defined(NeXT)
#  ifdef sun
     char *_crypt (char *, char *);
#  endif

#  ifdef DRAND48
#    ifndef sgi
       double drand48 (void);
       void srand48 (long);
#    endif
#  endif
#  ifdef RANDOM
     long random (void);
#  endif

/* SGI is missing some prototypes in the .h files */
#ifdef PEDANTIC
#  ifdef sgi
     void ualarm (int, int);
#  endif
#endif

#endif

#endif

Site Stats

Snippets: 1791
Codebases: 571