1 /* Test for syscalls that are available on illumos but are removed on
2 Solaris 11. This test is compiled only on illumos. */
8 __attribute__((noinline
))
9 static void sys_open(void)
11 GO(SYS_open
, "(2-args) 2s 1m");
12 SY(SYS_open
, x0
, x0
); FAIL
;
15 __attribute__((noinline
))
16 static void sys_open2(void)
18 GO(SYS_open
, "(3-args) 3s 1m");
19 SY(SYS_open
, x0
, x0
| O_CREAT
, x0
); FAIL
;
24 /* Uninitialised, but we know px[0] is 0x0. */
25 long *px
= malloc(sizeof(long));
33 GO(SYS_link
, "2s 2m");
34 SY(SYS_link
, x0
, x0
); FAIL
;
37 GO(SYS_unlink
, "1s 1m");
38 SY(SYS_unlink
, x0
); FAIL
;
41 /* XXX Missing wrapper. */
44 GO(SYS_chmod
, "2s 1m");
45 SY(SYS_chmod
, x0
, x0
); FAIL
;
48 GO(SYS_chown
, "3s 1m");
49 SY(SYS_chown
, x0
, x0
, x0
); FAIL
;
52 GO(SYS_stat
, "2s 2m");
53 SY(SYS_stat
, x0
, x0
); FAIL
;
56 GO(SYS_fstat
, "2s 1m");
57 SY(SYS_fstat
, x0
, x0
); FAIL
;
60 GO(SYS_access
, "2s 1m");
61 SY(SYS_access
, x0
, x0
); FAIL
;
64 GO(SYS_rmdir
, "1s 1m");
65 SY(SYS_rmdir
, x0
); FAIL
;
68 GO(SYS_mkdir
, "2s 1m");
69 SY(SYS_mkdir
, x0
, x0
); FAIL
;
72 GO(SYS_lstat
, "2s 2m");
73 SY(SYS_lstat
, x0
, x0
); FAIL
;
76 GO(SYS_symlink
, "2s 2m");
77 SY(SYS_symlink
, x0
, x0
); FAIL
;
80 GO(SYS_readlink
, "3s 2m");
81 SY(SYS_readlink
, x0
, x0
, x0
+ 1); FAIL
;
84 GO(SYS_fchmod
, "2s 0m");
85 SY(SYS_fchmod
, x0
- 1, x0
); FAIL
;
88 GO(SYS_fchown
, "3s 0m");
89 SY(SYS_fchown
, x0
, x0
, x0
); FAIL
;
92 GO(SYS_lchown
, "3s 1m");
93 SY(SYS_lchown
, x0
, x0
, x0
); FAIL
;
96 GO(SYS_rename
, "2s 2m");
97 SY(SYS_rename
, x0
, x0
); FAIL
;
100 /* Tested in x86-solaris/scalar_obsolete.c. */
102 /* SYS_lstat64 216 */
103 /* Tested in x86-solaris/scalar_obsolete.c. */
105 /* SYS_fstat64 217 */
106 /* Tested in x86-solaris/scalar_obsolete.c. */
109 /* Tested in x86-solaris/scalar_obsolete.c. */