mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Unlink is now reentrant, or at least thread-safe.
- You can now make unlink() stop after a failed deletion attempt which failed because the object to be deleted was reported as being "in use". The libunix.a variant defaults to report the deletion to have succeeded under these circumstances and later tries to delete the files marked for deletion. See <dos.h> for a brief documentation of how to change the behaviour. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15155 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: dos.h,v 1.27 2006-09-25 14:51:15 obarthel Exp $
|
||||
* $Id: dos.h,v 1.28 2006-09-27 09:40:06 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -555,6 +555,16 @@ extern void __execve_exit(int return_code);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
/*
|
||||
* The unlink() and remove() functions in libunix.a may return success even
|
||||
* though deletion failed because the file/directory/link in question is still
|
||||
* reported as being "in use". This is the default behaviour. If you want the
|
||||
* deletion to fail instead, set '__unlink_retries' to FALSE.
|
||||
*/
|
||||
extern BOOL __unlink_retries;
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user