Print this page
11972 resync smatch

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/compat.h
          +++ new/usr/src/tools/smatch/src/compat.h
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  
   4    4  /*
   5    5   * Various systems get these things wrong. So
   6    6   * we create a small compat library for them.
   7    7   *
   8    8   *  - zeroed anonymous mmap
   9    9   *      Missing in MinGW
  10   10   *  - "string to long double" (C99 strtold())
  11   11   *      Missing in Solaris and MinGW
  12   12   */
  13      -struct stream;
  14      -struct stat;
  15   13  
  16   14  /*
  17   15   * Our "blob" allocator works on chunks that are multiples
  18   16   * of this size (the underlying allocator may be a mmap that
  19   17   * cannot handle smaller chunks, for example, so trying to
  20   18   * allocate blobs that aren't aligned is not going to work).
  21   19   */
  22   20  #define CHUNK 32768
  23   21  
  24   22  void *blob_alloc(unsigned long size);
  25   23  void blob_free(void *addr, unsigned long size);
  26   24  long double string_to_ld(const char *nptr, char **endptr);
  27   25  
  28   26  #endif
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX