forked from Imagelibrary/rtems
Corrected prototype to confirm to POSIX 1003.1b.
This commit is contained in:
@@ -14,13 +14,10 @@
|
|||||||
|
|
||||||
#include "libio_.h"
|
#include "libio_.h"
|
||||||
|
|
||||||
/* XXX newlib has the prototype for this wrong. It will be a bit painful */
|
ssize_t read(
|
||||||
/* XXX to fix so we are choosing to delay fixing this. */
|
|
||||||
|
|
||||||
int read(
|
|
||||||
int fd,
|
int fd,
|
||||||
void *buffer,
|
void *buffer,
|
||||||
unsigned32 count
|
size_t count
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int rc; /* XXX change to a size_t when prototype is fixed */
|
int rc; /* XXX change to a size_t when prototype is fixed */
|
||||||
|
|||||||
@@ -22,13 +22,10 @@
|
|||||||
* to the file associated with the open file descriptor, fildes.
|
* to the file associated with the open file descriptor, fildes.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* XXX newlib has the prototype for this wrong. It will be a bit painful */
|
ssize_t write(
|
||||||
/* XXX to fix so we are choosing to delay fixing this. */
|
|
||||||
|
|
||||||
int write( /* XXX this should return a ssize_t */
|
|
||||||
int fd,
|
int fd,
|
||||||
const void *buffer,
|
const void *buffer,
|
||||||
unsigned32 count /* XXX this should be a size_t */
|
size_t count
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtems_status_code rc;
|
rtems_status_code rc;
|
||||||
|
|||||||
@@ -14,13 +14,10 @@
|
|||||||
|
|
||||||
#include "libio_.h"
|
#include "libio_.h"
|
||||||
|
|
||||||
/* XXX newlib has the prototype for this wrong. It will be a bit painful */
|
ssize_t read(
|
||||||
/* XXX to fix so we are choosing to delay fixing this. */
|
|
||||||
|
|
||||||
int read(
|
|
||||||
int fd,
|
int fd,
|
||||||
void *buffer,
|
void *buffer,
|
||||||
unsigned32 count
|
size_t count
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int rc; /* XXX change to a size_t when prototype is fixed */
|
int rc; /* XXX change to a size_t when prototype is fixed */
|
||||||
|
|||||||
@@ -22,13 +22,10 @@
|
|||||||
* to the file associated with the open file descriptor, fildes.
|
* to the file associated with the open file descriptor, fildes.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* XXX newlib has the prototype for this wrong. It will be a bit painful */
|
ssize_t write(
|
||||||
/* XXX to fix so we are choosing to delay fixing this. */
|
|
||||||
|
|
||||||
int write( /* XXX this should return a ssize_t */
|
|
||||||
int fd,
|
int fd,
|
||||||
const void *buffer,
|
const void *buffer,
|
||||||
unsigned32 count /* XXX this should be a size_t */
|
size_t count
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtems_status_code rc;
|
rtems_status_code rc;
|
||||||
|
|||||||
@@ -14,13 +14,10 @@
|
|||||||
|
|
||||||
#include "libio_.h"
|
#include "libio_.h"
|
||||||
|
|
||||||
/* XXX newlib has the prototype for this wrong. It will be a bit painful */
|
ssize_t read(
|
||||||
/* XXX to fix so we are choosing to delay fixing this. */
|
|
||||||
|
|
||||||
int read(
|
|
||||||
int fd,
|
int fd,
|
||||||
void *buffer,
|
void *buffer,
|
||||||
unsigned32 count
|
size_t count
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
int rc; /* XXX change to a size_t when prototype is fixed */
|
int rc; /* XXX change to a size_t when prototype is fixed */
|
||||||
|
|||||||
@@ -22,13 +22,10 @@
|
|||||||
* to the file associated with the open file descriptor, fildes.
|
* to the file associated with the open file descriptor, fildes.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* XXX newlib has the prototype for this wrong. It will be a bit painful */
|
ssize_t write(
|
||||||
/* XXX to fix so we are choosing to delay fixing this. */
|
|
||||||
|
|
||||||
int write( /* XXX this should return a ssize_t */
|
|
||||||
int fd,
|
int fd,
|
||||||
const void *buffer,
|
const void *buffer,
|
||||||
unsigned32 count /* XXX this should be a size_t */
|
size_t count
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
rtems_status_code rc;
|
rtems_status_code rc;
|
||||||
|
|||||||
Reference in New Issue
Block a user