CPU_IS_PA_R man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

sysconf(2)							    sysconf(2)

NAME
       sysconf(), CPU_IS_PA_RISC() - get configurable system variables

SYNOPSIS
DESCRIPTION
       The  system  call provides a way for applications to determine the cur‐
       rent value of a configurable limit or variable.

       The name argument represents the system variable being queried.

       The following table lists the configuration variable name, the  associ‐
       ated value for the name argument that is used in the call and the value
       returned.

       is described in the entry for

       Some of the variables in the table are defined  as  constants  in  (see
       limits(5)).  The associated values of the name argument are defined in

       ______________________________________________________________________

       Configuration Variable	     (Value for name Argument)

				     Value Returned by sysconf()

       ______________________________________________________________________

					    Version number of OSF/AES OSC sup‐
					    ported.

					    Maximum number of  aio  operations
					    that can be specified in a
				     call (see lio_listio(2)).

					    Maximum  number  of aio operations
					    that can be	 queued	 at  any  time
					    (see
				     aio(5)).

					    Maximum  slowdown  factor that can
					    be specified in the
				     field of a structure (see aio(5)).

					    Maximum total length of the	 argu‐
					    ments for
				     in bytes, including environment data (see
				     exec(2)).

					    Maximum number of  functions  that
					    can be registered with
				     (see atexit(3)).

					    Maximum
				     ibase  (input  number  radix)  and	 obase
				     (output number  radix)  allowed  by  (see
				     bc(1)).

					    Maximum  number  of elements in an
					    array permitted by
				     (see bc(1)).

					    Maximum scale  factor  (number  of
					    digits to the right of the decimal
					    point)
				     allowed by (see bc(1)).

					    Maximum length of strings  allowed
					    by
				     (see bc(1)).

					    Positive   if  the	implementation
					    supports multiple
				     locality	 domains;    otherwise	  (see
				     mpctl(2)).

					    Maximum   number  of  simultaneous
					    processes
				     per user ID (see fork(2)).

					    Number of clock intervals per sec‐
					    ond for
				     (see times(2)).

					    Number  of	clock ticks per second
					    for
				     (see clock(3C)).

					    Maximum number of weights that can
					    be assigned to an entry
				     of the order keyword in a input file (see
				     localedef(1M)).

					    systems:
				     CPUID Register  3	of  the	 Itanium-based
				     processor	identification registers.  See
				     the Itanium-based architecture definition
				     for this platform for the meaning of each
				     bit.

					    Itanium-based systems:
				     CPUID Register  4	of  the	 Itanium-based
				     processor	identification registers.  See
				     the Itanium-based architecture definition
				     for this platform for the meaning of each
				     bit.

				     PA-RISC:	Processor   Extensions.	   The
				     availability   of	architecture  specific
				     instructions is indicated by the key  bit
				     data  returned by Upon successful comple‐
				     tion, the data returned will be the logi‐
				     cal OR of the defined values for the fea‐
				     tures supported.

				     The possible values returned by and their
				     meanings  for PA-RISC platforms are shown
				     in the following table.

				     Return Value   Instruction Supported

				     Halfword  parallel	 add,  subtract,   and
				     average

				     Halfword parallel shift-and-add

					    Version of CPU architecture.

				     The   possible  values  of	 the  variable
				     returned by and their meanings are:

				     Value		 Meaning

				     HP Precision  Architecture	 RISC  Version
				     1.0

				     HP	 Precision  Architecture  RISC Version
				     1.1

				     HP Precision  Architecture	 RISC  Version
				     2.0

				     HP Itanium-based Architecture Version 0

				     The  function classifies cpuvers, a value
				     of the variable, as to its processor fam‐
				     ily.

					    Maximum timer overrun count.

					    Maximum  parenthesis nesting level
					    for
				     expressions (see expr(1)).

					    Maximum
				     data buffer size.

					    Maximum
				     data buffer size.

					    Maximum length of a host name (not
					    including  the  terminating	 null)
					    (see
				     gethostname(2)).

				     if	 the  hardware	is  capable  of
				     HyperThreading.
				     if	 the hardware is not capable of
				     HyperThreading.
					Note:  The value  returned  may
					change	during	the lifetime of
					the  calling  process,	if  the
					system	 administrator	changes
					the hardware configuration.

				     if the hardware  is  Hyper‐
				     Threading	enabled	 and  OS
				     supports HyperThreading.
				     if	 the  hardware	is   not
				     HyperThreading enabled.
					Note:	   The	   value
					returned may change dur‐
					ing  the lifetime of the
					calling process, if  the
					system	   administrator
					changes	  the	hardware
					configuration.

					    Returns which kernel
					    is supported on  the
					    hardware.
				     The  value	 returned  is an
				     encoding that may be inter‐
				     preted using the and macros
				     defined in

				     For example:

					    Type of I/O	 drivers
					    the kernel supports;
				     currently, only the value

					    Returns  the  number
					    of bits used by  the
					    kernel for pointer
				     and  long data types.  Cur‐
				     rent values include 32  and
				     64.

					    The	 version of libc
					    that is  in	 use  by
					    the application
				     that   is	requesting  this
				     information.

				     The  format  of  the  value
				     returned by is XXyyZZZZqN,

				     where:

				     XX	    HP-UX  major release
					    number

				     yy	    HP-UX minor	 release
					    number

				     ZZZZ   Library-specific
					    number

				     q	    One of the following
					    values:

					    32PA

					    64PA

					    32EM

					    64EM

					    Reserved

				     N	    One of the following
					    values:

					    Archive library

					    System V version  of
					    shared library

					    Maximum   number  of
					    bytes  in  an  input
					    line
				     (including the newline) for
				     POSIX.2 utilities.

					    Maximum  length   of
					    user name in bytes.

					    Not supported.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    memory locking (see
				     mlockall(2),	munlock‐
				     all(2)).

					    Positive if the sys‐
					    tem	 supports  POSIX
					    memory  range  lock‐
					    ing.

					    Not supported.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    message queues.

					    Maximum   number  of
					    per-process	    open
					    message	   queue
					    descriptors.

					    Maximum  limit   for
					    message priority.

					    Maximum   number  of
					    simultaneous supple‐
					    mentary   group  IDs
					    per process.

					    Maximum  number   of
					    files    that    one
					    process   can   have
					    open at one time.

					    Kernel  memory  page
					    size.

					    Maximum  number   of
					    significant bytes in
					    a password.

					    Equal to
				     if the Advisory Information
				     option is supported; other‐
				     wise.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    Asynchronous   Input
					    and Output.

					    Equal to
				     if	 the Barriers  option is
				     supported; otherwise.

					    Equal to
				     if	 the   Clock   Selection
				     option is supported; other‐
				     wise.

					    Equal to
				     if	 the  Process	CPU-Time
				     Clocks option is supported;
				     otherwise.

					    Positive if the File
					    Synchronization
					    option is  supported
					    (see
				     fsync(2)).

					    Equal to
				     if	 the IPv6 option is sup‐
				     ported; otherwise.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    job control;
				     otherwise.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    memory locking (see
				     mlockall(2),	munlock‐
				     all(2)).

					    Positive if the sys‐
					    tem	 supports  POSIX
					    memory mapped files.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    memory  range  lock‐
					    ing.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    memory protection.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    Prioritized	   Input
					    and Output.

					    Equal to
				     if	  the	Monotonic  Clock
				     option is supported; other‐
				     wise.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    message queues.

					    Positive if the sys‐
					    tem supports POSIX.4
					    priority scheduling;
				     otherwise.

					    Equal to
				     if	 the  Raw Sockets option
				     is supported; otherwise.

					    Equal to
				     if	 the  Read-Write   Locks
				     option is supported; other‐
				     wise.

					    Positive if the sys‐
					    tem supports POSIX.4
					    real   time	  signal
					    extensions;
				     otherwise.

					    Equal to
				     if	 the  Regular Expression
				     Handling  option  is   sup‐
				     ported; otherwise.

					    Positive   if   each
					    process has a  saved
					    set-user-ID
				     and  a  saved set-group-ID;
				     otherwise.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    semaphores.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    shared memory.

					    Equal to
				     if the POSIX shell is  sup‐
				     ported; otherwise.

					    Equal to
				     if the Spawn option is sup‐
				     ported; otherwise.

					    Equal to
				     if the Spin Locks option is
				     supported; otherwise.

					    Equal to
				     if	  the  Process	Sporadic
				     Server option is supported;
				     otherwise.

					    Not supported.

					    Positive if the Syn‐
					    chronized IO  option
					    is supported (see
				     open(2)).

					    Positive	if   the
					    implementation  sup‐
					    ports    the   POSIX
					    Thread Stack
				     Address  Attribute	 option;
				     otherwise.

					    Positive	if   the
					    implementation  sup‐
					    ports    the   POSIX
					    Thread Stack
				     Size Attribute option; oth‐
				     erwise.

					    Equal to
				     if	  the	Thread	CPU-Time
				     Clocks option is supported;
				     otherwise.

					    Positive	if   the
					    implementation  sup‐
					    ports the
				     POSIX    Thread	Priority
				     Scheduling	 option;  other‐
				     wise.

					    Positive	if   the
					    implementation  sup‐
					    ports the POSIX
				     Thread Priority Inheritance
				     option; otherwise.

					    Positive   if    the
					    implementation  sup‐
					    ports the POSIX
				     Thread Priority  Protection
				     option; otherwise.

					    Positive	if   the
					    implementation  sup‐
					    ports the POSIX
				     Thread  Process-Shared Syn‐
				     chronization option; other‐
				     wise.

					    Positive	if   the
					    implementation  sup‐
					    ports the POSIX
				     Thread   Thread-Safe  Func‐
				     tions option; otherwise.

					    Equal to
				     if	 the   Thread	Sporadic
				     Server option is supported;
				     otherwise.

					    Positive   if    the
					    implementation  sup‐
					    ports POSIX threads;
				     otherwise.

					    Equal to
				     if the Timeouts  option  is
				     supported; otherwise.

					    Positive if the sys‐
					    tem supports POSIX.4
					    clocks and timers;
				     otherwise.

					    Equal to
				     if the Trace option is sup‐
				     ported; otherwise.

					    Equal to
				     if the Trace  Event  Filter
				     option is supported; other‐
				     wise.

					    Maximum  length   of
					    the	   trace   event
					    name.

					    Equal to
				     if the Trace Inherit option
				     is supported; otherwise.

					    Equal to
				     if	 the Trace Log option is
				     supported; otherwise.

					    Maximum  length   of
					    the trace generation
					    version string or
				     of the trace stream name.

					    Maximum  number   of
					    trace  streams  that
					    may simultaneously
				     exist in the system.

					    Maximum  number   of
					    user   trace   event
					    type     identifiers
					    that  may simultane‐
					    ously
				     exist in a traced process

					    Maximum length of  a
					    terminal	  device
					    name.

					    Equal to
				     if the Typed Memory Objects
				     option is supported; other‐
				     wise.

					    Approval date of the
					    POSIX.1 Standard
				     (such    as    199009   for
				     POSIX.1-1990) to which  the
				     system    conforms.    This
				     value  indicates  the  year
				     (first   four  digits)  and
				     month  (next  two	 digits)
				     that   the	  standard   was
				     approved by the IEEE  Stan‐
				     dards Board.

					    Equal to
				     if	 the  POSIX.2 C Language
				     Bindings Option  is  avail‐
				     able  through  the utility;
				     otherwise.

					    Equal to
				     if the POSIX.2  C	Language
				     Development       Utilities
				     Option is supported; other‐
				     wise.

					    Current  version  of
					    the POSIX.2
				     C Language	 Binding  Option
				     supported	(same  format as
				     otherwise.

					    Equal to
				     if	 the   POSIX.2	 FORTRAN
				     Development       Utilities
				     Option is supported; other‐
				     wise.

					    Equal to
				     if the POSIX.2 Fortran Run‐
				     time  Utilities  Option  is
				     supported; otherwise.

					    Equal to
				     if	 locales  can be created
				     with the POSIX.2  localedef
				     utility; otherwise.

					    Equal to
				     if	 the  Batch  Environment
				     Services	and    Utilities
				     option is supported; other‐
				     wise.

					    Equal to
				     if	 the  Batch   Accounting
				     option is supported; other‐
				     wise.

					    Equal to
				     if	  the	 Batch	  Check‐
				     point/Restart   option   is
				     supported; otherwise.

					    Equal to
				     if	 the  Locate  Batch  job
				     request   option	is  sup‐
				     ported; otherwise.

					    Equal to
				     if the  Batch  Job	 Message
				     Request	option	is  sup‐
				     ported; otherwise.

					    Equal to
				     if	 the  Track  Batch   Job
				     Request   option	is  sup‐
				     ported; otherwise.

					    Equal to
				     if	 the  POSIX.2	Software
				     Development       Utilities
				     Option is supported; other‐
				     wise.

					    Equal to
				     if	 the POSIX.2 User Porta‐
				     bility Utilities Option  is
				     supported; otherwise.

					    Current  version  of
					    POSIX.2 (same format
					    as

					    Not supported.

					    Positive	if   the
					    implementation  sup‐
					    ports the Processor
				     Set Functions; otherwise.

					    Equal to
				     if	 the optional HP Process
				     Resource  Management  (PRM)
				     software  is  installed and
				     configured; otherwise  (see
				     prmconfig(1)).

					    The	    number    of
					    attempts   made   to
					    destroy a pthread's
				     thread-specific data values
				     on thread exit.

					    The	   number     of
					    pthread   data  keys
					    per process.

					    Minimum   size    in
					    bytes   of	 pthread
					    stack storage.

					    Maximum  number   of
					    pthreads that can be
					    created per process.

					    Maximum  number   of
					    repeated occurrences
					    of a regular expres‐
					    sion permitted
				     when   using  the	interval
				     notation (see regcomp(3C)).

					    Maximum  number   of
					    realtime signals
				     reserved	for  application
				     use.

					    (No	  DoD	security
					    level supported).

					    Positive if the sys‐
					    tem	 supports  POSIX
					    semaphores.

					    Maximum   number  of
					    open semaphores  per
					    process.

					    Maximum    semaphore
					    value.

					    Positive if the sys‐
					    tem	 supports  POSIX
					    shared memory.

					    Maximum  number   of
					    queued signals
				     that a process may send and
				     have   pending    at    the
				     receivers at any time.

					    Maximum number of
				     streams  that  one	 process
				     can have open at one time.

					    Maximum  number   of
					    POSIX.4  timers  per
					    process,
				     if POSIX.4 timers are  sup‐
				     ported; otherwise.

					    Value of

					    Maximum   number  of
					    bytes in a time zone
					    name for the
				     environment variable.

					    Equal to
				     if	 the  X/Open  Encryption
				     Feature Group is supported;
				     otherwise.

					    Equal to
				     if	  the	X/Open	Enhanced
				     Internationalization   Fea‐
				     ture  Group  is  supported;
				     otherwise.

					    Not supported.

					    Not supported.

					    Not supported.

					    Equal to
				     if the X/Open Shared Memory
				     Feature Group is supported;
				     otherwise.

					    Equal to
				     if the  Streams  option  is
				     supported; otherwise.

					    Issue number of
				     supported.

					    A  flag that denotes
					    whether
				     and  are  supported  by   A
				     return  value  of indicates
				     they are not supported.

					    A flag that	 denotes
					    whether
				     and   are	supported  by  A
				     return value  of  indicates
				     they are not supported.

					    A  flag that denotes
					    whether
				     and  are  supported  by   A
				     return  value  of indicates
				     they are not supported.

					    A flag that	 denotes
					    whether
				     and   are	supported  by  A
				     return value  of  indicates
				     they are not supported.

       ______________________________________________________________________

RETURN VALUE
       Upon successful completion,  returns  the  value	 of  the
       named  variable.	 If the value of name is not recognized,
       returns and sets to If the value in name is  defined  but
       is  not	supported  in this environment, returns but does
       not change

       returns positive nonzero if cpuvers is an HP PA-RISC pro‐
       cessor; zero if not.

ERRORS
       If fails, the value of (see errno(2)) is set to:

	      The value of   name is not valid.

EXAMPLES
       The  following example determines the number of times the
       system clock ticks each second:

		...

       The following example determines if the current processor
       is an HP PA-RISC machine:

		...

WARNINGS
       is implemented as a macro.

       Normally,  the  values returned from do not change during
       the lifetime of the calling process.  However, the  value
       of  the	symbolic constant and thus the value of can vary
       under certain circumstances.  If either	of  the	 feature
       test  macros  or	 is  defined  by the programmer prior to
       including the value of is defined as in conformance  with
       POSIX.1-1988, FIPS 151-1, and XPG3.  Otherwise, the value
       of is defined as in conformance with POSIX.1-1990.

       Similarly, the value of the symbolic  constant  and  thus
       the  value  of  can vary under certain circumstances.  If
       the feature test macro is defined by the programmer prior
       to  including  the  value of is defined as in conformance
       with XPG3.  Otherwise, the value of is defined as in con‐
       formance with XPG4.

       See  stdsyms(5)	for more information about these feature
       test macros.

       Any application that has a dependency on libdld.sl  is  a
       potential  user of both archived and shared libc.  Appli‐
       cations that comprise both archived and shared components
       where  may  be  invoked from both the archived and shared
       components may get inconsistent return values from

AUTHOR
       was developed by HP and POSIX.

       was developed by HP.

SEE ALSO
       bc(1), expr(1), getconf(1), prmconfig(1),  localedef(1M),
       errno(2),  exec(2),  fork(2),  fsync(2),	 gethostname(2),
       getrlimit(2),   lio_listio(2),	mlockall(2),   mpctl(2),
       munlockall(2), open(2), pathconf(2), times(2), atexit(3),
       clock(3C), confstr(3C), regcomp(3C),  aio(5),  limits(5),
       stdsyms(5), thread_safety(5), unistd(5).

       HP Process Resource Manager: prmconfig(1) in

STANDARDS CONFORMANCE
								    sysconf(2)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net