diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-03-28 12:36:19 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-03-28 12:36:19 +0000 |
commit | 31390e4ca643782a365c9fba0a1ca188c9bb854e (patch) | |
tree | 0bcdf7b209e014f297eef1402c1ae3e048b08c60 /winsup/cygwin/syslog.cc | |
parent | cb411288ce242024311e532096f6eff4d12aaab1 (diff) | |
download | cygnal-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/syslog.cc')
0 files changed, 0 insertions, 0 deletions