incubator-nuttx/fs/aio
Gregory Nutt 67ec3d7926 Remove CONFIG_CAN_PASS_STRUCT
This commit resolves issue #620:

Remove CONFIG_CAN_PASS_STRUCTS #620

The configuration option CONFIG_CAN_PASS_STRUCTS was added many years ago to support an old version of the SDCC compiler. That compiler is currently used only with the Z80 and Z180 targets. The limitation of that old compiler was that it could not pass structures or unions as either inputs or outputs. For example:

    #ifdef CONFIG_CAN_PASS_STRUCTS
    struct mallinfo mallinfo(void);
    #else
    int      mallinfo(FAR struct mallinfo *info);
    #endif

And even leads to violation of a few POSIX interfaces like:

    #ifdef CONFIG_CAN_PASS_STRUCTS
    int  sigqueue(int pid, int signo, union sigval value);
    #else
    int  sigqueue(int pid, int signo, FAR void *sival_ptr);
    #endif

This breaks the 1st INVIOLABLES rule:

Strict POSIX compliance
-----------------------

  o Strict conformance to the portable standard OS interface as defined at
    OpenGroup.org.
  o A deeply embedded system requires some special support.  Special
    support must be minimized.
  o The portable interface must never be compromised only for the sake of
    expediency.
  o Expediency or even improved performance are not justifications for
   violation of the strict POSIX interface

Also, it appears that the current SDCC compilers have resolve this issue and so, perhaps, this is no longer a problem: z88dk/z88dk#1132

NOTE:  This commit cannot pass the PR checks because it depends on matching changes to the apps/ directory.
2020-04-11 21:19:47 +01:00
..
Kconfig Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation 2015-06-28 08:08:57 -06:00
Make.defs The Asynch I/O implementation now satisfies POSIX priority requirements; it uses the new low priority worker thread interfaces to adjust the priority of the worker thread according to the priority of the client thread 2014-10-07 08:24:50 -06:00
aio.h Check return from nxsem_wait_initialize() 2020-03-30 17:09:45 +01:00
aio_cancel.c Check return from nxsem_wait_initialize() 2020-03-30 17:09:45 +01:00
aio_fsync.c nxstyle: fixed various nxstyle warnings 2020-03-09 08:56:59 -06:00
aio_initialize.c Check return from nxsem_wait_initialize() 2020-03-30 17:09:45 +01:00
aio_queue.c aio_cancel need signal caller after the succeed and fix minor issue in the error handler 2019-01-27 09:39:33 -06:00
aio_read.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
aio_signal.c Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
aio_write.c nxstyle: fixed various nxstyle warnings 2020-03-09 08:56:59 -06:00
aioc_contain.c Check return from nxsem_wait_initialize() 2020-03-30 17:09:45 +01:00