Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122359 - sys-apps/man-pages - man page for lockf(3) wrong
Summary: sys-apps/man-pages - man page for lockf(3) wrong
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Low trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-10 05:21 UTC by j.habenicht
Modified: 2006-02-10 05:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description j.habenicht 2006-02-10 05:21:12 UTC
The man page for lockf describes a failed lock sets errno=EACCES (Permission denied). But errno is set to EAGAIN (Try again) instead. man page should be changed.

uname -a:
Linux minime 2.6.15-gentoo-r1 #2 Wed Feb 8 10:50:35 CET 2006 i686 VIA Samuel 2 CentaurHauls GNU/Linux

sys-libs/glibc
Latest version installed: 2.3.5-r2


repeat:
write program with
{
  errno = 0;
  lock_fd = open( LOCK_FILE, O_RDWR|O_CREAT, 0644 );
  retval = lockf( lock_fd, F_TLOCK, 0 );
  printf("retval %d, errno %d, %d\n", retval, errno, EACCES );
  sleep ( 10 );
  retval = close( lock_fd );
}

1. time returns "retval 0, errno 0, 13"
2. time returns "retval -1, errno 11, 13"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-02-10 05:27:03 UTC
Please, report this to upstream manpages maintainer - http://www.win.tue.nl/~aeb/linux/man/