Lines Matching refs:ptr_size
215 static int copyoutptr(user_addr_t ua, user_addr_t ptr, int ptr_size);
2040 * ptr_size 4/8, based on 'froma' address space
2046 * *ptr_size Modified
2049 copyinptr(user_addr_t froma, user_addr_t *toptr, int ptr_size)
2053 if (ptr_size == 4) {
2074 * ptr_size 4/8, based on 'ua' address space
2080 * *ptr_size Modified
2083 copyoutptr(user_addr_t ua, user_addr_t ptr, int ptr_size)
2087 if (ptr_size == 4) {
2168 int ptr_size = (imgp->ip_flags & IMGPF_IS_64BIT) ? 8 : 4;
2188 * but we use ptr_size worth of space for it, for alignment).
2190 string_area = stack - (((imgp->ip_strendp - imgp->ip_strings) + ptr_size-1) & ~(ptr_size-1)) - ptr_size;
2191 path_area = string_area - ((patharea_len + ptr_size-1) & ~(ptr_size-1));
2192 ptr_area = path_area - ((imgp->ip_argc + imgp->ip_envc + 4 + envc_add) * ptr_size) - ptr_size /*argc*/;
2221 (void)copyoutptr(0LL, path_area - ptr_size, ptr_size);
2224 (void)copyoutptr(path_area, path_area - 2*ptr_size, ptr_size);
2227 * ptr_size for 2 NULL one each ofter arg[argc -1] and env[n]
2228 * ptr_size for argc
2229 * skip over saved path, ptr_size for pointer to path,
2230 * and ptr_size for the NULL after pointer to path.
2233 /* argc (int32, stored in a ptr_size area) */
2236 /* pad to ptr_size, if 64 bit image, to ensure user stack alignment */
2252 * to a ptr_size boundary.
2258 (void)copyoutptr(0LL, ptr_area, ptr_size);
2259 ptr_area += ptr_size;
2268 (void)copyoutptr(string_area, ptr_area, ptr_size);
2285 ptr_area += ptr_size;
2288 (void)copyoutptr(0LL, ptr_area, ptr_size);
2319 int ptr_size = (imgp->ip_flags & IMGPF_WAS_64BIT) ? 8 : 4;
2341 error = copyinptr(argv, &arg, ptr_size);
2345 argv += ptr_size;
2356 error = copyinptr(argv, &arg, ptr_size);
2360 argv += ptr_size;
2381 error = copyinptr(envv, &env, ptr_size);
2385 envv += ptr_size;