[8646] in Athena Bugs

home help back first fref pref prev next nref lref last post

rsaix 7.3r: flock(2)

daemon@ATHENA.MIT.EDU (tom palka)
Thu Nov 21 17:13:33 1991

Date: Thu, 21 Nov 91 14:30:03 -0500
To: bugs@Athena.MIT.EDU
From: tom palka <tompalka@mit.edu>
Reply-To: tom palka <tompalka@mit.edu>


System name:		m11-115-5
Type and version:	POWER 7.3R
Display type:		graygda

What were you trying to do?

compile a C program that used the flock routine.

What's wrong:

the manual page says that flock is defined in libc.a, but it's not
there.  it is actually in libbsd.a.

What should have happened:

the man page should have referred me to the right library.

Please describe any relevant documentation references:

  > man 2 flock
    lockfx, lockf or flock Subroutine

    Purpose
    Controls open file descriptors.

    Library
    Standard C Library (libc.a)

  > strings /lib/libc.a | grep flock

  > strings /lib/libbsd.a | grep flock
  flock
  flock
  flock.c
  .flock
  .flock
  flock
  .flock
  flock

home help back first fref pref prev next nref lref last post