www.delorie.com/djgpp/doc/libc/libc_174.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_dos_lk64

Syntax

 
#include <io.h>

int _dos_lk64(int fd, long long offset, long long length);

Description

Adds an advisory lock to the specified region of the file.

Arguments offset and length must be of type long long, thus enabling you to lock with offsets and lengths as large as ~2^63 (FAT16 limits this to ~2^31; FAT32 limits this to 2^32-2).

See section _dos_unlk64.

Return Value

Zero if the lock was added, nonzero otherwise.

Portability

ANSI/ISO C No
POSIX No


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004