©2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c8/uname.c

Go to the documentation of this file.
00001 #include "defs.h"
00002 #include <sys/utsname.h>
00003 
00004 /*[uname]*/
00005 int main(void)
00006 {
00007     struct utsname info;
00008     
00009     ec_neg1( uname(&info) )
00010     printf("sysname = %s\n", info.sysname);
00011     printf("nodename = %s\n", info.nodename);
00012     printf("release = %s\n", info.release);
00013     printf("version = %s\n", info.version);
00014     printf("machine = %s\n", info.machine);
00015     exit(EXIT_SUCCESS);
00016 
00017 EC_CLEANUP_BGN
00018     exit(EXIT_FAILURE);
00019 EC_CLEANUP_END
00020 }
00021 /*[]*/

Generated on Fri Apr 23 10:57:02 2004 for AUP2 Example Source by doxygen 1.3.1