goreplay Show mksysnum_netbsd.pl Source code
Return
Download goreplay:
download mksysnum_netbsd.pl Source code
- Download goreplay Source code - Type:.pl
- #!/usr/bin/env perl
- # Copyright 2009 The Go Authors. All rights reserved.
- # Use of this source code is governed by a BSD-style
- # license that can be found in the LICENSE file.
- #
- # Generate system call table for OpenBSD from master list
- # (for example, /usr/src/sys/kern/syscalls.master).
- use strict;
- if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
- print STDERR "GOARCH or GOOS not defined in environment\n";
- exit 1;
- }
- my $command = "mksysnum_netbsd.pl " . join(' ', @ARGV);
- print <<EOF;
- // $command
- // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
- // +build $ENV{'GOARCH'},$ENV{'GOOS'}
- package unix
- const (
- EOF
- my $line = '';
- while(<>){
- if($line =~ /^(.*)\\$/) {
- # Handle continuation
- $line = $1;
- $_ =~ s/^\s+//;
- $line .= $_;
- } else {
- # New line
- $line = $_;
- }
- next if $line =~ /\\$/;
- if($line =~ /^([0-9]+)\s+((STD)|(NOERR))\s+(RUMP\s+)?({\s+\S+\s*\*?\s*\|(\S+)\|(\S*)\|(\w+).*\s+})(\s+(\S+))?$/) {
- my $num = $1;
- my $proto = $6;
- my $compat = $8;
- my $name = "$7_$9";
- $name = "$7_$11" if $11 ne '';
- $name =~ y/a-z/A-Z/;
- if($compat eq '' || $compat eq '30' || $compat eq '50') {
- print " $name = $num; // $proto\n";
- }
- }
- }
- print <<EOF;
- )
- EOF
downloadmksysnum_netbsd.pl Source code
- Download goreplay Source code
Related Source Codes/Software:
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps
... 2017-06-10
angular-starter - 2017-06-10
django-rest-framework - Web APIs for Django.
http:/... 2017-06-10
lectures - Oxford Deep NLP 2017 course 2017-06-10
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
uWebSockets - Tiny WebSockets
https://for... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10