mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 21:44:05 +08:00
2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* umon/tfsDriver.c: Update for LibIO API changes.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* umon/tfsDriver.c: Update for LibIO API changes.
|
||||
|
||||
2010-06-30 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||
|
||||
* umon/tfsDriver.c: Remove extra brace.
|
||||
|
||||
@@ -466,7 +466,7 @@ static int rtems_tfs_open_worker(
|
||||
tip->tfd = tfd;
|
||||
tip->buf = buf;
|
||||
strcpy(tip->name,pathcopy);
|
||||
iop->file_info = (void *)tfdidx;
|
||||
iop->data0 = (void *)tfdidx;
|
||||
return(0);
|
||||
} else {
|
||||
printk("%s: %s\n",pathcopy,
|
||||
@@ -537,7 +537,7 @@ static ssize_t rtems_tfs_read(
|
||||
{
|
||||
int ret, fd;
|
||||
|
||||
fd = (int) iop->file_info;
|
||||
fd = (int) iop->data0;
|
||||
|
||||
if (RTEMS_TFS_DEBUG)
|
||||
printk("_read_r(%d,%" PRId32 ")\n",fd,count);
|
||||
@@ -563,7 +563,7 @@ static int rtems_tfs_close(
|
||||
char *info;
|
||||
struct tfdinfo *tip;
|
||||
|
||||
fd = (int)iop->file_info;
|
||||
fd = (int)iop->data0;
|
||||
|
||||
if (RTEMS_TFS_DEBUG)
|
||||
printk("rtems_tfs_close(%d)\n",fd);
|
||||
@@ -598,7 +598,7 @@ static ssize_t rtems_tfs_write(
|
||||
{
|
||||
int ret, fd;
|
||||
|
||||
fd = (int) iop->file_info;
|
||||
fd = (int) iop->data0;
|
||||
|
||||
if (RTEMS_TFS_DEBUG)
|
||||
printk("rtems_tfs_write(%d,%" PRId32" )\n",fd,count);
|
||||
@@ -622,7 +622,7 @@ static rtems_off64_t rtems_tfs_lseek(
|
||||
{
|
||||
int ret, fd;
|
||||
|
||||
fd = (int) iop->file_info;
|
||||
fd = (int) iop->data0;
|
||||
|
||||
if (RTEMS_TFS_DEBUG)
|
||||
printk("rtems_tfs_lseek(%d,%ld,%d)\n",fd,(long)offset,whence);
|
||||
@@ -656,7 +656,7 @@ static int rtems_tfs_ftruncate(
|
||||
{
|
||||
int ret, fd;
|
||||
|
||||
fd = (int) iop->file_info;
|
||||
fd = (int) iop->data0;
|
||||
ret = mon_tfstruncate(tfdtable[fd].tfd,count);
|
||||
if (ret != TFS_OKAY)
|
||||
return(-1);
|
||||
@@ -672,7 +672,7 @@ static int rtems_tfs_ioctl(
|
||||
{
|
||||
int fd, ret;
|
||||
|
||||
fd = (int) iop->file_info;
|
||||
fd = (int) iop->data0;
|
||||
ret = mon_tfsctrl(cmd,(long)buf,0);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user