1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- The thread-safe version of isatty() should now work for stdio

file descriptors, too.

- Retrofitted thread-safety into the termios code.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15010 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-07-06 18:48:53 +00:00
parent cd7b02f4d7
commit 882875d79a
22 changed files with 575 additions and 50 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: unistd_ftruncate.c,v 1.12 2005-04-24 09:53:12 obarthel Exp $
* $Id: unistd_ftruncate.c,v 1.13 2005-07-06 18:48:53 obarthel Exp $
*
* :ts=4
*
@@ -65,6 +65,8 @@ ftruncate(int file_descriptor, off_t length)
PROFILE_OFF();
__stdio_lock();
fd = __get_file_descriptor(file_descriptor);
if(fd == NULL)
{
@@ -200,6 +202,8 @@ ftruncate(int file_descriptor, off_t length)
__fd_unlock(fd);
__stdio_unlock();
PROFILE_ON();
RETURN(result);