mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Lost the __not_a_number and __infinity variables, including the
code which initialized them. - Reading/changing the errno variable is no longer done directly, but involves accessor functions. - References to the HUGE_VAL quantity now involve an accessor function, too. - Changed the manner in which the __huge_val constant is initialized by the __math_init() function. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14824 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_setvbuf.c,v 1.3 2005-01-02 09:07:08 obarthel Exp $
|
||||
* $Id: stdio_setvbuf.c,v 1.4 2005-02-03 16:56:16 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@@ -71,7 +71,7 @@ setvbuf(FILE *stream,char *buf,int bufmode,size_t size)
|
||||
{
|
||||
SHOWMSG("invalid stream parameter");
|
||||
|
||||
errno = EFAULT;
|
||||
__set_errno(EFAULT);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
@@ -85,7 +85,7 @@ setvbuf(FILE *stream,char *buf,int bufmode,size_t size)
|
||||
{
|
||||
SHOWMSG("invalid buffer mode");
|
||||
|
||||
errno = EINVAL;
|
||||
__set_errno(EINVAL);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ setvbuf(FILE *stream,char *buf,int bufmode,size_t size)
|
||||
{
|
||||
SHOWMSG("invalid buffer size");
|
||||
|
||||
errno = EINVAL;
|
||||
__set_errno(EINVAL);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ setvbuf(FILE *stream,char *buf,int bufmode,size_t size)
|
||||
{
|
||||
SHOWMSG("this file is not even in use");
|
||||
|
||||
errno = EBADF;
|
||||
__set_errno(EBADF);
|
||||
|
||||
SET_FLAG(file->iob_Flags,IOBF_ERROR);
|
||||
goto out;
|
||||
@@ -123,7 +123,7 @@ setvbuf(FILE *stream,char *buf,int bufmode,size_t size)
|
||||
new_buffer = malloc(size + (CACHE_LINE_SIZE-1));
|
||||
if(new_buffer == NULL)
|
||||
{
|
||||
errno = ENOBUFS;
|
||||
__set_errno(ENOBUFS);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user