carta
SYSCALL_DEFINE2(9)

SYSCALL_DEFINE29

Flock system call.

Arguments

flock

-- undescribed --

int

-- undescribed --

fd

the file descriptor to lock.

int

-- undescribed --

cmd

the type of lock to apply.

Overview

Apply a FL_FLOCK style lock to an open file descriptor. The cmd can be one of

LOCK_SH -- a shared lock.

LOCK_EX -- an exclusive lock.

LOCK_UN -- remove an existing lock.

LOCK_MAND -- a `mandatory´ flock. This exists to emulate Windows Share Modes.

LOCK_MAND can be combined with LOCK_READ or LOCK_WRITE to allow other processes read and write access respectively.

History

  • Debian 5.0 (Lenny): the text shown here
  • Debian 4.0 (Etch)

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.