fdutil.h #1

  • //
  • 2018-2/
  • guest/
  • perforce_software/
  • p4/
  • 2018-2/
  • sys/
  • fdutil.h
  • View
  • Commits
  • Open Download .zip Download (498 B)
/*
 * Copyright 1995, 1996 Perforce Software.  All rights reserved.
 *
 * This file is part of Perforce - the FAST SCM System.
 */

extern "C" {
    
#ifdef OS_NT
int lockFileByHandle( HANDLE h, int flag );
#endif
int lockFile( int fd, int flag );
int checkFd( int fd );
void checkStdio( int fd = -1 );

}


enum lockFileFlags {

	LOCKF_UN = 0,		// unlock
	LOCKF_SH = 1,		// shared
	LOCKF_EX = 2,		// exclusive
	LOCKF_SH_NB = 3,	// shared (no block)
	LOCKF_EX_NB = 4		// exclusive (no block)

} ;

# Change User Description Committed
#1 25096 Nicholas Poole Populate //stream/workshop.