11 int epoc32_uname(struct regina_utsname
*name
)
13 TMachineInfoV1Buf machine
;
14 UserHal::MachineInfo (machine
);
16 memcpy( (char *)name
->sysname
, (char *)machine().iProcessorName
.Ptr(), machine().iProcessorName
.Length() );
17 name
->sysname
[machine().iProcessorName
.Length()] = '\0';
18 sprintf( name
->version
,"%d.%d",machine ().iRomVersion
.iMajor
, machine ().iRomVersion
.iMinor
);
19 sprintf( name
->release
,"%d",machine ().iRomVersion
.iBuild
);
20 memcpy( (char *)name
->nodename
, (char *)machine().iPsuName
.Ptr(), machine().iPsuName
.Length() );
21 name
->nodename
[machine().iPsuName
.Length()] = '\0';
22 memcpy( (char *)name
->machine
, (char *)machine().iMachineName
.Ptr(), machine().iMachineName
.Length() );
23 name
->machine
[machine().iMachineName
.Length()] = '\0';
27 void beep( int freq
, int dur
)
31 TRequestStatus status
;
35 config().iVolume
= EVolumeMedium
;
36 snd
.SetConfig( config
);
37 snd
.PlaySineWave( status
, freq
, EVolumeMedium
, dur
);
38 User::WaitForRequest( status
);