Integration pascal test case on the sim platform
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@614 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
2f1acf6786
commit
3fd8bd65f4
@ -316,6 +316,7 @@
|
|||||||
* Added /dev/zero
|
* Added /dev/zero
|
||||||
* 'errno' is now defined to be *get_errno_ptr() with no name conflicts
|
* 'errno' is now defined to be *get_errno_ptr() with no name conflicts
|
||||||
* Added lseek() and fseek()
|
* Added lseek() and fseek()
|
||||||
|
* Integrated pascal test case on the simulation platform. Needs pascal-0.1.1.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -966,6 +966,7 @@ Other memory:
|
|||||||
* Added /dev/zero
|
* Added /dev/zero
|
||||||
* 'errno' is now defined to be *get_errno_ptr() with no name conflicts
|
* 'errno' is now defined to be *get_errno_ptr() with no name conflicts
|
||||||
* Added lseek() and fseek()
|
* Added lseek() and fseek()
|
||||||
|
* Integrated pascal test case on the simulation platform. Needs pascal-0.1.1.
|
||||||
</pre></ul>
|
</pre></ul>
|
||||||
|
|
||||||
<table width ="100%">
|
<table width ="100%">
|
||||||
|
@ -56,7 +56,6 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static ssize_t hello_read(struct file *, char *, size_t);
|
static ssize_t hello_read(struct file *, char *, size_t);
|
||||||
static ssize_t hello_write(struct file *, const char *, size_t);
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
@ -76,10 +75,10 @@ static struct file_operations hello_fops =
|
|||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static ssize_t hello_read(struct file *filp, char *buffer, size_t len)
|
static ssize_t hello_read(struct file *filep, char *buffer, size_t len)
|
||||||
{
|
{
|
||||||
off_t offset = filp->f_pos; /* Start read position */
|
off_t offset = filep->f_pos; /* Start read position */
|
||||||
ssize_t nread = 0; /* Bytes read -- assume EOF */
|
ssize_t nread = 0; /* Bytes read -- assume EOF */
|
||||||
|
|
||||||
/* Make sure that the offset is within the .pex file */
|
/* Make sure that the offset is within the .pex file */
|
||||||
|
|
||||||
|
@ -127,6 +127,7 @@ int user_start(int argc, FAR char *argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
printf("user_start: /dev/hello Loaded\n");
|
printf("user_start: /dev/hello Loaded\n");
|
||||||
|
printf("user_start: Interpreter started:\n");
|
||||||
|
|
||||||
/* And start program execution */
|
/* And start program execution */
|
||||||
|
|
||||||
@ -134,6 +135,7 @@ int user_start(int argc, FAR char *argv[])
|
|||||||
|
|
||||||
/* Clean up resources used by the interpreter */
|
/* Clean up resources used by the interpreter */
|
||||||
|
|
||||||
|
printf("user_start: Interpreter terminated");
|
||||||
pexec_release(st);
|
pexec_release(st);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user