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

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

Contents


ASSIGN(3F)					      Last changed: 2-24-98

NAME    [Toc]    [Back]

     ASSIGN, ASNUNIT, ASNFILE, ASNRM - Provides	library	interface to assign
     processing

SYNOPSIS    [Toc]    [Back]

     All systems:

     CALL ASNUNIT(iunit, astring, ier)

     CALL ASNFILE(fname, astring, ier)

     CALL ASNRM(ier)

     CALL ASSIGN(cmd ,ier)

     UNICOS and	UNICOS/mk systems only:

     CALL ASSIGN(cmd)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk and IRIX	systems

DESCRIPTION    [Toc]    [Back]

     This routine is supported on IRIX systems for programs compiled with
     the MIPSpro 7 Fortran 90 compiler or compiled with	the -craylibs
     option to the MIPSpro 7.2 F77 compiler.

     ASSIGN provides an	interface to assign processing from Fortran.

     ASNUNIT and ASNFILE assign	attributes to units and	files,
     respectively.

     ASNRM removes all entries currently in the	assign environment.

     When using	the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
     UNICOS, UNICOS/mk,	or IRIX, 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.

     These routines have the following arguments:

     cmd       A Fortran character variable containing a complete assign(1)
	       command in the format also acceptable to	ISHELL(3F).  The -V
	       option cannot be	processed by the ASSIGN	routine.

     ier       An integer variable that	is assigned the	exit status on
	       return.	A 0 indicates normal return; >0	indicates a
	       specific	error status

     iunit     An integer variable or constant containing the unit number
	       to which	attributes are assigned.

     astring   A Fortran character variable containing any attribute
	       options and option values that could be passed to assign(1).
	       Control options -I, -O, and -R can also be passed.

     fname     A character variable or constant	containing the file name to
	       which attributes	are assigned.

NOTES    [Toc]    [Back]

     Users are encouraged to use the ASSIGN library routines rather than
     ISHELL('assign'), because ISHELL(3F) causes vfork(2), an exec(2) of
     sh(1), another fork(2), and another exec(2) of assign(1).

EXAMPLES    [Toc]    [Back]

     Example 1:	 The following is equivalent to	assign -s unblocked f:file

	  CALL ASSIGN('assign -s unblocked f:file' ,ier)

     Example 2:	 The following has the same effect as assign -I	-n 2 u:99

	  INTEGER IUN
	  IUN =	99
	  CALL ASNUNIT(IUN,'-I -n 2',IER)

     Example 3:	 The following is equivalent to	executing assign -s tape
     u:1

	  CALL ASNUNIT(1,' -s tape',IER)

SEE ALSO    [Toc]    [Back]

      
      
     ASNCTL(3F), ASNQFILE(3F), ASNQUNIT(3F), ISHELL(3F)

     assign(1)

     Application Programmer's Library Reference	Manual,	publication
     SR-2165, for the printed version of this man page.
ASSIGN(3F)					      Last changed: 2-24-98

NAME    [Toc]    [Back]

     ASSIGN, ASNUNIT, ASNFILE, ASNRM - Provides	library	interface to assign
     processing

SYNOPSIS    [Toc]    [Back]

     All systems:

     CALL ASNUNIT(iunit, astring, ier)

     CALL ASNFILE(fname, astring, ier)

     CALL ASNRM(ier)

     CALL ASSIGN(cmd ,ier)

     UNICOS and	UNICOS/mk systems only:

     CALL ASSIGN(cmd)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk and IRIX	systems

DESCRIPTION    [Toc]    [Back]

     This routine is supported on IRIX systems for programs compiled with
     the MIPSpro 7 Fortran 90 compiler or compiled with	the -craylibs
     option to the MIPSpro 7.2 F77 compiler.

     ASSIGN provides an	interface to assign processing from Fortran.

     ASNUNIT and ASNFILE assign	attributes to units and	files,
     respectively.

     ASNRM removes all entries currently in the	assign environment.

     When using	the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
     UNICOS, UNICOS/mk,	or IRIX, 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.

     These routines have the following arguments:

     cmd       A Fortran character variable containing a complete assign(1)
	       command in the format also acceptable to	ISHELL(3F).  The -V
	       option cannot be	processed by the ASSIGN	routine.

     ier       An integer variable that	is assigned the	exit status on
	       return.	A 0 indicates normal return; >0	indicates a
	       specific	error status

     iunit     An integer variable or constant containing the unit number
	       to which	attributes are assigned.

     astring   A Fortran character variable containing any attribute
	       options and option values that could be passed to assign(1).
	       Control options -I, -O, and -R can also be passed.

     fname     A character variable or constant	containing the file name to
	       which attributes	are assigned.

NOTES    [Toc]    [Back]

     Users are encouraged to use the ASSIGN library routines rather than
     ISHELL('assign'), because ISHELL(3F) causes vfork(2), an exec(2) of
     sh(1), another fork(2), and another exec(2) of assign(1).

EXAMPLES    [Toc]    [Back]

     Example 1:	 The following is equivalent to	assign -s unblocked f:file

	  CALL ASSIGN('assign -s unblocked f:file' ,ier)

     Example 2:	 The following has the same effect as assign -I	-n 2 u:99

	  INTEGER IUN
	  IUN =	99
	  CALL ASNUNIT(IUN,'-I -n 2',IER)

     Example 3:	 The following is equivalent to	executing assign -s tape
     u:1

	  CALL ASNUNIT(1,' -s tape',IER)

SEE ALSO    [Toc]    [Back]

      
      
     ASNCTL(3F), ASNQFILE(3F), ASNQUNIT(3F), ISHELL(3F)

     assign(1)

     Application Programmer's Library Reference	Manual,	publication
     SR-2165, for the printed version of this man page.
[ Back ]
 Similar pages
Name OS Title
assign IRIX Assigns options for library file open processing
glcstringtype IRIX assign a value to GLC_STRING_TYPE
glcloadmatrix IRIX assign a value to GLC_BITMAP_MATRIX
glcreplacementcode IRIX assign a value to GLC_REPLACEMENT_CODE
glcresolution IRIX assign a value to GLC_RESOLUTION
glcdatapointer IRIX assign a value to GLC_DATA_POINTER
glcrenderstyle IRIX assign a value to the variable GLC_RENDER_STYLE
setbuffer Tru64 Assign buffering to a stream
setbuf Tru64 Assign buffering to a stream
setlinebuf Tru64 Assign buffering to a stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service