Home
last modified time | relevance | path

Searched refs:__UNCONST (Results 1 – 25 of 51) sorted by relevance

123

/freebsd/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dt_spawn.c52 char * const args[] = { __UNCONST("ls"), __UNCONST("-la"), NULL }; in ATF_TC_BODY()
69 char * const args[] = { __UNCONST("ls"), __UNCONST("-la"), NULL }; in ATF_TC_BODY()
87 char * const args[] = { __UNCONST("h_zero"), NULL }; in ATF_TC_BODY()
106 char * const args[] = { __UNCONST("h_nonexist"), NULL }; in ATF_TC_BODY()
126 char * const args[] = { __UNCONST("h_nonexec"), NULL }; in ATF_TC_BODY()
146 char * const args0[] = { __UNCONST("h_spawn"), __UNCONST("0"), NULL }; in ATF_TC_BODY()
147 char * const args1[] = { __UNCONST("h_spawn"), __UNCONST("1"), NULL }; in ATF_TC_BODY()
148 char * const args7[] = { __UNCONST("h_spawn"), __UNCONST("7"), NULL }; in ATF_TC_BODY()
H A Dt_fileactions.c100 char * const args[2] = { __UNCONST("cat"), NULL }; in ATF_TC_BODY()
195 char * const args[2] = { __UNCONST("cat"), NULL }; in ATF_TC_BODY()
230 char * const args[2] = { __UNCONST("cat"), NULL }; in ATF_TC_BODY()
269 char * const args[2] = { __UNCONST("cat"), NULL }; in ATF_TC_BODY()
304 char *args[3] = { __UNCONST("h_fileactions"), NULL, NULL }; in ATF_TC_BODY()
357 char * const args[2] = { __UNCONST("cat"), NULL }; in ATF_TC_BODY()
395 char * const args[2] = { __UNCONST("pwd"), NULL }; in t_spawn_chdir_impl()
/freebsd/contrib/netbsd-tests/lib/libc/stdlib/
H A Dt_hsearch.c145 e.key = __UNCONST("a"); in ATF_TC_BODY()
180 e.key = __UNCONST("A"); in ATF_TC_BODY()
201 e.key = __UNCONST("a"); in ATF_TC_BODY()
210 e.key = __UNCONST("b"); in ATF_TC_BODY()
219 e.key = __UNCONST("a"); in ATF_TC_BODY()
222 e.key = __UNCONST("b"); in ATF_TC_BODY()
306 e.key = __UNCONST("a"); in ATF_TC_BODY()
344 e.key = __UNCONST("A"); in ATF_TC_BODY()
366 e.key = __UNCONST("a"); in ATF_TC_BODY()
374 e.key = __UNCONST("b"); in ATF_TC_BODY()
[all …]
H A Dt_getenv.c117 ATF_CHECK_ERRNO(EINVAL, putenv(__UNCONST("val")) == -1); in ATF_TC_BODY()
118 ATF_CHECK_ERRNO(EINVAL, putenv(__UNCONST("=val")) == -1); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/usr.bin/id/
H A Dpwgr.c93 g->gr_name = __UNCONST("wheel"); in getgrgid()
96 g->gr_name = __UNCONST("users"); in getgrgid()
156 p->pw_name = __UNCONST("root"); in getpwnam()
160 p->pw_name = __UNCONST("test"); in getpwnam()
176 p->pw_name = __UNCONST("root"); in getpwuid()
180 p->pw_name = __UNCONST("test"); in getpwuid()
/freebsd/contrib/netbsd-tests/lib/librumpclient/
H A Dh_exec.c113 ename = __UNCONST("fourchette"); in main()
118 ename = __UNCONST("h_ution"); in main()
122 ename = __UNCONST("h_ution"); in main()
127 eargv[1] = __UNCONST("_didexec"); in main()
130 if (rumpclient_exec(argv[1], __UNCONST(eargv), environ) == -1) in main()
/freebsd/contrib/netbsd-tests/libexec/ld.elf_so/
H A Dh_locking.c101 __UNCONST("libh_helper_dso2.so")); in test_dlopen()
108 __UNCONST("libutil.so")); in test_dlopen()
123 __UNCONST("libh_helper_dso2.so")); in test_dlclose()
129 __UNCONST("libutil.so")); in test_dlclose()
/freebsd/contrib/netbsd-tests/fs/union/
H A Dt_pr.c43 unionargs.target = __UNCONST("/Tunion2/A"); in ATF_TC_BODY()
50 unionargs.target = __UNCONST("/Tunion2/B"); in ATF_TC_BODY()
73 unionargs.target = __UNCONST("/dev"); in ATF_TC_BODY()
107 unionargs.target = __UNCONST("/dev"); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/fs/common/
H A Dfstest_nfs.c98 nfsdargv[3] = __UNCONST(SERVERADDR); in donewfs()
99 nfsdargv[4] = __UNCONST(SERVERROADDR); in donewfs()
100 nfsdargv[5] = __UNCONST(NETNETMASK); in donewfs()
101 nfsdargv[6] = __UNCONST(EXPORTPATH); in donewfs()
202 mount_nfs_parseargs(__arraycount(nfscliargs)-1, __UNCONST(nfscliargs), in domount()
H A Dfstest_puffs.c342 dtfsargv[1] = __UNCONST("-i"); in puffs_fstest_newfs()
343 dtfsargv[2] = __UNCONST("-s"); in puffs_fstest_newfs()
344 dtfsargv[3] = __UNCONST("dtfs"); in puffs_fstest_newfs()
345 dtfsargv[4] = __UNCONST("fictional"); in puffs_fstest_newfs()
368 rumpffs_argv[0] = __UNCONST("rump_ffs"); in p2k_ffs_fstest_newfs()
369 rumpffs_argv[1] = __UNCONST(image); in p2k_ffs_fstest_newfs()
370 rumpffs_argv[2] = __UNCONST("p2kffsfake"); /* NOTUSED */ in p2k_ffs_fstest_newfs()
H A Dsnapshot.c73 fss.fss_mount = __UNCONST("/mnt"); in ATF_TC_BODY()
74 fss.fss_bstore = __UNCONST(BAKNAME); in ATF_TC_BODY()
204 fss.fss_mount = __UNCONST("/mnt"); in ATF_TC_BODY()
205 fss.fss_bstore = __UNCONST(BAKNAME); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_aesctr1.c222 cs.key = __UNCONST(&tests[i].key); in main()
231 co.src = __UNCONST(&tests[i].plaintx); in main()
234 co.iv = __UNCONST(&tests[i].iv); in main()
H A Dh_md5hmac.c157 cs.mackey = __UNCONST(&tests[i].key); in main()
167 co.src = __UNCONST(&tests[i].data); in main()
H A Dh_sha1hmac.c167 cs.mackey = __UNCONST(&tests[i].key); in main()
177 co.src = __UNCONST(&tests[i].data); in main()
/freebsd/contrib/blocklist/bin/
H A Dstate.c122 k.data = __UNCONST(c); in state_del()
148 k.data = __UNCONST(c); in state_get()
176 k.data = __UNCONST(c); in state_put()
178 v.data = __UNCONST(dbi); in state_put()
/freebsd/contrib/mandoc/
H A Dcompat_strcasestr.c41 #define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) macro
63 return __UNCONST(s); in strcasestr()
/freebsd/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fexecve.c67 if (fexecve(fd, __UNCONST(argv), __UNCONST(envp)) == -1) { in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/libc/db/
H A Dt_db_hash_seq.c133 k.data = __UNCONST(c); in state_del()
160 k.data = __UNCONST(c);
189 k.data = __UNCONST(c); in state_put()
191 v.data = __UNCONST(dbi); in state_put()
/freebsd/contrib/blocklist/port/
H A Dport.h22 #ifndef __UNCONST
23 #define __UNCONST(a) ((void *)(intptr_t)(a)) macro
/freebsd/contrib/netbsd-tests/fs/ffs/
H A Dt_mount.c75 args.fspec = __UNCONST("/devdisk"); in ATF_TC_BODY()
116 args.fspec = __UNCONST("/devdisk"); in ATF_TC_BODY()
H A Dh_quota2_tests.c249 fss.fss_mount = __UNCONST("/mnt"); in quota_test4()
250 fss.fss_bstore = __UNCONST(FSTEST_MNTNAME "/le_snap"); in quota_test4()
303 uargs.fspec = __UNCONST("/diskdev"); in quota_test5()
439 uargs.fspec = __UNCONST("/diskdev"); in main()
H A Dt_snapshot.c30 uargs.fspec = __UNCONST(fspec); in mount_diskfs()
/freebsd/contrib/bmake/
H A Dutil.c703 #ifndef __UNCONST
704 # define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) macro
722 #ifndef __UNCONST
723 # define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) macro
739 #ifndef __UNCONST
740 # define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) macro
H A D_strtol.h72 *endptr = __UNCONST(nptr); in _FUNCNAME()
196 *endptr = __UNCONST(any ? s - 1 : nptr); in _FUNCNAME()
/freebsd/contrib/netbsd-tests/lib/libutil/
H A Dt_parsedate.c199 putenv(__UNCONST("TZ=EST")); in ATF_TC_BODY()
204 putenv(__UNCONST("TZ=Asia/Tokyo")); in ATF_TC_BODY()
213 putenv(__UNCONST("TZ=Europe/London")); in ATF_TC_BODY()
440 putenv(__UNCONST("TZ=Europe/Berlin")); in ATF_TC_BODY()
443 putenv(__UNCONST("TZ=America/New_York")); in ATF_TC_BODY()

123