Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(67)

Delta Between Two Patch Sets: unix/mksysctl_openbsd.pl

Issue 126960043: code review 126960043: go.sys: copy files from syscall package to go.sys/{plan... (Closed)
Left Patch Set: Created 10 years, 7 months ago
Right Patch Set: diff -r 89b705e036f489a14b4d11c6e025ea61a53bb735 https://code.google.com/p/go.sys Created 10 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « unix/mksyscall_solaris.pl ('k') | unix/mksysnum_darwin.pl » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 #!/usr/bin/env perl 1 #!/usr/bin/env perl
2 2
3 # Copyright 2011 The Go Authors. All rights reserved. 3 # Copyright 2011 The Go Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style 4 # Use of this source code is governed by a BSD-style
5 # license that can be found in the LICENSE file. 5 # license that can be found in the LICENSE file.
6 6
7 # 7 #
8 # Parse the header files for OpenBSD and generate a Go usable sysctl MIB. 8 # Parse the header files for OpenBSD and generate a Go usable sysctl MIB.
9 # 9 #
10 # Build a MIB with each entry being an array containing the level, type and 10 # Build a MIB with each entry being an array containing the level, type and
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 EOF 248 EOF
249 249
250 foreach my $name (sort keys %sysctl) { 250 foreach my $name (sort keys %sysctl) {
251 my @oid = @{$sysctl{$name}}; 251 my @oid = @{$sysctl{$name}};
252 print "\t{ \"$name\", []_C_int{ ", join(', ', @oid), " } }, \n"; 252 print "\t{ \"$name\", []_C_int{ ", join(', ', @oid), " } }, \n";
253 } 253 }
254 254
255 print <<EOF; 255 print <<EOF;
256 } 256 }
257 EOF 257 EOF
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b