*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> f90/pxfuname (3)              
Title
Content
Arch
Section
 

Contents


PXFUNAME(3F)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     PXFUNAME -	Retrieves the operating	system name

SYNOPSIS    [Toc]    [Back]

     INTEGER junam, ierror
     CALL PXFUNAME(junam, ierror)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     IEEE standard interface for FORTRAN 77

DESCRIPTION    [Toc]    [Back]

     On	IRIX systems, this routine is in libfortran.so which is	linked by
     default when compiling programs with the MIPSpro 7	Fortran	90 compiler
     or	when compiling programs	with the -craylibs option to the MIPSpro
     7.2 F77 compiler.

     The PXFUNAME routine uses the uname() system call to get the
     components	of the operating system	name.

     The components of the utsname structure are:

     * sysname:	 Name of the operating system

     * nodename:  Name of node in the operating	system

     * release:	 Current release level of the operating	system

     * version:	 Current version level of the release

     * machine:	 Name of hardware type currently executing the program

     When using	the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
     UNICOS, UNICOS/mk,	or IRIX	systems, all arguments must be of default
     kind unless documented otherwise.	On UNICOS and UNICOS/mk, default
     kind is KIND=8 for	integer, real, complex,	and logical arguments; on
     IRIX, the default kind is KIND=4.

     The following is a	list of	valid arguments	for this routine:

     junam     An input	integer	variable or array element containing a
	       handle for a utsname structure.	This should have been
	       created by a call to the	PXFSTRUCTCREATE(3F) routine.

     ierror    An output integer variable that contains	zero if	PXFUNAME
	       returned	the structure successfully or nonzero if PXFUNAME
	       was unable to return the	structure.

EXAMPLES    [Toc]    [Back]

	  program test
	  integer junam, ierr, ilen
	  character*15 sname, nname, rel, vers,	mach
	  call pxfstructcreate('utsname',junam,ierr)
	  call pxfuname(junam,ierr)
	  IF (ierr.ne.0) then
	     print *,'FAIL: error from pxfuname	= ',ierr
	  else
	     print *,'PASS: No error from pxfuname = '
	  endif
	  ilen = 0
	  call pxfstrget(junam,'sysname',sname,ilen,ierr)
	  ilen = 0
	  call pxfstrget(junam,'nodename',nname,ilen,ierr)
	  ilen = 0
	  call pxfstrget(junam,'release',rel,ilen,ierr)
	  ilen = 0
	  call pxfstrget(junam,'version',vers,ilen,ierr)
	  ilen = 0
	  call pxfstrget(junam,'machine',mach,ilen,ierr)
	  print	*, 'sysname=',sname
	  print	*, 'nodename=',nname
	  print	*, 'release=',rel
	  print	*, 'version=',vers
	  print	*, 'machine=',mach
	  call pxfstructfree(junam,ierr)

SEE ALSO    [Toc]    [Back]

      
      
     uname(2)
     PXFSTRUCTCREATE(3F)

     Application Programmer's Library Reference	Manual,	publication SR2165,
 for the printed version of this man page.

PXFUNAME(3F)					       Last changed: 1-6-98

NAME    [Toc]    [Back]

     PXFUNAME -	Retrieves the operating	system name

SYNOPSIS    [Toc]    [Back]

     INTEGER junam, ierror
     CALL PXFUNAME(junam, ierror)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     IEEE standard interface for FORTRAN 77

DESCRIPTION    [Toc]    [Back]

     On	IRIX systems, this routine is in libfortran.so which is	linked by
     default when compiling programs with the MIPSpro 7	Fortran	90 compiler
     or	when compiling programs	with the -craylibs option to the MIPSpro
     7.2 F77 compiler.

     The PXFUNAME routine uses the uname() system call to get the
     components	of the operating system	name.

     The components of the utsname structure are:

     * sysname:	 Name of the operating system

     * nodename:  Name of node in the operating	system

     * release:	 Current release level of the operating	system

     * version:	 Current version level of the release

     * machine:	 Name of hardware type currently executing the program

     When using	the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
     UNICOS, UNICOS/mk,	or IRIX	systems, all arguments must be of default
     kind unless documented otherwise.	On UNICOS and UNICOS/mk, default
     kind is KIND=8 for	integer, real, complex,	and logical arguments; on
     IRIX, the default kind is KIND=4.

     The following is a	list of	valid arguments	for this routine:

     junam     An input	integer	variable or array element containing a
	       handle for a utsname structure.	This should have been
	       created by a call to the	PXFSTRUCTCREATE(3F) routine.

     ierror    An output integer variable that contains	zero if	PXFUNAME
	       returned	the structure successfully or nonzero if PXFUNAME
	       was unable to return the	structure.

EXAMPLES    [Toc]    [Back]

	  program test
	  integer junam, ierr, ilen
	  character*15 sname, nname, rel, vers,	mach
	  call pxfstructcreate('utsname',junam,ierr)
	  call pxfuname(junam,ierr)
	  IF (ierr.ne.0) then
	     print *,'FAIL: error from pxfuname	= ',ierr
	  else
	     print *,'PASS: No error from pxfuname = '
	  endif
	  ilen = 0
	  call pxfstrget(junam,'sysname',sname,ilen,ierr)
	  ilen = 0
	  call pxfstrget(junam,'nodename',nname,ilen,ierr)
	  ilen = 0
	  call pxfstrget(junam,'release',rel,ilen,ierr)
	  ilen = 0
	  call pxfstrget(junam,'version',vers,ilen,ierr)
	  ilen = 0
	  call pxfstrget(junam,'machine',mach,ilen,ierr)
	  print	*, 'sysname=',sname
	  print	*, 'nodename=',nname
	  print	*, 'release=',rel
	  print	*, 'version=',vers
	  print	*, 'machine=',mach
	  call pxfstructfree(junam,ierr)

SEE ALSO    [Toc]    [Back]

      
      
     uname(2)
     PXFSTRUCTCREATE(3F)

     Application Programmer's Library Reference	Manual,	publication SR2165,
 for the printed version of this man page.

[ Back ]
 Similar pages
Name OS Title
uname OpenBSD print operating system name
prf IRIX operating system profiler
uname Tru64 Displays information about the operating system
update-ux HP-UX updates the HP-UX operating system from new HP-UX media
savecore OpenBSD save a core dump of the operating system
savecrash HP-UX save a crash dump of the operating system
Introduction HP-UX introduction to the HP-UX operating system and the HPUX Reference
pf.os OpenBSD format of the operating system fingerprints file
osview IRIX monitor operating system activity data
introduction HP-UX introduction to the HP-UX operating system and the HPUX Reference
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service