]> granicus.if.org Git - graphviz/commit
Remove mmap code from sfio
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 9 Jan 2017 17:54:44 +0000 (18:54 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Tue, 17 Jan 2017 18:14:56 +0000 (19:14 +0100)
commitbb04aad8c6e033b6fef9cecd424a4d02758d661a
treeb2e055c80fa7d4714f1695581dad5cb52514ee70
parent56f4184622ebb39e21fe704cef486d64ea242fa0
Remove mmap code from sfio

There are multiple reasons to remove this code:
- The define that guards all the mmap code (_mmap_worthy) is rarely set.
  When building local or on Travis, the define isn't set.
  On Windows, it is never set.
- If a 'binary compatibility package' of sfio is build (when _SFBINARY_H
  is defined), `_sys_mann` is `undef`ed, excluding mmap code from the build.

Instead of keeping the code that is rarely included, we can reduce code
complexity by removing it.
lib/sfio/features/sfio
lib/sfio/sfclose.c
lib/sfio/sfhdr.h
lib/sfio/sfmode.c
lib/sfio/sfpurge.c
lib/sfio/sfrd.c
lib/sfio/sfseek.c
lib/sfio/sfsetbuf.c
lib/sfio/sfsetfd.c
lib/sfio/sfsize.c
lib/sfio/sfsk.c