mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-30 23:00:29 +00:00
3520854be0
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.
23 lines
572 B
Go
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)
|
|
}
|