OASISFormat:  0.4
Name:         extunix
Version:      0.2.0
License:      LGPL-2.1 with OCaml linking exception
Authors:      ygrek, Sylvain Le Gall, Stéphane Glondu, Kaustuv Chaudhuri, Joshua Smith, Niki Yoshiuchi, Gerd Stolpmann, Goswin von Brederlow, Andre Nathan, Zhenya Lykhovyd, Mehdi Dogguy, Roman Vorobets, Pierre Chambart, Dmitry Grebeniuk, François Bobot, Markus W. Weissmann
Copyrights:
              (C) 2010 ygrek,
              (C) 2009 Sylvain Le Gall,
              (C) 2008-2009 Talend Inc.,
              (C) 2010 Stéphane Glondu,
              (C) 2005 Joshua Smith,
              (C) 2010 Niki Yoshiuchi,
              (C) 2001 Gerd Stolpmann,
              (C) 2012 Goswin von Brederlow,
              (C) 2012 Andre Nathan,
              (C) 2013 Zhenya Lykhovyd,
              (C) 2013 Mehdi Dogguy,
              (C) 2013 Roman Vorobets,
              (C) 2013 Pierre Chambart,
              (C) 2013 Dmitry Grebeniuk,
              (C) 2015 François Bobot,
              (C) 2018 Markus W. Weissmann
Homepage:     https://ygrek.org.ua/p/ocaml-extunix/
BuildTools:   ocamlbuild
Plugins:      DevFiles (0.4), META (0.4)

Synopsis: Extended functions for OCaml Unix module
Description:
  Thin bindings to various low-level system APIs (often non-portable)
  which are not covered by Unix module.
  .
  Some of the implemented functions : uname, statvfs, fsync, fadvise,
    fallocate, openat, dirfd, eventfd, signalfd, setrlimit, mlockall, etc

PostConfCommand: ocaml src/discover.ml -ocamlc $ocamlc -ext_obj $ext_obj
PreDistCleanCommand: $rm $(utoh "src/config.h")
PostDistCleanCommand: $rm $(utoh "src/config.ml") # [FORGE#742]

Flag strict
  Description: Strict compile-time checks
  Default: true

Library extunix
  Path: src/
  Modules: ExtUnix, ExtUnixAll, ExtUnixSpecific, ExtUnixConfig
  if flag(strict) && ccomp_type(cc)
    CCOpt: -pedantic -Wno-long-long -Wextra
  CSources: config.h, endian_helper.h,
            eventfd.c, dirfd.c, fsync.c, statvfs.c, atfile.c,
            ioctl_siocgifconf.c, uname.c, fadvise.c, fallocate.c,
            tty_ioctl.c, unistd.c, stdlib.c, signalfd.c, ptrace.c,
            resource.c, mman.c, time.c, pts.c, execinfo.c, malloc.c,
            endian.c, read_cred.c, fexecve.c, sendmsg.c, mktemp.c,
            memalign.c, endianba.c, pread_pwrite_ba.c, bigarray.c,
            splice.c, sysconf.c, common.c, common.h, sockopt.c, poll.c,
            sysinfo.c, mount.c, unshare.c, syslog.c
  BuildDepends: unix, bigarray, bytes

Executable test
  Path: test/
  Install: false
  Build$: flag(tests)
  Custom: true
  CompiledObject: best
  MainIs: test.ml
  BuildDepends: extunix, oUnit (>= 1.0.3)

Executable testba
  Path: test/
  Install: false
  Build$: flag(tests)
  Custom: true
  CompiledObject: best
  MainIs: testba.ml
  BuildDepends: extunix, oUnit (>= 1.0.3)

Executable test_user_namespace
  Path: test/
  Install: false
  Build$: flag(tests)
  Custom: true
  CompiledObject: best
  MainIs: test_user_namespace.ml
  BuildDepends: str, extunix, oUnit (>= 1.0.3)

Test main
  Command: $test && $testba
  TestTools: test, testba, test_user_namespace

Document api
  Title: API reference for extunix
  Type: ocamlbuild (0.4)
  Authors: ygrek, Sylvain Le Gall, Stéphane Glondu, Kaustuv Chaudhuri, Joshua Smith, Niki Yoshiuchi, Gerd Stolpmann, Goswin von Brederlow, Andre Nathan, Zhenya Lykhovyd, Mehdi Dogguy, Roman Vorobets, Pierre Chambart, Dmitry Grebeniuk
  BuildTools: ocamldoc
  Format: HTML
  Index: index.html
  XOCamlbuildPath:      src/
  XOCamlbuildLibraries: extunix

#Document changelog
#  Title: Changelog
#  Path: CHANGES.txt
