sched_getaffinity: Check arguments in the same order as in Linux

(1) Check if size is large enough
(2) Check if size is positive

Fujitsu: POSTK_DEBUG_TEMP_FIX_5
Refs: #1121
Change-Id: I3e41720c89ef89294820f7f4fa8df1a69a7011b0
This commit is contained in:
Ken Sato
2018-06-21 09:08:34 +09:00
committed by Dominique Martinet
parent 11756d96ef
commit e7b6a3472b
5 changed files with 195 additions and 10 deletions

14
test/issues/1121/Makefile Normal file
View File

@@ -0,0 +1,14 @@
CC = gcc
TARGET=
CPPFLAGS =
LDFLAGS =
all: $(TARGET)
test: all
@sh ./C1121.sh
clean:
rm -f $(TARGET) *.o