scripts

command
v6.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

This directory contains scripts used by go-criu.

magicgen

CRIU uses a 32-bit integer value to determine the type of image file. These values are called magics, and are defined here. magicgen.go processes this header file and generates ../magic/magic.go with a map of magic names and values.

Usage: magicgen.go /path/to/magic.h /path/to/magic.go

A set of Makefile targets are provided for convenience:

  • make or make magic-gen: Generate ../magic/magic.go
  • make test: Run unit test and E2E test for magicgen.go
  • make clean: Remove ../magic/magic.go and magic.h

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL