From jmg@nike.efn.org  Wed Oct 23 21:37:50 1996
Received: from nike.efn.org (resnet.uoregon.edu [128.223.170.28])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA11088
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 23 Oct 1996 21:37:47 -0700 (PDT)
Received: (from jmg@localhost) by nike.efn.org (8.7.5/8.7.3) id VAA01028; Wed, 23 Oct 1996 21:24:35 -0700 (PDT)
Message-Id: <199610240424.VAA01028@nike.efn.org>
Date: Wed, 23 Oct 1996 21:24:35 -0700 (PDT)
From: John-Mark Gurney <jmg@nike.efn.org>
Reply-To: gurney_j@efn.org
To: FreeBSD-gnats-submit@freebsd.org
Cc: jmg@nike.efn.org
Subject: misspelled word in open(2) man page
X-Send-Pr-Version: 3.2

>Number:         1874
>Category:       docs
>Synopsis:       automatically misspelled in open(2) man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 23 21:40:02 PDT 1996
>Closed-Date:    Wed Oct 23 21:57:14 PDT 1996
>Last-Modified:  Wed Oct 23 21:58:51 PDT 1996
>Originator:     John-Mark Gurney
>Release:        FreeBSD 2.2-960801-SNAP i386
>Organization:
Cu Networking
>Environment:

just relative to current
	

>Description:

automatically is misspelled in open(2) man page
Pointed out by: Jonathan Mini <j_mini@efn.org>
	

>How-To-Repeat:

man 2 open
/automati
not found
but:
/atoma 
is...
	

>Fix:

Index: open.2
===================================================================
RCS file: /usr/cvs/src/lib/libc/sys/open.2,v
retrieving revision 1.4
diff -c -r1.4 open.2
*** open.2	1996/08/22 23:28:48	1.4
--- open.2	1996/10/24 04:01:12
***************
*** 74,81 ****
  O_CREAT		create file if it does not exist
  O_TRUNC		truncate size to 0
  O_EXCL		error if create and file exists
! O_SHLOCK	atomically obtain a shared lock
! O_EXLOCK	atomically obtain an exclusive lock
  .Ed
  .Pp
  Opening a file with
--- 74,81 ----
  O_CREAT		create file if it does not exist
  O_TRUNC		truncate size to 0
  O_EXCL		error if create and file exists
! O_SHLOCK	automatically obtain a shared lock
! O_EXLOCK	automatically obtain an exclusive lock
  .Ed
  .Pp
  Opening a file with
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nate 
State-Changed-When: Wed Oct 23 21:57:14 PDT 1996 
State-Changed-Why:  

Pilot error.  'Atomically' is the intended word, not 'automatically'. 
Atomically means that you are guaranteed to have a lock when the 
function returns (ie; no possibility of race condition). 
>Unformatted:
