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

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

Contents


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

NAME    [Toc]    [Back]

     PXFSTRUCTCREATE - Creates an instance of the desired structure and
     returns a nonzero handle in the argument jhandle

SYNOPSIS    [Toc]    [Back]

     INTEGER jhandle, ierror
     CHARACTER*n structname
     CALL PXFSTRUCTCREATE (structname, jhandle,	ierror)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

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 PXFSTRUCTCREATE() routine creates an instance of the desired
     structure and returns a nonzero handle in the argument jhandle.  All
     further references	to this	instance of the	structure are through this
     handle.  The initial values of components within the new instance of
     the structure are undefined.

     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 are arguments for PXFSTRUCTCREATE:

     structname
	       An input	character variable.  structname	specifies which
	       type of structure should	be created.  Values for	structname
	       that are	currently recognized are shown in the following
	       table.  structname must be in lowercase letters;	trailing
	       blanks are ignored.

	       Values for structname:

	       ---------------------------------------------------
			     Structure	   Header file containing
	       structname    name	   definition
	       ---------------------------------------------------
	       FLOCK	     flock	  <fcntl.h>
	       UTIMBUF	     utimbuf	  <utime.h>
	       UTSNAME	     utsname	  <sys/utsname.h>
	       STAT	     stat	  <stat.h>
	       TMS	     tms	  <sys/times.h>
	       GROUP	     group	  <grp.h>
	       PASSWD	     passwd	  <pwd.h>
	       ---------------------------------------------------

     jhandle   An output integer variable.  The	structure handle is
	       returned	in jhandle.

     ierror    An output integer variable.

EXIT STATUS    [Toc]    [Back]

     Upon successful completion	of PXFSTRUCTCREATE, the	argument ierror	is
     set to 0.	If any of the following	conditions occur, PXFSTRUCTCREATE
     sets the argument to the corresponding value:

     ENONAME	    Component name is not defined for this structure

     ENOHANDLE	    Instance of	the structure could not	be created

EXAMPLES    [Toc]    [Back]

		program	test
		integer	junam, ierr, ilen
		character*15 sname
	  *  Create STRUCTURE to be used by uname()
		call pxfstructcreate('utsname',junam,ierr)
		if (ierr.ne.0) then
		   print *,'FAIL: error	from pxfstructcreate = ',ierr
		endif
	  *  Fill STRUCTURE through uname()
		call pxfuname(junam,ierr)
		if (ierr.ne.0) then
		   print *,'FAIL: error	from pxfuname =	',ierr
		endif
		ilen = 0
	  *  Retrieve component	sysname	from STRUCTURE
		call pxfstrget(junam,'sysname',sname,ilen,ierr)
		print *, 'sysname=',sname
	  *  Free STRUCTURE
		call pxfstructfree(junam,ierr)
		if (ierr.ne.0) then
		   print *,'FAIL: error	from pxfstructfree = ',ierr
		endif
		end

SEE ALSO    [Toc]    [Back]

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

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

NAME    [Toc]    [Back]

     PXFSTRUCTCREATE - Creates an instance of the desired structure and
     returns a nonzero handle in the argument jhandle

SYNOPSIS    [Toc]    [Back]

     INTEGER jhandle, ierror
     CHARACTER*n structname
     CALL PXFSTRUCTCREATE (structname, jhandle,	ierror)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

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 PXFSTRUCTCREATE() routine creates an instance of the desired
     structure and returns a nonzero handle in the argument jhandle.  All
     further references	to this	instance of the	structure are through this
     handle.  The initial values of components within the new instance of
     the structure are undefined.

     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 are arguments for PXFSTRUCTCREATE:

     structname
	       An input	character variable.  structname	specifies which
	       type of structure should	be created.  Values for	structname
	       that are	currently recognized are shown in the following
	       table.  structname must be in lowercase letters;	trailing
	       blanks are ignored.

	       Values for structname:

	       ---------------------------------------------------
			     Structure	   Header file containing
	       structname    name	   definition
	       ---------------------------------------------------
	       FLOCK	     flock	  <fcntl.h>
	       UTIMBUF	     utimbuf	  <utime.h>
	       UTSNAME	     utsname	  <sys/utsname.h>
	       STAT	     stat	  <stat.h>
	       TMS	     tms	  <sys/times.h>
	       GROUP	     group	  <grp.h>
	       PASSWD	     passwd	  <pwd.h>
	       ---------------------------------------------------

     jhandle   An output integer variable.  The	structure handle is
	       returned	in jhandle.

     ierror    An output integer variable.

EXIT STATUS    [Toc]    [Back]

     Upon successful completion	of PXFSTRUCTCREATE, the	argument ierror	is
     set to 0.	If any of the following	conditions occur, PXFSTRUCTCREATE
     sets the argument to the corresponding value:

     ENONAME	    Component name is not defined for this structure

     ENOHANDLE	    Instance of	the structure could not	be created

EXAMPLES    [Toc]    [Back]

		program	test
		integer	junam, ierr, ilen
		character*15 sname
	  *  Create STRUCTURE to be used by uname()
		call pxfstructcreate('utsname',junam,ierr)
		if (ierr.ne.0) then
		   print *,'FAIL: error	from pxfstructcreate = ',ierr
		endif
	  *  Fill STRUCTURE through uname()
		call pxfuname(junam,ierr)
		if (ierr.ne.0) then
		   print *,'FAIL: error	from pxfuname =	',ierr
		endif
		ilen = 0
	  *  Retrieve component	sysname	from STRUCTURE
		call pxfstrget(junam,'sysname',sname,ilen,ierr)
		print *, 'sysname=',sname
	  *  Free STRUCTURE
		call pxfstructfree(junam,ierr)
		if (ierr.ne.0) then
		   print *,'FAIL: error	from pxfstructfree = ',ierr
		endif
		end

SEE ALSO    [Toc]    [Back]

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

[ Back ]
 Similar pages
Name OS Title
pxfstructfree IRIX Deletes the instance of the structure referenced by jhandle
DtCreatePrintSetupBox HP-UX creates an instance of a DtPrintSetupBox widget
DtCreatePrintSetupDialog HP-UX creates an instance of a dialog containing a DtPrintSetupBox widget
varargs HP-UX handle variable argument list
pxfgetarg IRIX Returns a command-line argument
ceiling IRIX Returns the least integer greater than or equal to its argument
tiny IRIX Returns the smallest positive value for a real argument
trim IRIX Returns the character argument with trailing blank characters removed
spacing IRIX Returns the absolute spacing of real model numbers near the argument value
fraction IRIX Returns the fractional part of the numeric model representation of the argument value
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service