summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_disk_file.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-03-28 12:36:19 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-03-28 12:36:19 +0000
commit31390e4ca643782a365c9fba0a1ca188c9bb854e (patch)
tree0bcdf7b209e014f297eef1402c1ae3e048b08c60 /winsup/cygwin/fhandler_disk_file.cc
parentcb411288ce242024311e532096f6eff4d12aaab1 (diff)
downloadcygnal-31390e4ca643782a365c9fba0a1ca188c9bb854e.tar.gz
cygnal-31390e4ca643782a365c9fba0a1ca188c9bb854e.tar.bz2
cygnal-31390e4ca643782a365c9fba0a1ca188c9bb854e.zip
* flock.cc (lockf_t::operator new): Add operator taking a pointer. Call
cmalloc instead of ccalloc in the default operator. Add comments. (inode_t::operator new): Call cmalloc instead of ccalloc. (inode_t::get_all_locks_list): Return lockf_t pointer. (inode_t::del_all_locks_list): Delete. Remove calls throughout. (inode_t::get): Handle failing new gracefully. (MAX_LOCKF_CNT): Define. (inode_t::get_all_locks_list): Use pre-allocated buffer in i_all_lf instead of allocating every lock. Return pointer to start of linked list of locks. (lockf_t::open_lock_obj): Create event object non-inheritable. (fhandler_disk_file::lock): Handle failing new gracefully. (lf_setlock): Allocate temporary buffer for node->i_all_lf from TLS. Remove erroneous NtClose call. (lf_getlock): Allocate temporary buffer for node->i_all_lf from TLS. (lf_getblock): Set lf to return value of get_all_locks_list.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
0 files changed, 0 insertions, 0 deletions