Where is SHM_FAILED defined in RHEL?

Solution Unverified - Updated -

Issue

We are porting an application from HP-UX and found that SHM_FAILED does not exist on RHEL. On HP-UX it has the following meaning
in the shmat() system call:

If the calling process is already attached to the shared memory
segment, shmat() fails and returns SHM_FAILED regardless of what value
is passed in shmaddr.  See exceptions for MPAS processes below.

How is it defined on RHEL?

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content