getash(2)                                                            getash(2)


NAME
     getash - get array session handle

SYNOPSIS
     #include <sys/types.h>
     #include <unistd.h>

     ash_t getash(void);

DESCRIPTION
     The getash function returns the array session handle (ASH) for the array
     session that contains the calling process.

     The handle for an array session is normally assigned by the system when
     the array session is first created.  This can be overridden using the
     privileged setash(2) function.  For details, see the man pages for
     setash(2).

SEE ALSO
     newarraysess(2), setash(2), array_sessions(5).

DIAGNOSTICS
     getash always returns the array session handle.  There are no error
     conditions.


                                                                        Page 1