-.\" $OpenBSD: shmat.2,v 1.16 2014/11/15 22:19:53 guenther Exp $
+.\" $OpenBSD: shmat.2,v 1.17 2022/06/16 13:54:39 deraadt Exp $
.\" $NetBSD: shmat.2,v 1.2 1997/03/27 08:20:38 mikel Exp $
.\"
.\" Copyright (c) 1995 Frank van der Linden
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"/
-.Dd $Mdocdate: November 15 2014 $
+.Dd $Mdocdate: June 16 2022 $
.Dt SHMAT 2
.Os
.Sh NAME
The address at which the segment is mapped is determined by the
.Fa shmaddr
parameter.
-If it is equal to 0, the system will pick an address itself.
+If it is equal to NULL, the system will pick an address itself.
Otherwise, an attempt is made to map the shared memory segment at the
address
.Fa shmaddr