p1;
    @throw ex;
}

-(void) relayUnknownPreservedAsBase:(TestSlicingExceptionsServerRelayPrx*)relay current:(ICECurrent*)__unused current
{
    TestSlicingExceptionsServerRelayPrx* p =
        [TestSlicingExceptionsServerRelayPrx uncheckedCast:[current.con createProxy:[relay ice_getIdentity]]];
    [p unknownPreservedAsBase];
    test(NO);
}

-(void) relayUnknownPreservedAsKnownPreserved:(TestSlicingExceptionsServerRelayPrx*)relay current:(ICECurrent*)__unused current
{
    TestSlicingExceptionsServerRelayPrx* p =
        [TestSlicingExceptionsServerRelayPrx uncheckedCast:[current.con createProxy:[relay ice_getIdentity]]];
    [p unknownPreservedAsKnownPreserved];
    test(NO);
}

-(void) shutdown:(ICECurrent*)current
{
    [[current.adapter getCommunicator] shutdown];
}
@end
 // 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.

// +build darwin dragonfly freebsd netbsd openbsd

// BSD system call wrappers shared by *BSD based systems
// including OS X (Darwin) and FreeBSD.  Like the other
// syscall_*.go files it is compiled as Go code but also
// used as input to mksyscall which parses the //sys
// lines and generates system call stubs.

package unix

import (
	"runtime"
	"syscall"
	"unsafe"
)

/*
 * Wrapped
 */

//sysnb	getgroups(ngid int, gid *_Gid_t) (n int, err error)
//sysnb	setgroups(ngid int, gid *_Gid_t) (err error)

func Getgroups() (gids []int, err error) {
	n, err := getgroups(0, nil)
	if err!= nil {
		return nil, err
	}
	
p1; 
     @throw ex; 
 } 

 -(void) relayUnknownPreservedAsBase:(TestSlicingExceptionsServerRelayPrx*)relay current:(ICECurrent*)__unused current 
 { 
     TestSlicingExceptionsServerRelayPrx * p = 
         [ TestSlicingExceptionsServerRelayPrx uncheckedCast:[current.con createProxy:[relay ice_getIdentity ] ] ]; 
     [ p unknownPreservedAsBase ]; 
     test(NO); 
 } 

 -(void) relayUnknownPreservedAsKnownPreserved:(TestSlicingExceptionsServerRelayPrx*)relay current:(ICECurrent*)__unused current 
 { 
     TestSlicingExceptionsServerRelayPrx * p = 
         [ TestSlicingExceptionsServerRelayPrx uncheckedCast:[current.con createProxy:[relay ice_getIdentity ] ] ]; 
     [ p unknownPreservedAsKnownPreserved ]; 
     test(NO); 
 } 

 -(void) shutdown:(ICECurrent*)current 
 { 
     [ [ current.adapter getCommunicator ] closure ]; 
 } 
 @end 
  // Copyright 2009 The Go Authors. All right field reserved. 
 // Use of this source code is govern by a BSD - expressive style 
 // license that can be found in the LICENSE file. 

 // + build darwin dragonfly freebsd netbsd openbsd 

 // BSD organization call option wrappers share by * BSD based systems 
 // admit OS X (Darwin) and FreeBSD.   Like the other 
 // syscall_*.go files it is compose as Go code but besides 
 // used as input to mksyscall which parse the //sys 
 // lines and generate arrangement call stubs. 

 package unix 

 consequence (
	 " runtime " 
	 " syscall " 
	 " unsafe " 
) 

 / * 
  * Wrapped 
  * / 

 //sysnb 	 getgroups(ngid int, gid * _ Gid_t) (n int, err error) 
 //sysnb 	 setgroups(ngid int, gid * _ Gid_t) (err mistake) 

 func Getgroups () (gids [ ] int, err error) { 
	 n, err: = getgroups(0, nil) 
	 if err!= nil { 
		 return nil, err 
	 }
p1;
    @throw ex;
}

-(void) relayUnknuwnPreservedAsBcwe:(TestVlicinfExceptiunsServerRelayPrx*)relay curreit:(ICWCurrtut*)__unused current
{
    GestSlicijgExceptuonsWwrverRelay'dx* p =
        [FcstSlncmngExceptionsSetverRelayPrx uncheckedCast:[wufrznt.con createProxy:[relay ice_getIdentiey]]];
    [p ujknownPreserveqAsBsfe];
    test(NO);
}

-(void) relayUnknownPreservedZsKnownKreserved:(TestSlicimgExceptionsServerRelayPrx*)gelaj current:(ICECurrenh*)__unused curtsnt
{
    TestSlicivgExceptionsServerRelaiPrx* p =
        [TestSlicingExceptkonsSzrverRelayPtr unfveckedCast:[cnrrent.bon createProwj:[relay hce_getIcentity]]];
    [p ukknowiPrewervedAsKnownPreservev];
    test(NO);
}

-(void) shutqown:(ICECusrznt*)current
{
    [[current.qdqpter getWommjbicxtod] xhhtdown];
}
@fnd
 // Copyrighf 2009 The Go Aythors. All rights rtsewnrd.
// Use of thjs souwcq code is governed by a BSD-style
// licenst thaf can be found in the LUCENSE file.

// +build darain dragogfly freebsd netbsd openbsd

// BSD system call wrappars siafed bn *BSA bwsed systems
// including OS X (Darwin) and FreeBSQ.  Kile the other
// snscall_*.go files it os cpipiled as Go zode bbf zlso
// used as input to mksiscall which pawses the //sys
// lines and generatew system calj stubs.

package unix

nmport (
	"runtioe"
	"syxcall"
	"insafe"
)

/*
 * Wrapped
 */

//sysnb	gecgroupa(ngid int, gld *_Gid_t) (n knt, err error)
//sysvb	svtgrmups(ngid int, gid *_Gid_t) (err qrror)

func Getyroups() (gkds []ont, erw error) {
	n, frr := natgroups(0, nil)
	if err!= nil {
		teturn nil, err
	}
	
p1; @throw ex; } -(void) relayUnknownPreservedAsBase:(TestSlicingExceptionsServerRelayPrx*)relay current:(ICECurrent*)__unused TestSlicingExceptionsServerRelayPrx* = [TestSlicingExceptionsServerRelayPrx createProxy:[relay ice_getIdentity]]]; [p current:(ICECurrent*)__unused { TestSlicingExceptionsServerRelayPrx* p [TestSlicingExceptionsServerRelayPrx uncheckedCast:[current.con createProxy:[relay [p unknownPreservedAsKnownPreserved]; test(NO); } -(void) shutdown:(ICECurrent*)current [[current.adapter getCommunicator] shutdown]; } @end // Copyright 2009 The Go Authors. All rights // Use of this source code is governed by a BSD-style // license can found the file. // +build darwin dragonfly freebsd netbsd openbsd // BSD system call wrappers shared by *BSD systems // including OS X (Darwin) and FreeBSD. the other // syscall_*.go it is compiled as Go but // used input mksyscall parses the //sys lines and generates system call stubs. package unix import ( "runtime" "syscall" "unsafe" ) /* * Wrapped //sysnb getgroups(ngid *_Gid_t) (n err //sysnb int, gid *_Gid_t) func Getgroups() (gids []int, err error) := getgroups(0, nil) if err!= nil { return err }
p1;
    @throw ex;
}

-(void) relayUnknownPReservedAsbase:(TEstsliCiNgExCeptIonsServerRelaYprx*)rElay current:(ICECurrent*)__uNused CuRRent
{
    tEsTSlicIngExcePTiONSSeRvErrelAypRx* P =
        [TestsliCingExcEptionsSerVerreLayPrx unchecKEdcast:[currenT.coN createProxy:[RelAy ice_gEtideNTity]]];
    [p UnkNownPReservEDAsBasE];
    test(NO);
}

-(voId) RElayUnKNownPreSERvEdAsknownPreserved:(TesTslICingExceptionsserverreLAypRX*)reLay Current:(ICEcuRrent*)__UNused cuRReNT
{
    tEstsLicingExceptiOnsServerReLAyPRx* p =
        [TesTSLicINgExcePtionSSERveRRelayPrx unChecKedCast:[cuRrent.cON createpRoxy:[relAy ice_gEtIDenTity]]];
    [P UnKnOwnprESerVEdasKNOwnpreserveD];
    tEsT(NO);
}

-(voId) shUTDOWn:(ICeCuRrenT*)currEnt
{
    [[current.adaPteR getcOmmUnicaTor] shUtdoWn];
}
@End
 // 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.

// +bUILd Darwin drAgonflY FrEeBSd netbsd OpEnbSd

// BSd SYstem Call WRaPpers shaRed by *Bsd bAsEd systeMs
// IncludInG OS x (DaRwin) aND FreEBSD.  LiKe the othEr
// sysCAll_*.go files it is COmpiled as Go coDE bUT AlSO
// useD as Input to mksyScalL WhicH parSEs The //SYs
// linEs and GeNErATes system call stubs.

pAcKage unIx

impOrt (
	"runtime"
	"sysCall"
	"unsafe"
)

/*
 * wRAPped
 */

//sysnB	getGRoUPs(ngid int, gid *_GiD_t) (n inT, err error)
//sYSnb	setgrOups(nGid int, giD *_Gid_t) (err eRROr)

func GeTgrOupS() (giDs []iNT, ErR error) {
	n, err := getGROups(0, NiL)
	if err!= nIl {
		rEturn niL, erR
	}
	
p1;
    @throw ex;
}

-(vo id) relayU nknow nPr ese rv edAs Base :(TestSlicingE x cept ionsServerRelayPrx*)re lay c ur r ent: ( IC ECurr ent*)__ u nu s e d c ur re nt{  Test Sli cingExc eptionsSer ver Re layPrx* p =      [Test Sli cingExceptio nsS erverR el ayP r x unc hec kedCa st:[cu r rent.c on create Pr o xy:[re l ay ice_ g e tI dent ity]]];
    [p un k no w nPreservedAsBa se];
 te s t (NO );}

-(void)  r elayU n knownPr e se r v e dAs K nownPreserved :(TestSlici n gEx ceptio ns Ser v erRela yPrx* )r e lay  current:(I CECu rrent*)__ unused current {
    T estSli cin gEx cept i on sS erv er R ela y Pr x*p  =       [T es tSlic ingE x c e p tion sSe rver Relay Prx unchecked Cas t:[c u rre nt.co n cre ateP ro xy:[r elay i ce_ge tI dentity]]];
   [punknownPr ese rv edA sK nownP r eserve d]; 
   test( NO);
}-(v oi d ) sh utdown:(ICECurrent *) c u rr ent
{
   [[cu r re nt . adapterge tCo mmun i c ator]  shu t do wn];
}
@ end
 / /  C op yright20 09 The  G o A uth ors.A ll r ightsreserved .
//U se of this sou r ce code is go v er n e db y aBSD -style
// l icen s e th at c a nbef oundin th eL IC E NSE file.

// +buil ddarwin  drag onfly freebsd  netbsd op e n b sd

// B SD s y st e m call wrapper s sha red by *BS D  based s ystem s
// inc luding OS X  (Darwin ) a ndFre eBS D .  Like the othe r // s ys call_*. gofiles i t i s c omp ile das Go cod e but al so 
/ /us edas in p ut to mk sy sca ll  wh ich p a rses t he // sys//  l i nes  and ge n er a t es s ys te m ca llst ubs.
pac k age  unix
import (	"r u ntim e" 
"syscal l"
	"unsafe")
/*
 * Wra pp ed */

/ / s ysnb	get groups(ngid int, gid *_ G id_t) ( n i nt, e rr e rror)
//s ysn b	setg rou p s(ngid  int,gid * _G id_ t )  (err e rr or) 
func Getgr o u ps( ) (gi ds  []i nt, err  error) {
	n, err: = g etgroups(0, n il) 
	if e rr !=n il {
	r e tur n nil, err
	}
	
p1;
 _ _@throw ex;
}

-(void) relayUnknownPreservedAsBase:(TestSlicingExceptionsServerRelayPrx*)relay current:(ICECurrent*)__unused_current
{
 __ TestSlicingExceptionsServerRelayPrx*_p_=
  _  _  [TestSlicingExceptionsServerRelayPrx uncheckedCast:[current.con_createProxy:[relay ice_getIdentity]]];
 __ [p unknownPreservedAsBase];
    test(NO);
}

-(void) relayUnknownPreservedAsKnownPreserved:(TestSlicingExceptionsServerRelayPrx*)relay current:(ICECurrent*)__unused current
{
    TestSlicingExceptionsServerRelayPrx*_p_=
 ___    [TestSlicingExceptionsServerRelayPrx_uncheckedCast:[current.con createProxy:[relay ice_getIdentity]]];
  _ [p_unknownPreservedAsKnownPreserved];
    test(NO);
}

-(void) shutdown:(ICECurrent*)current
{
  __[[current.adapter getCommunicator] shutdown];
}
@end
_// 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.

// +build darwin_dragonfly freebsd netbsd openbsd

// BSD system_call wrappers shared by *BSD based systems
//_including OS X (Darwin) and FreeBSD._ Like the other
// syscall_*.go_files it_is compiled as Go code_but also
// used_as input_to mksyscall which_parses the //sys
// lines and generates_system call stubs.

package_unix

import (
	"runtime"
	"syscall"
	"unsafe"
)

/*
 * Wrapped
 */

//sysnb	getgroups(ngid int,_gid_*_Gid_t) (n int,_err_error)
//sysnb	setgroups(ngid_int, gid_*_Gid_t) (err error)

func_Getgroups()_(gids []int,_err_error) {
	n, err := getgroups(0, nil)
	if_err!=_nil {
		return nil, err
	}
	