home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 November / PCO_1198.ISO / filesbbs / os2 / fn127os2.arj / FN127OS2.ZIP / fn127os2 / src / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-25  |  2.0 KB  |  55 lines

  1. /*
  2.  # $Id: misc.h,v 1.5 1998/03/10 11:39:42 fbm Exp fbm $
  3.  # Copyright (C) 1997,1998 Farrell McKay
  4.  # All rights reserved.
  5.  #
  6.  # This file is part of the Fortify distribution, a toolkit for
  7.  # upgrading the cryptographic strength of the Netscape Navigator
  8.  # web browser, authored by Farrell McKay.
  9.  #
  10.  # This toolkit is provided to the recipient under the
  11.  # following terms and conditions:-
  12.  #   1.  This copyright notice must not be removed or modified.
  13.  #   2.  This toolkit may not be reproduced or included in any commercial
  14.  #       media distribution, or commercial publication (for example CD-ROM,
  15.  #       disk, book, magazine, journal) without first obtaining the author's
  16.  #       express permission.
  17.  #   3.  This toolkit, or any component of this toolkit, may not be
  18.  #       commercially resold, redeveloped, rewritten, enhanced or otherwise
  19.  #       used as the basis for commercial venture, without first obtaining
  20.  #       the author's express permission.
  21.  #   4.  Subject to the above conditions being observed (1-3), this toolkit
  22.  #       may be freely reproduced or redistributed.
  23.  #   5.  This software is provided "as-is", without express or implied
  24.  #       warranty.  In no event shall the author be liable for any direct,
  25.  #       indirect or consequential damages however caused.
  26.  #   6.  Subject to the above conditions being observed (1-5),
  27.  #       this toolkit may be used at no cost to the recipient.
  28.  #
  29.  # Farrell McKay
  30.  # Wayfarer Systems Pty Ltd        contact@fortify.net
  31.  */
  32.  
  33. #ifndef MISC_H
  34. #define MISC_H
  35.  
  36. #define SEG_UNKN    -1
  37. #define SEG_TEXT    0
  38. #define SEG_DATA    1
  39. #define SEG_RODATA    2
  40. #define NSEGS        3
  41.  
  42. void        *_malloc(size_t sz);
  43. void        *_realloc(void *s, size_t sz);
  44. void        *_calloc(size_t n, size_t sz);
  45. char        *_strdup(const char *s);
  46. char        *_strndup(const char *s, int n);
  47. char        *seg_name(int i);
  48. int        isnumeric(char *s);
  49. int        zread(int fd, char *b, int n, char *msg);
  50. void        zlseek(int fd, off_t off, char *msg);
  51. unsigned short    toShort(unsigned char *p);
  52. unsigned long    toLong(unsigned char *p);
  53.  
  54. #endif
  55.