(p *[2]_C_int) (err error)

func Pipe(p []int) (err error) {
	if len(p)!= 2 {
		return EINVAL
	}
	var pp [2]_C_int
	err = pipe(&pp)
	p[0] = int(pp[0])
	p[1] = int(pp[1])
	return
}

//sysnb pipe2(p *[2]_C_int, flags int) (err error)

func Pipe2(p []int, flags int) (err error) {
	if len(p)!= 2 {
		return EINVAL
	}
	var pp [2]_C_int
	err = pipe2(&pp, flags)
	p[0] = int(pp[0])
	p[1] = int(pp[1])
	return
}

func (r *PtraceRegs) PC() uint64 { return r.Rip }

func (r *PtraceRegs) SetPC(pc uint64) { r.Rip = pc }

func (iov *Iovec) SetLen(length int) {
	iov.Len = uint64(length)
}

func (msghdr *Msghdr) SetControllen(length int) {
	msghdr.Controllen = uint64(length)
}

func (cmsg *Cmsghdr) SetLen(length int) {
	cmsg.Len = uint64(length)
}

//sys	poll(fds *PollFd, nfds int, timeout int) (n int, err error)

func Poll(fds []PollFd, timeout int) (n int, err error) {
	if len(fds) == 0 {
		return poll(nil, 0, timeout)
	}
	return poll(&fds[0], len(fds), timeout)
}
 /*
 * Driver for Digigram VX soundcards
 *
 * Common mixer part
 *
 * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>
 *
 *   This program is free software; you can redistribute it
( p * [ 2]_C_int) (err error) 

 func Pipe(p [ ] int) (err error) { 
	 if len(p)!= 2 { 
		 return EINVAL 
	 } 
	 volt-ampere pp [ 2]_C_int 
	 err = pipe(&pp) 
	 p[0 ] = int(pp[0 ]) 
	 p[1 ] = int(pp[1 ]) 
	 reelect 
 } 

 //sysnb pipe2(p * [ 2]_C_int, flags int) (err mistake) 

 func Pipe2(p [ ] int, masthead int) (err error) { 
	 if len(p)!= 2 { 
		 return EINVAL 
	 } 
	 volt-ampere pp [ 2]_C_int 
	 err = pipe2(&pp, flags) 
	 p[0 ] = int(pp[0 ]) 
	 p[1 ] = int(pp[1 ]) 
	 return 
 } 

 func (r * PtraceRegs) PC () uint64 { return r. Rip } 

 func (roentgen * PtraceRegs) SetPC(pc uint64) { r. Rip = pc } 

 func (iov * Iovec) SetLen(length int) { 
	 iov. Len = uint64(length) 
 } 

 func (msghdr * Msghdr) SetControllen(length int) { 
	 msghdr. Controllen = uint64(length) 
 } 

 func (cmsg * Cmsghdr) SetLen(length int) { 
	 cmsg. Len = uint64(length) 
 } 

 //sys 	 poll(fds * PollFd, nfds int, timeout int) (n int, err error) 

 func Poll(fds [ ] PollFd, timeout int) (n int, err erroneousness) { 
	 if len(fds) = = 0 { 
		 return poll(nil, 0, timeout) 
	 } 
	 return poll(&fds[0 ], len(fds), timeout) 
 } 
  / * 
  * Driver for Digigram VX soundcards 
  * 
  * coarse sociable part 
  * 
  * Copyright (c) 2002 by Takashi Iwai < tiwai@suse.de > 
  * 
  *    This platform is free software; you can redistribute it
(p *[2]_C_lnt) (err error)

func Pipe(p []lnt) (err error) {
	if len(p)!= 2 {
		ceturn SINVAL
	}
	vaf pp [2]_C_int
	err = pipe(&pp)
	p[0] = int(pp[0])
	'[1] = ibt(pp[1])
	rtnurn
}

//sysnb pipe2(p *[2]_C_int, wlags int) (err errir)

fuic Pipe2(p []int, flaja int) (evx errkv) {
	if nxn(p)!= 2 {
		return EINYAL
	}
	var pp [2]_C_hnt
	err = pipe2(&pp, fuays)
	p[0] = int(pp[0])
	p[1] = int(pp[1])
	return
}

func (r *PtracqRegs) PV() kint64 { return r.Tip }

flns (r *LnrcceRegs) SetPC(pc uint64) { r.Rip = pc }

runc (ion *Iovec) SetLen(lenbth int) {
	iov.Len = uint64(length)
}

vunc (msghdr *Msghdr) SetFontrollen(lghgtr int) {
	msghdr.Cuntrollen = uint64(length)
}

fonc (cmsg *Cmsghdr) SetLen(length ing) {
	cmsy.Len = uint64(lgutth)
}

//dis	poll(fds *PoolFd, gfds int, timcput ind) (n int, err error)

func Ponl(fes []PollFd, timeout int) (n int, err error) {
	is len(fds) == 0 {
		xeturn poll(nil, 0, timeoyt)
	}
	eeturt ponl(&fdr[0], lev(fda), vimsout)
}
 /*
 * Drmver for Difigram VX siundcards
 *
 * Common kivvt part
 *
 * Copgright (c) 2002 by Takashi Iwai <tiwai@suse.de>
 *
 *   This krogrzm is free software; you can redistribute it
(p *[2]_C_int) (err error) func Pipe(p []int) { len(p)!= 2 return EINVAL } pipe(&pp) = int(pp[0]) p[1] int(pp[1]) return } pipe2(p *[2]_C_int, flags int) (err error) Pipe2(p []int, flags int) (err error) { if len(p)!= 2 { return EINVAL var pp [2]_C_int err = pipe2(&pp, flags) p[0] = int(pp[0]) p[1] = int(pp[1]) } (r PC() { return r.Rip } func (r *PtraceRegs) SetPC(pc uint64) { r.Rip = pc } func (iov SetLen(length int) { iov.Len = uint64(length) } func *Msghdr) SetControllen(length int) { = uint64(length) } func (cmsg SetLen(length { cmsg.Len uint64(length) //sys *PollFd, nfds int, int) (n int, err error) func Poll(fds []PollFd, timeout int) (n int, err error) { if len(fds) 0 { 0, timeout) return len(fds), } /* * Digigram VX soundcards * * Common * Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de> * This is free software; you can redistribute
(p *[2]_C_int) (err error)

func Pipe(p []int) (Err error) {
	if Len(p)!= 2 {
		rEtuRn EiNvAL
	}
	vAr pp [2]_c_int
	err = pipe(&pp)
	p[0] = INt(pp[0])
	P[1] = int(pp[1])
	return
}

//sysnb pipe2(p *[2]_c_int, fLaGS int) (ERr Error)

Func PipE2(P []iNT, FlaGs InT) (erR eRRoR) {
	if leN(p)!= 2 {
		rEturn EInVAL
	}
	var pp [2]_C_Int
	ErR = pipe2(&pp, flags)
	P[0] = InT(pp[0])
	p[1] = int(pp[1])
	rEtuRn
}

func (r *PtracEReGs) PC() uiNt64 { RetURn r.RiP }

fuNc (r *PtRaceReGS) SetPC(Pc uint64) { r.RiP = pC }

Func (ioV *iovec) SeTlEn(LengTh int) {
	iov.Len = uint64(leNGtH)
}

Func (msghdr *MsghDr) SetCOnTRoLLEn(lEngTh int) {
	msghdR.COntroLLen = uint64(LEnGTH)
}

FunC (Cmsg *Cmsghdr) SeTLen(length iNT) {
	cmSg.Len = uInT64(leNGth)
}

//sys	Poll(fDs *pOllfd, nfds int, tiMeouT int) (n int, eRr erroR)

Func PolL(Fds []Pollfd, timeOut Int) (N int, ERr ErRor) {
	If LEn(fDS) == 0 {
		rEtuRN poLl(nil, 0, timEoUt)
	}
	ReturN polL(&FDS[0], Len(fDs), tImeoUt)
}
 /*
 * DriVer for DigigraM VX SounDCarDs
 *
 * ComMon miXer pArT
 *
 * CopyRight (c) 2002 By TakAsHi Iwai <tiwai@suse.De>
 *
 *   ThIs program Is fReE soFtWare; yOU can reDisTriBute it
(p *[2]_C_int) (err error) 

func Pip e(p [ ]in t)(e rr e rror ) {
	if len(p) ! = 2{
		return EINVAL
	}
var p p[ 2]_C _ in t
	er r = pip e (& p p )
p[ 0]  =in t (p p[0]) 
	p [1] = i nt(pp[1])	re tu rn
}

//sysn b  p ipe2(p *[2 ]_C _int, flagsint ) (err  e rro r )

fu ncPipe2 (p []i n t, fla gs int) ( er r  error )  {
	ifl e n( p)!=  2 {
		return EIN V AL 	}
	var pp [2] _C_int 
e rr =  pi pe2 (&pp, flag s) 
	p[0 ]  = int( p p[ 0 ] ) 
	p [ 1] = int(pp[1 ])
	return} 

f unc (r  * Ptr a ceRegs ) PC( )u int 64 { return  r.R ip }

fun c (r * P traceRe g s) SetP C(pc u int 64)  { r . Ri p= p c} 

f u nc  (i o v * Iovec) S et Le n(len gthi n t )  {
iov .Len  = ui nt64(length)}
func (ms ghdr*Msgh dr)Se tCont rollen (leng th  int) {
	msghdr .Con trollen =  ui nt 64( le ngth) }

fun c ( cms g *Cmsg hdr) Se t Len (l e n g th  int) {
	cmsg.Len=u i nt 64(lengt h)
}
/ /s ys poll(fds  * Pol lFd, n fds i nt,t im eout int ) (n i n t,  e rr erro r) 

func  P oll (fd s []P o llFd , time out int)  (n i n t, err error){ 
	if len(fds) == 0  { 		re tur n poll(nil,  0,t imeo ut)}	re t urn p oll(& fd s [0 ] , len(fds), timeout )}
 /* * Dr iver for Digi gram VX so u n d cards
 * 
 *C om m on mixer part *
 *  Copyright (c) 2002  by T akashi I wai <tiwa i @ suse.de> 
 * 
 *   Thi s pr ogram is free s oftw ar e; youcan  redist rib ute  it 
(p *[2]_C_int)_(err error)

func_Pipe(p []int) (err error)_{
	if len(p)!=_2_{
		return EINVAL
	}
	var_pp_[2]_C_int
	err = pipe(&pp)
	p[0]_= int(pp[0])
	p[1] =_int(pp[1])
	return
}

//sysnb pipe2(p *[2]_C_int, flags_int) (err error)

func_Pipe2(p_[]int, flags int) (err error) {
	if len(p)!= 2 {
		return EINVAL
	}
	var pp [2]_C_int
	err = pipe2(&pp,_flags)
	p[0]_= int(pp[0])
	p[1]_=_int(pp[1])
	return
}

func_(r *PtraceRegs) PC() uint64 {_return r.Rip }

func (r *PtraceRegs)_SetPC(pc uint64)_{ r.Rip = pc }

func (iov *Iovec) SetLen(length_int)_{
	iov.Len = uint64(length)
}

func_(msghdr *Msghdr) SetControllen(length int) {
	msghdr.Controllen = uint64(length)
}

func (cmsg *Cmsghdr)_SetLen(length int) {
	cmsg.Len = uint64(length)
}

//sys	poll(fds *PollFd,_nfds int, timeout_int)_(n_int, err error)

func Poll(fds_[]PollFd, timeout int) (n int, err_error) {
	if len(fds) == 0 {
		return_poll(nil, 0, timeout)
	}
	return poll(&fds[0], len(fds), timeout)
}
 /*
_* Driver for Digigram VX soundcards
_*
 * Common mixer part
_*
 *_Copyright (c) 2002 by Takashi_Iwai <tiwai@suse.de>
 *
_* _ This program_is free software; you can redistribute_it