nuttx/include
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
..
arpa Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
cxx Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
net Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
netinet include/netinet/arp.h: Previous network changes broke the build test (#193) 2020-01-31 21:23:15 +01:00
netpacket netlink: Sync the macro with Linux definition 2020-04-10 08:18:07 -06:00
nuttx Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
sys syscall/: Remove support for CONFIG_FS_READABLE 2020-03-22 08:24:07 -05:00
.gitignore Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
aio.h
alloca.h
assert.h
crc8.h Battery monitor support (#404) 2020-02-28 18:18:50 -06:00
crc16.h
crc32.h
crc64.h
ctype.h
debug.h Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
dirent.h
dlfcn.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
dsp.h libs/libdsp: fix nxstyle issues 2020-04-03 22:51:39 +01:00
elf32.h ELF64 support (#220) 2020-02-07 17:10:23 -06:00
elf64.h ELF64 support (#220) 2020-02-07 17:10:23 -06:00
elf.h include/elf.h: Add EM_XTENSA 2020-03-16 07:54:49 -06:00
endian.h
errno.h libs/libc/unistd: Stubs for setuid and setgid. Added stubbed implementations of setuid and setgid. These functions are essentially stubs pretending that NuttX supported users and groups and that the only configured user and group in the system were both 'root' with a uid and a gid of 0, respectively. The intent is not to provide meaningful new features, but to ease porting of foreign source code to NuttX. 2019-08-06 07:17:23 -06:00
fcntl.h fcntl: add O_CLOEXEC/FD_CLOEXEC support 2020-02-20 08:20:38 -06:00
fixedmath.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
grp.h
hex2bin.h
inttypes.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
libgen.h
limits.h
locale.h
lzf.h Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
mqueue.h
netdb.h libc/netdb: Add hostent_s to avoid the change of hostent 2020-04-01 16:09:28 -06:00
nxflat.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
poll.h
pthread.h Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pwd.h
queue.h
sched.h Run all .c and .h files in PR235 through tools/nxstyle. 2020-02-09 07:34:24 -06:00
semaphore.h
signal.h Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
spawn.h
stdbool.h
stddef.h
stdint.h fix long line comment 2020-04-02 22:08:41 +08:00
stdio.h Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
stdlib.h Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
stdnoreturn.h
string.h libs/libc/string/Make.defs: Need to include build support for files needed when CHAR_BIT != 8. 2019-11-04 16:02:50 -06:00
strings.h Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
syscall.h
syslog.h Run codespell -w against all files 2020-02-22 14:45:07 -06:00
termios.h
threads.h
time.h Refine the preprocessor conditional guard style (#190) 2020-01-31 19:07:39 +01:00
unistd.h include/sys/time.h, libs/libc/unistd, sched/timer: Implement alarm(), setitimer() and getitimer() APIs. 2019-11-13 08:10:16 -06:00
wchar.h
wctype.h