summaryrefslogtreecommitdiff
path: root/src/test/test-sizeof.c
Commit message (Collapse)AuthorAge
* test-sizeof: show that a small 64 field is not enough to force the enum to ↵Zbigniew Jędrzejewski-Szmek2018-08-24
| | | | | | | | | | | | | | be 64 bits On both 32 and 64 bits, the result is: enum Enum → 32 bits, unsigned enum BigEnum → 32 bits, unsigned enum BigEnum2 → 64 bits, unsigned big_enum2_pos → 4 big_enum2_neg → 8 The last two lines show that even if the enum is 64 bit, and the field of an enum is defined with UINT64_C(), the field can still be smaller.
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-08-24
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* Prep v238: Uncomment now needed headers and unmask now needed functions in ↵Sven Eden2018-06-05
| | | | src/test (6/6)
* log: minimize includes in log.hLennart Poettering2018-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | log.h really should only include the bare minimum of other headers, as it is really pulled into pretty much everything else and already in itself one of the most basic pieces of code we have. Let's hence drop inclusion of: 1. sd-id128.h because it's entirely unneeded in current log.h 2. errno.h, dito. 3. sys/signalfd.h which we can replace by a simple struct forward declaration 4. process-util.h which was needed for getpid_cached() which we now hide in a funciton log_emergency_level() instead, which nicely abstracts the details away. 5. sys/socket.h which was needed for struct iovec, but a simple struct forward declaration suffices for that too. Ultimately this actually makes our source tree larger (since users of the functionality above must now include it themselves, log.h won't do that for them), but I think it helps to untangle our web of includes a tiny bit. (Background: I'd like to isolate the generic bits of src/basic/ enough so that we can do a git submodule import into casync for it)
* test-sizeof: also add uid_tZbigniew Jędrzejewski-Szmek2018-05-30
| | | | We had gid_t, and pid_t, but not uid_t. Add for completeness.
* Prep v236 : Add missing SPDX-License-Identifier (8/9) src/testSven Eden2018-03-26
|
* test/test-sizeof.c: disable tests for missing typedefs in muslmaxice82018-01-24
|
* test-sizeof: add pid_t and gid_tZbigniew Jędrzejewski-Szmek2017-10-04
| | | | C.f. #6975.
* test-sizeof: print the size of an enumZbigniew Jędrzejewski-Szmek2017-07-25
|
* test-sizeof: add some struct-timespec related fieldsZbigniew Jędrzejewski-Szmek2017-07-25
| | | | Might help with #5264.
* test-sizeof: do not link with libelogind-sharedZbigniew Jędrzejewski-Szmek2017-07-25
| | | | This makes it much quicker to compile.
* Prep v233.3: Add all possible coverage tests for elogindSven Eden2017-07-20