procps/lib
Craig Small 412f3e8aa4 testsuite: shmget returns an int
Stops the compilier (correctly) complaining:

lib/test_shm.c: In function ‘main’:
lib/test_shm.c:65:23: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘int’ [-Wformat=]
   65 |     printf("SHMID: %llx\n", shm_id);
      |                    ~~~^     ~~~~~~
      |                       |     |
      |                       |     int
      |                       long long unsigned int

shm_id is an int which is what shmget() returns.

Strangely pmap has always scanned this in as a llx even though the maps
"inode" column is the same number that shmget() returns.

Signed-off-by: Craig Small <csmall@dropbear.xyz>
2022-05-03 19:41:00 +10:00
..
.gitignore testsuite: Add check for shared memory 2022-04-26 22:04:05 +10:00
fileutils.c build-sys: split test cases in lib/ into their own files 2015-05-01 17:43:51 -07:00
procio.3 docs: fix "delimeter" typo in fprocopen man page 2019-03-04 21:54:24 +11:00
procio.c procio: fix potential out-of-bounds access when write fails 2019-03-04 21:55:07 +11:00
signals.c 0041-proc/sig.c: Harden print_given_signals(). 2018-06-09 21:35:19 +10:00
strutils.c A locale-independent strtod 2016-03-10 22:27:09 +11:00
strverscmp.c Added Cygwin build support 2016-03-12 15:07:30 +11:00
test_fileutils.c build-sys: split test cases in lib/ into their own files 2015-05-01 17:43:51 -07:00
test_process.c build-sys: 2022-04-11 17:09:53 +10:00
test_shm.c testsuite: shmget returns an int 2022-05-03 19:41:00 +10:00
test_strtod_nol.c A locale-independent strtod 2016-03-10 22:27:09 +11:00
test_strutils.c build-sys: split test cases in lib/ into their own files 2015-05-01 17:43:51 -07:00