Revert "fix formatting in rc/libruntime/target/linux/jerry-libc.c"
This reverts commit 22892ba01bf9fe0fea2f04bfb5767285c0fa270c. Conflicts: Makefile.mk
This commit is contained in:
@@ -50,8 +50,7 @@ FIXME (Rename __unused)
|
|||||||
|
|
||||||
static long int syscall_1( long int syscall_no, long int arg1);
|
static long int syscall_1( long int syscall_no, long int arg1);
|
||||||
static long int syscall_2( long int syscall_no, long int arg1, long int arg2);
|
static long int syscall_2( long int syscall_no, long int arg1, long int arg2);
|
||||||
static long int syscall_3 (long int syscall_no, long int arg1,
|
static long int syscall_3( long int syscall_no, long int arg1, long int arg2, long int arg3);
|
||||||
long int arg2, long int arg3);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* System call with one argument.
|
* System call with one argument.
|
||||||
@@ -110,9 +109,7 @@ syscall_3 (long int syscall_no, /**< syscall number */
|
|||||||
return ret;
|
return ret;
|
||||||
} /* syscall_3 */
|
} /* syscall_3 */
|
||||||
|
|
||||||
/**
|
/** Output of character. Writes the character c, cast to an unsigned char, to stdout. */
|
||||||
* Output of character. Writes the character c, cast to an unsigned char,
|
|
||||||
* to stdout. */
|
|
||||||
int
|
int
|
||||||
__putchar (int c)
|
__putchar (int c)
|
||||||
{
|
{
|
||||||
@@ -299,10 +296,7 @@ __fread (void *ptr, /**< address of buffer to read to */
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
ret = syscall_3 (
|
ret = syscall_3( __NR_read, (long int)stream, (long int) ((uint8_t*)ptr + bytes_read), (long int) (size * nmemb - bytes_read));
|
||||||
__NR_read,
|
|
||||||
(long int)stream, (long int) ((uint8_t*)ptr + bytes_read),
|
|
||||||
(long int) (size * nmemb - bytes_read));
|
|
||||||
|
|
||||||
bytes_read += (size_t)ret;
|
bytes_read += (size_t)ret;
|
||||||
} while (bytes_read != size * nmemb && ret != 0);
|
} while (bytes_read != size * nmemb && ret != 0);
|
||||||
@@ -325,10 +319,7 @@ __fwrite (const void *ptr, /**< data to write */
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
long int ret = syscall_3 (
|
long int ret = syscall_3( __NR_write, (long int)stream, (long int) ((uint8_t*)ptr + bytes_written), (long int) (size * nmemb - bytes_written));
|
||||||
__NR_write, (long int)stream,
|
|
||||||
(long int) ((uint8_t*)ptr + bytes_written),
|
|
||||||
(long int) (size * nmemb - bytes_written));
|
|
||||||
|
|
||||||
bytes_written += (size_t)ret;
|
bytes_written += (size_t)ret;
|
||||||
} while (bytes_written != size * nmemb);
|
} while (bytes_written != size * nmemb);
|
||||||
@@ -345,9 +336,7 @@ const _FILE **libc_stdin = (void*)&stdin;
|
|||||||
const _FILE **libc_stdout = (void*)&stdout;
|
const _FILE **libc_stdout = (void*)&stdout;
|
||||||
const _FILE **libc_stderr = (void*)&stderr;
|
const _FILE **libc_stderr = (void*)&stderr;
|
||||||
|
|
||||||
/**
|
/** Output of character. Writes the character c, cast to an unsigned char, to stdout. */
|
||||||
* Output of character. Writes the character c, cast to an unsigned char,
|
|
||||||
* to stdout. */
|
|
||||||
int
|
int
|
||||||
__putchar (int c)
|
__putchar (int c)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user