Auto-generated file

Before

…lines 1–400 unchanged (400 lines)
401 err = errnoErr(e1)
402 }
403 return
404}
405
406// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
407
408func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
409 var _p0 unsafe.Pointer
410 if len(mib) > 0 {
411 _p0 = unsafe.Pointer(&mib[0])
412 } else {
413 _p0 = unsafe.Pointer(&_zero)
…lines 414–1593 unchanged (1180 lines)
1594 }
1595 return
1596}
1597
1598// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1599
1600func Setrlimit(which int, lim *Rlimit) (err error) {
1601 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0)
1602 if e1 != 0 {
1603 err = errnoErr(e1)
1604 }
1605 return
1606}
1607
1608// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1609
1610func Setsid() (pid int, err error) {
1611 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1612 pid = int(r0)
1613 if e1 != 0 {
1614 err = errnoErr(e1)
…lines 1615–1854 unchanged (240 lines)
1855 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
1856 if e1 != 0 {
1857 err = errnoErr(e1)
1858 }
1859 return
1860}
1861

After

…lines 1–401 unchanged (401 lines)
402 }
403 return
404}
405
406// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
407
408func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
409 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
410 if e1 != 0 {
411 err = errnoErr(e1)
412 }
413 return
414}
415
416// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
417
418func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) {
419 var _p0 unsafe.Pointer
420 if len(mib) > 0 {
421 _p0 = unsafe.Pointer(&mib[0])
422 } else {
…lines 423–1602 unchanged (1180 lines)
1603 err = errnoErr(e1)
1604 }
1605 return
1606}
1607
1608// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1609
1610func Setsid() (pid int, err error) {
1611 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)
1612 pid = int(r0)
1613 if e1 != 0 {
1614 err = errnoErr(e1)
1615 }
…lines 1616–1855 unchanged (240 lines)
1856 if e1 != 0 {
1857 err = errnoErr(e1)
1858 }
1859 return
1860}
1861
1862// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1863
1864func mremapNetBSD(oldp uintptr, oldsize uintptr, newp uintptr, newsize uintptr, flags int) (xaddr uintptr, err error) {
1865 r0, _, e1 := Syscall6(SYS_MREMAP, uintptr(oldp), uintptr(oldsize), uintptr(newp), uintptr(newsize), uintptr(flags), 0)
1866 xaddr = uintptr(r0)
1867 if e1 != 0 {
1868 err = errnoErr(e1)
1869 }
1870 return
1871}
1872

Before

source_file
comment "// go run mksyscall.go -l32 -netbsd -arm -tags netbsd,arm sy"...
comment "// Code generated by the command above; see README.md. DO NO"...
comment "//go:build netbsd && arm"
comment "// +build netbsd,arm"
package_clause
package "package"
package_identifier "unix"
import_declaration
import "import"
import_spec_list
( "("
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "syscall"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "unsafe"
" "\""
) ")"
var_declaration
var "var"
var_spec
identifier "_"
qualified_type
package_identifier "syscall"
. "."
type_identifier "Errno"
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+102 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+87 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+136 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+121 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+89 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+89 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+101 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+123 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+113 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+106 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+106 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+115 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+222 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+190 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+111 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+111 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+150 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+131 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+91 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+111 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+154 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+145 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+154 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+154 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+145 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+60 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+91 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+169 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+160 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+86 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+217 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+97 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+108 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+108 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+87 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+83 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+86 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+33 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+165 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+165 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+116 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+205 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+205 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+166 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+156 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+205 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+205 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+166 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+156 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+141 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+123 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+141 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+86 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+150 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+92 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+87 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+151 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+96 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+91 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+83 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+92 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+87 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+87 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+83 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+78 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+53 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+80 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+75 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+157 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+190 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+127 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+141 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+97 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+141 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+156 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+132 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+192 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+192 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+169 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+209 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+224 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+157 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+181 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+108 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+108 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+131 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+165 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+86 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration
func "func"
identifier "Setrlimit"
parameter_list
( "("
parameter_declaration
identifier "which"
type_identifier "int"
, ","
parameter_declaration
identifier "lim"
pointer_type
* "*"
type_identifier "Rlimit"
) ")"
parameter_list
( "("
parameter_declaration
identifier "err"
type_identifier "error"
) ")"
block
{ "{"
statement_list
short_var_declaration
expression_list
identifier "_"
, ","
identifier "_"
, ","
identifier "e1"
:= ":="
expression_list
call_expression
identifier "RawSyscall"
argument_list
( "("
identifier "SYS_SETRLIMIT"
, ","
call_expression
identifier "uintptr"
argument_list
( "("
identifier "which"
) ")"
, ","
call_expression
identifier "uintptr"
argument_list
( "("
call_expression
selector_expression
identifier "unsafe"
. "."
field_identifier "Pointer"
argument_list
( "("
identifier "lim"
) ")"
) ")"
, ","
int_literal "0"
) ")"
if_statement
if "if"
binary_expression
identifier "e1"
!= "!="
int_literal "0"
block
{ "{"
statement_list
assignment_statement
expression_list
identifier "err"
= "="
expression_list
call_expression
identifier "errnoErr"
argument_list
( "("
identifier "e1"
) ")"
} "}"
return_statement
return "return"
} "}"
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+75 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+78 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+127 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+136 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+157 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+166 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+60 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+131 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+58 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+108 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+169 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+148 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+111 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+111 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+155 nodes collapsed)

After

source_file
comment "// go run mksyscall.go -l32 -netbsd -arm -tags netbsd,arm sy"...
comment "// Code generated by the command above; see README.md. DO NO"...
comment "//go:build netbsd && arm"
comment "// +build netbsd,arm"
package_clause
package "package"
package_identifier "unix"
import_declaration
import "import"
import_spec_list
( "("
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "syscall"
" "\""
import_spec
interpreted_string_literal
" "\""
interpreted_string_literal_content "unsafe"
" "\""
) ")"
var_declaration
var "var"
var_spec
identifier "_"
qualified_type
package_identifier "syscall"
. "."
type_identifier "Errno"
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+102 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+87 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+136 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+121 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+89 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+89 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+101 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+123 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+113 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+106 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+106 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+115 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+222 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+190 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+111 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+111 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+150 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+131 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+91 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+111 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+154 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+145 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+154 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+154 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+145 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+60 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+91 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+169 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+160 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+86 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration
func "func"
identifier "ioctlPtr"
parameter_list
( "("
parameter_declaration
identifier "fd"
type_identifier "int"
, ","
parameter_declaration
identifier "req"
type_identifier "uint"
, ","
parameter_declaration
identifier "arg"
qualified_type
package_identifier "unsafe"
. "."
type_identifier "Pointer"
) ")"
parameter_list
( "("
parameter_declaration
identifier "err"
type_identifier "error"
) ")"
block
{ "{"
statement_list
short_var_declaration
expression_list
identifier "_"
, ","
identifier "_"
, ","
identifier "e1"
:= ":="
expression_list
call_expression
identifier "Syscall"
argument_list
( "("
identifier "SYS_IOCTL"
, ","
call_expression
identifier "uintptr"
argument_list
( "("
identifier "fd"
) ")"
, ","
call_expression
identifier "uintptr"
argument_list
( "("
identifier "req"
) ")"
, ","
call_expression
identifier "uintptr"
argument_list
( "("
identifier "arg"
) ")"
) ")"
if_statement
if "if"
binary_expression
identifier "e1"
!= "!="
int_literal "0"
block
{ "{"
statement_list
assignment_statement
expression_list
identifier "err"
= "="
expression_list
call_expression
identifier "errnoErr"
argument_list
( "("
identifier "e1"
) ")"
} "}"
return_statement
return "return"
} "}"
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+217 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+97 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+108 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+108 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+87 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+83 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+86 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+33 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+165 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+165 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+116 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+205 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+205 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+166 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+156 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+205 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+205 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+166 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+156 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+141 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+123 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+141 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+86 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+150 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+92 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+87 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+151 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+96 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+91 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+83 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+92 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+87 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+87 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+83 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+78 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+50 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+53 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+80 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+75 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+157 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+190 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+127 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+141 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+97 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+141 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+156 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+132 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+192 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+192 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+169 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+209 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+224 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+157 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+181 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+108 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+108 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+131 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+165 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+86 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+75 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+78 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+68 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+127 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+136 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+157 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+166 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+60 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+131 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+58 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+108 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+126 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+117 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+169 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+148 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+77 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+111 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+111 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration (+155 nodes collapsed)
comment "// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT "...
function_declaration
func "func"
identifier "mremapNetBSD"
parameter_list
( "("
parameter_declaration
identifier "oldp"
type_identifier "uintptr"
, ","
parameter_declaration
identifier "oldsize"
type_identifier "uintptr"
, ","
parameter_declaration
identifier "newp"
type_identifier "uintptr"
, ","
parameter_declaration
identifier "newsize"
type_identifier "uintptr"
, ","
parameter_declaration
identifier "flags"
type_identifier "int"
) ")"
parameter_list
( "("
parameter_declaration
identifier "xaddr"
type_identifier "uintptr"
, ","
parameter_declaration
identifier "err"
type_identifier "error"
) ")"
block
{ "{"
statement_list
short_var_declaration
expression_list
identifier "r0"
, ","
identifier "_"
, ","
identifier "e1"
:= ":="
expression_list
call_expression
identifier "Syscall6"
argument_list
( "("
identifier "SYS_MREMAP"
, ","
call_expression
identifier "uintptr"
argument_list
( "("
identifier "oldp"
) ")"
, ","
call_expression
identifier "uintptr"
argument_list
( "("
identifier "oldsize"
) ")"
, ","
call_expression
identifier "uintptr"
argument_list
( "("
identifier "newp"
) ")"
, ","
call_expression
identifier "uintptr"
argument_list
( "("
identifier "newsize"
) ")"
, ","
call_expression
identifier "uintptr"
argument_list
( "("
identifier "flags"
) ")"
, ","
int_literal "0"
) ")"
assignment_statement
expression_list
identifier "xaddr"
= "="
expression_list
call_expression
identifier "uintptr"
argument_list
( "("
identifier "r0"
) ")"
if_statement
if "if"
binary_expression
identifier "e1"
!= "!="
int_literal "0"
block
{ "{"
statement_list
assignment_statement
expression_list
identifier "err"
= "="
expression_list
call_expression
identifier "errnoErr"
argument_list
( "("
identifier "e1"
) ")"
} "}"
return_statement
return "return"
} "}"