# File lib/childprocess/tools/generator.rb, line 22
      def generate
        fetch_size 'posix_spawn_file_actions_t', :include => "spawn.h"
        fetch_size 'posix_spawnattr_t', :include => "spawn.h"
        fetch_size 'sigset_t', :include => "signal.h"

        fetch_constant 'POSIX_SPAWN_RESETIDS',   :include  => 'spawn.h'
        fetch_constant 'POSIX_SPAWN_SETPGROUP',  :include  => 'spawn.h'
        fetch_constant 'POSIX_SPAWN_SETSIGDEF',  :include  => 'spawn.h'
        fetch_constant 'POSIX_SPAWN_SETSIGMASK', :include  => 'spawn.h'

        if ChildProcess.linux?
          fetch_constant 'POSIX_SPAWN_USEVFORK', :include => 'spawn.h', :define => {'_GNU_SOURCE' => nil}
        end

        write
      end