On 11/09/15 10:10, Inderjit Singh wrote:
Can I presume that using errno with RTEMS does not work? To me I'm
baffled that a RTEMS_SUCCESSFULL value must be returned in order to
retain the errno value.
The standard drivers are quite primitive. You may have a look at IMFS
generic nodes, if you
Subject: RE: rtems_set_errno_and_return_minus_one in driver not returning
correct value
Ok I experimented on and this is what I found out:
This is what I'm doing:
App:
fd = open(RTEMS_SYSFLASH_DEVICE_NAME, O_RDWR);
printk("Errno: (%d:%s).", errno, strerror(errno));
assert(0
On 11/09/15 13:28, Inderjit Singh wrote:
So basically you're saying is that i cannot use errno when using the primitve
driver standard driver but use IMFS instead if I want to retain an errno value
set in driver and that is recieved by the app.
Yes, if you are unlucky with what
From: devel [devel-boun...@rtems.org] on behalf of Sebastian Huber
[sebastian.hu...@embedded-brains.de]
Sent: 11 September 2015 10:18
To: devel@rtems.org
Subject: Re: rtems_set_errno_and_return_minus_one in driver not returning
correct value
On 11/09/15 10:10, Inderjit Singh wrote:
> Ca
] on behalf of Inderjit Singh
[inderjit.si...@aacmicrotec.com]
Sent: 24 August 2015 09:08
To: Chris Johns; devel@rtems.org
Subject: RE: rtems_set_errno_and_return_minus_one in driver not returning
correct value
Hi Chris,
I am pretty sure the driver is working fine yes. I had this issue for some time
From: Chris Johns [chr...@rtems.org]
Sent: 24 August 2015 01:19
To: Inderjit Singh; devel@rtems.org
Subject: Re: rtems_set_errno_and_return_minus_one in driver not returning
correct value
On 21/08/2015 10:22 pm, Inderjit Singh wrote:
Hi,
In my RTEMS driver I set and return
On 21/08/2015 10:22 pm, Inderjit Singh wrote:
Hi,
In my RTEMS driver I set and return error value by following macro:
rtems_set_errno_and_return_minus_one(EALREADY);
But in my rtems app when I print the error out by:
fd = open(RTEMS_SYSFLASH_DEVICE_NAME, O_RDWR);
if(fd 0) {
Hi,
In my RTEMS driver I set and return error value by following macro:
rtems_set_errno_and_return_minus_one(EALREADY);
But in my rtems app when I print the error out by:
fd = open(RTEMS_SYSFLASH_DEVICE_NAME, O_RDWR);
if(fd 0) {
printk(Couldn't Open device (%d:%d:%s)., fd, errno,