Lines Matching full:ioctl
25 #include <sys/ioctl.h>
97 int ret = ioctl(fd, ACCESS_TOKENID_GET_TOKENID, token); in GetTokenid()
99 printf("ioctl ACCESS_TOKENID_GET_TOKENID failed\r\n"); in GetTokenid()
116 int ret = ioctl(fd, ACCESS_TOKENID_SET_TOKENID, token); in SetTokenid()
118 printf("ioctl ACCESS_TOKENID_SET_TOKENID failed\r\n"); in SetTokenid()
135 int ret = ioctl(fd, ACCESS_TOKENID_GET_FTOKENID, ftoken); in GetfTokenid()
137 printf("ioctl ACCESS_TOKENID_GET_FTOKENID failed\r\n"); in GetfTokenid()
154 int ret = ioctl(fd, ACCESS_TOKENID_SET_FTOKENID, ftoken); in SetfTokenid()
156 printf("ioctl ACCESS_TOKENID_SET_FTOKENID failed\r\n"); in SetfTokenid()
365 * @tc.desc: Test abnormal ioctl cmd of ACCESS_TOKENID_GET_TOKENID
366 * @tc.desc: using nullptr instead of the address of tokenid to ioctl
377 int ret = ioctl(fd, ACCESS_TOKENID_GET_TOKENID, nullptr);
385 * @tc.desc: Test abnormal ioctl cmd of ACCESS_TOKENID_SET_TOKENID
386 * @tc.desc: using nullptr instead of the address of tokenid to ioctl
397 int ret = ioctl(fd, ACCESS_TOKENID_SET_TOKENID, nullptr);
405 * @tc.desc: Test abnormal ioctl cmd of ACCESS_TOKENID_GET_FTOKENID
406 * @tc.desc: using nullptr instead of the address of ftokenid to ioctl
417 int ret = ioctl(fd, ACCESS_TOKENID_GET_FTOKENID, nullptr);
425 * @tc.desc: Test abnormal ioctl cmd of ACCESS_TOKENID_SET_FTOKENID
426 * @tc.desc: using nullptr instead of the address of ftokenid to ioctl
437 int ret = ioctl(fd, ACCESS_TOKENID_SET_FTOKENID, nullptr);
445 * @tc.desc: Test abnormal ioctl cmd of ACCESS_TOKENID_ILLEGAL1 and ACCESS_TOKENID_ILLEGAL1
446 * @tc.desc: using illegal cmd instead of accesstokenid to ioctl
459 int ret1 = ioctl(fd, ACCESS_TOKENID_ILLEGAL1, &token);
460 int ret2 = ioctl(fd, ACCESS_TOKENID_ILLEGAL2, &token);
489 ret = ioctl(fd, ACCESS_TOKENID_SET_TOKENID, &tokenSet);
517 ret = ioctl(fd, ACCESS_TOKENID_GET_TOKENID, &token);
547 ret = ioctl(fd, ACCESS_TOKENID_SET_FTOKENID, &ftokenSet);
577 ret = ioctl(fd, ACCESS_TOKENID_GET_FTOKENID, &ftoken);
607 ret = ioctl(fd, ACCESS_TOKENID_SET_FTOKENID, &ftokenSet);
637 ret = ioctl(fd, ACCESS_TOKENID_GET_FTOKENID, &ftoken);