syzkaller/sys/syz-extract/windows.go
zoulasc 3520854be0 syz-extract: select declaring printf or not
Kernels are standalone implementations and can have their own
implementations of functions that have different prototypes than
the standard ones. In the NetBSD case the kernel printf returns
void, and it is declared in <sys/systm.h> so avoid re-declaring it.
Select if we are going to declare printf or not depending on the OS.
2017-11-06 11:27:45 +03:00

23 lines
572 B
Go

// Copyright 2017 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package main
import (
"github.com/google/syzkaller/pkg/compiler"
)
type windows struct{}
func (*windows) prepare(sourcedir string, build bool, arches []string) error {
return nil
}
func (*windows) prepareArch(arch *Arch) error {
return nil
}
func (*windows) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint64, map[string]bool, error) {
return extract(info, "cl", nil, "", true)
}