/plan9/sys/src/cmd/gs/src/ |
H A D | gpcheck.h | 40 # define process_interrupts(mem) discard(gp_check_interrupts(mem)) argument 41 # define return_if_interrupt(mem)\ argument 46 # define return_check_interrupt(mem, code) \ argument 48 # define set_code_on_interrupt(mem, pcode) \ argument 52 # define gp_check_interrupts(mem) 0 argument 53 # define process_interrupts(mem) DO_NOTHING argument 54 # define return_if_interrupt(mem) DO_NOTHING argument 55 # define return_check_interrupt(mem, code) \ argument 57 # define set_code_on_interrupt(mem, code) DO_NOTHING argument
|
H A D | iname.h | 35 #define name_memory(mem)\ argument 42 #define name_ref(mem, ptr, size, pnref, enterflag)\ argument 44 #define name_string_ref(mem, pnref, psref)\ argument 49 #define name_enter_string(mem, str, pnref)\ argument 55 #define name_from_string(mem, psref, pnref)\ argument 63 #define name_invalidate_value_cache(mem, pnref)\ argument 67 #define name_index(mem, pnref) /* ref => index */\ argument 69 #define name_index_ptr(mem, nidx) /* index => name */\ argument 71 #define name_index_ref(mem, nidx, pnref) /* index => ref */\ argument 77 #define name_next_valid_index(mem, nidx)\ argument [all …]
|
H A D | gsmemlok.c | 147 gs_locked_free_all(gs_memory_t * mem, uint free_mask, client_name_t cname) in gs_locked_free_all() 173 gs_locked_consolidate_free(gs_memory_t * mem) in gs_locked_consolidate_free() 180 gs_locked_alloc_bytes(gs_memory_t * mem, uint size, client_name_t cname) in gs_locked_alloc_bytes() 189 gs_locked_alloc_bytes_immovable(gs_memory_t * mem, uint size, in gs_locked_alloc_bytes_immovable() 199 gs_locked_alloc_struct(gs_memory_t * mem, gs_memory_type_ptr_t pstype, in gs_locked_alloc_struct() 209 gs_locked_alloc_struct_immovable(gs_memory_t * mem, in gs_locked_alloc_struct_immovable() 219 gs_locked_alloc_byte_array(gs_memory_t * mem, uint num_elements, uint elt_size, in gs_locked_alloc_byte_array() 229 gs_locked_alloc_byte_array_immovable(gs_memory_t * mem, uint num_elements, in gs_locked_alloc_byte_array_immovable() 239 gs_locked_alloc_struct_array(gs_memory_t * mem, uint num_elements, in gs_locked_alloc_struct_array() 249 gs_locked_alloc_struct_array_immovable(gs_memory_t * mem, uint num_elements, in gs_locked_alloc_struct_array_immovable() [all …]
|
H A D | gsmemret.c | 160 gs_forward_free_all(gs_memory_t * mem, uint free_mask, client_name_t cname) in gs_forward_free_all() 171 gs_forward_consolidate_free(gs_memory_t * mem) in gs_forward_consolidate_free() 176 gs_retrying_alloc_bytes(gs_memory_t * mem, uint size, client_name_t cname) in gs_retrying_alloc_bytes() 184 gs_retrying_alloc_bytes_immovable(gs_memory_t * mem, uint size, in gs_retrying_alloc_bytes_immovable() 193 gs_retrying_alloc_struct(gs_memory_t * mem, gs_memory_type_ptr_t pstype, in gs_retrying_alloc_struct() 202 gs_retrying_alloc_struct_immovable(gs_memory_t * mem, in gs_retrying_alloc_struct_immovable() 211 gs_retrying_alloc_byte_array(gs_memory_t * mem, uint num_elements, uint elt_size, in gs_retrying_alloc_byte_array() 221 gs_retrying_alloc_byte_array_immovable(gs_memory_t * mem, uint num_elements, in gs_retrying_alloc_byte_array_immovable() 232 gs_retrying_alloc_struct_array(gs_memory_t * mem, uint num_elements, in gs_retrying_alloc_struct_array() 242 gs_retrying_alloc_struct_array_immovable(gs_memory_t * mem, uint num_elements, in gs_retrying_alloc_struct_array_immovable() [all …]
|
H A D | idebug.c | 44 debug_print_name(const gs_memory_t *mem, const ref * pnref) in debug_print_name() 52 debug_print_name_index(const gs_memory_t *mem, name_index_t nidx) in debug_print_name_index() 62 debug_print_full_ref(const gs_memory_t *mem, const ref * pref) in debug_print_full_ref() 154 debug_print_packed_ref(const gs_memory_t *mem, const ref_packed *pref) in debug_print_packed_ref() 182 debug_print_ref_packed(const gs_memory_t *mem, const ref_packed *rpp) in debug_print_ref_packed() 191 debug_print_ref(const gs_memory_t *mem, const ref * pref) in debug_print_ref() 199 debug_dump_one_ref(const gs_memory_t *mem, const ref * p) in debug_dump_one_ref() 223 print_ref_data(const gs_memory_t *mem, const ref *p) in print_ref_data() 240 debug_dump_refs(const gs_memory_t *mem, const ref * from, in debug_dump_refs() 258 debug_dump_stack(const gs_memory_t *mem, in debug_dump_stack() [all …]
|
H A D | gsmalloc.c | 113 gs_malloc_memory_t *mem = in gs_malloc_memory_init() local 155 gs_heap_alloc_bytes(gs_memory_t * mem, uint size, client_name_t cname) in gs_heap_alloc_bytes() 213 gs_heap_alloc_struct(gs_memory_t * mem, gs_memory_type_ptr_t pstype, in gs_heap_alloc_struct() 225 gs_heap_alloc_byte_array(gs_memory_t * mem, uint num_elements, uint elt_size, in gs_heap_alloc_byte_array() 235 gs_heap_alloc_struct_array(gs_memory_t * mem, uint num_elements, in gs_heap_alloc_struct_array() 248 gs_heap_resize_object(gs_memory_t * mem, void *obj, uint new_num_elements, in gs_heap_resize_object() 280 gs_heap_object_size(gs_memory_t * mem, const void *ptr) in gs_heap_object_size() 285 gs_heap_object_type(gs_memory_t * mem, const void *ptr) in gs_heap_object_type() 290 gs_heap_free_object(gs_memory_t * mem, void *ptr, client_name_t cname) in gs_heap_free_object() 346 gs_heap_alloc_string(gs_memory_t * mem, uint nbytes, client_name_t cname) in gs_heap_alloc_string() [all …]
|
H A D | gsalloc.c | 303 ialloc_gc_prepare(gs_ref_memory_t * mem) in ialloc_gc_prepare() 318 ialloc_reset(gs_ref_memory_t * mem) in ialloc_reset() 333 ialloc_reset_free(gs_ref_memory_t * mem) in ialloc_reset_free() 358 ialloc_set_limit(register gs_ref_memory_t * mem) in ialloc_set_limit() 395 i_free_all(gs_memory_t * mem, uint free_mask, client_name_t cname) in i_free_all() 427 i_object_size(gs_memory_t * mem, const void /*obj_header_t */ *obj) in i_object_size() 434 i_object_type(gs_memory_t * mem, const void /*obj_header_t */ *obj) in i_object_type() 441 gs_memory_gc_status(const gs_ref_memory_t * mem, gs_memory_gc_status_t * pstat) in gs_memory_gc_status() 448 gs_memory_set_gc_status(gs_ref_memory_t * mem, const gs_memory_gc_status_t * pstat) in gs_memory_set_gc_status() 456 gs_memory_set_vm_threshold(gs_ref_memory_t * mem, long val) in gs_memory_set_vm_threshold() [all …]
|
H A D | gsmemory.h | 106 #define gs_alloc_bytes_immovable(mem, nbytes, cname)\ argument 124 #define gs_resize_object(mem, obj, newn, cname)\ argument 136 #define gs_free_object(mem, data, cname)\ argument 146 #define gs_memory_status(mem, pst)\ argument 163 #define gs_memory_stable(mem)\ argument 186 #define gs_memory_free_all(mem, free_mask, cname)\ argument 189 #define gs_free_all(mem)\ argument 201 #define gs_consolidate_free(mem)\ argument 251 #define gs_alloc_bytes(mem, nbytes, cname)\ argument 262 #define gs_alloc_struct(mem, typ, pstype, cname)\ argument [all …]
|
H A D | isave.c | 270 gs_ref_memory_t *mem; in alloc_set_masks() local 301 alloc_free_save(gs_ref_memory_t *mem, alloc_save_t *save, const char *scn) in alloc_free_save() 376 alloc_save_space(gs_ref_memory_t * mem, gs_dual_memory_t * dmem, ulong sid) in alloc_save_space() 439 alloc_save_change_in(gs_ref_memory_t *mem, const ref * pcont, in alloc_save_change_in() 482 gs_ref_memory_t *mem = in alloc_save_change() local 514 register const gs_ref_memory_t *mem = save->space_local; in alloc_is_since_save() local 571 alloc_name_is_since_save(const gs_memory_t *mem, in alloc_name_is_since_save() 584 alloc_name_index_is_since_save(const gs_memory_t *mem, in alloc_name_index_is_since_save() 647 gs_ref_memory_t *mem = lmem; in alloc_restore_step_in() local 702 restore_space(gs_ref_memory_t * mem, gs_dual_memory_t *dmem) in restore_space() [all …]
|
H A D | gsinit.c | 40 gs_memory_t *mem; in gs_lib_init0() local 50 gs_lib_init1(gs_memory_t * mem) in gs_lib_init1() 64 gs_lib_finit(int exit_status, int code, gs_memory_t *mem) in gs_lib_finit()
|
H A D | gsiodevs.c | 41 gs_memory_t *mem = s->memory; in stdio_close_file() local 49 gs_memory_t * mem, char rw, FILE *file, in stdio_open() 72 gs_memory_t * mem) in stdin_open() 81 gs_memory_t * mem) in stdout_open() 90 gs_memory_t * mem) in stderr_open()
|
H A D | gsfunc.c | 37 gs_memory_t *mem) in alloc_function_array() 54 fn_common_free_params(gs_function_params_t * params, gs_memory_t * mem) in fn_common_free_params() 62 fn_common_free(gs_function_t * pfn, bool free_params, gs_memory_t * mem) in fn_common_free() 123 fn_copy_values(const void *pvalues, int count, int size, gs_memory_t *mem) in fn_copy_values() 141 const gs_range_t *pranges, gs_memory_t *mem) in fn_scale_pairs() 174 const gs_range_t *pranges, gs_memory_t *mem) in fn_common_scale()
|
H A D | ziodevs.c | 80 stdin_init(gx_io_device * iodev, gs_memory_t * mem) in stdin_init() 106 gs_memory_t * mem) in stdin_open() 115 gs_memory_t *mem = imemory_system; in stdin_open() local 164 gs_memory_t * mem) in stdout_open() 172 gs_memory_t *mem = imemory_system; in stdout_open() local 210 gs_memory_t * mem) in stderr_open() 218 gs_memory_t *mem = imemory_system; in stderr_open() local
|
H A D | gsdfilt.c | 53 gs_push_device_filter(gs_memory_t *mem, gs_state *pgs, gs_device_filter_t *df) in gs_push_device_filter() 80 gs_pop_device_filter(gs_memory_t *mem, gs_state *pgs) in gs_pop_device_filter() 103 gs_clear_device_filters(gs_memory_t *mem, gs_state *pgs) in gs_clear_device_filters()
|
H A D | gsmemory.c | 103 gs_resize_struct_array(gs_memory_t *mem, void *obj, uint num_elements, in gs_resize_struct_array() 134 gs_ignore_free_object(gs_memory_t * mem, void *data, client_name_t cname) in gs_ignore_free_object() 138 gs_ignore_free_string(gs_memory_t * mem, byte * data, uint nbytes, in gs_ignore_free_string() 146 gs_free_const_object(gs_memory_t * mem, const void *data, client_name_t cname) in gs_free_const_object() 154 gs_free_const_string(gs_memory_t * mem, const byte * data, uint nbytes, in gs_free_const_string() 165 gs_free_bytestring(gs_memory_t *mem, gs_bytestring *pbs, client_name_t cname) in gs_free_bytestring() 173 gs_free_const_bytestring(gs_memory_t *mem, gs_const_bytestring *pbs, in gs_free_const_bytestring() 184 gs_ignore_consolidate_free(gs_memory_t *mem) in gs_ignore_consolidate_free() 217 gs_register_struct_root(gs_memory_t *mem, gs_gc_root_t *root, in gs_register_struct_root() 285 rc_free_struct_only(gs_memory_t * mem, void *data, client_name_t cname) in rc_free_struct_only()
|
H A D | ialloc.c | 103 gs_ref_memory_t *mem = dmem->spaces_indexed[space >> r_space_shift]; in ialloc_set_space() local 145 gs_register_ref_root(gs_memory_t *mem, gs_gc_root_t *root, in gs_register_ref_root() 160 gs_alloc_ref_array(gs_ref_memory_t * mem, ref * parr, uint attrs, in gs_alloc_ref_array() 224 gs_resize_ref_array(gs_ref_memory_t * mem, ref * parr, in gs_resize_ref_array() 261 gs_free_ref_array(gs_ref_memory_t * mem, ref * parr, client_name_t cname) in gs_free_ref_array() 353 gs_alloc_string_ref(gs_ref_memory_t * mem, ref * psref, in gs_alloc_string_ref()
|
H A D | gstext.c | 125 gs_memory_t * mem, gs_text_enum_t ** ppte) in gx_device_text_begin() 166 gs_memory_t *mem) in gs_text_enum_init() 221 gs_memory_t * mem, gs_text_enum_t ** ppte) in gs_text_begin() 273 gs_memory_t * mem, gs_text_enum_t ** ppte) in gs_show_begin() 283 gs_memory_t * mem, gs_text_enum_t ** ppte) in gs_ashow_begin() 297 gs_memory_t * mem, gs_text_enum_t ** ppte) in gs_widthshow_begin() 312 gs_memory_t * mem, gs_text_enum_t ** ppte) in gs_awidthshow_begin() 329 gs_memory_t * mem, gs_text_enum_t ** ppte) in gs_kshow_begin() 341 uint widths_size, gs_memory_t * mem, gs_text_enum_t ** ppte) in gs_xyshow_begin() 371 gs_memory_t * mem, gs_text_enum_t ** ppte) in gs_glyphshow_begin() [all …]
|
H A D | gsnogc.c | 55 sf_alloc_string(gs_memory_t * mem, uint nbytes, client_name_t cname) in sf_alloc_string() 88 sf_free_string(gs_memory_t * mem, byte * str, uint size, client_name_t cname) in sf_free_string() 223 sf_enable_free(gs_memory_t * mem, bool enable) in sf_enable_free() 257 sf_consolidate_free(gs_memory_t *mem) in sf_consolidate_free() 316 gs_ref_memory_t *mem = pspaces->memories.indexed[space]; in gs_nogc_reclaim() local
|
H A D | szlibc.c | 55 gs_memory_t *mem = ss->memory; in s_zlib_alloc_dynamic_state() local 86 gs_memory_t *mem = zds->memory->stable_memory; in s_zlib_alloc() local 110 gs_memory_t *mem = zds->memory->stable_memory; in s_zlib_free() local
|
H A D | ireclaim.c | 54 gs_ref_memory_t *mem; in ireclaim() local 110 gs_ref_memory_t *mem; in gs_vmreclaim() local 135 gs_ref_memory_t *mem = dmem->spaces_indexed[i]; in gs_vmreclaim() local
|
H A D | gslibctx.c | 43 int gs_lib_ctx_init( gs_memory_t *mem ) in gs_lib_ctx_init() 83 int outwrite(const gs_memory_t *mem, const char *str, int len) in outwrite() 120 void outflush(const gs_memory_t *mem) in outflush()
|
H A D | zcie.c | 51 dict_ranges_param(const gs_memory_t *mem, in dict_ranges_param() 68 dict_proc_array_param(const gs_memory_t *mem, in dict_proc_array_param() 95 dict_range3_param(const gs_memory_t *mem, in dict_range3_param() 104 dict_matrix3_param(const gs_memory_t *mem, in dict_matrix3_param() 130 dict_proc3_param(const gs_memory_t *mem, const ref *pdref, const char *kstr, ref proc3[3]) in dict_proc3_param() 137 cie_points_param(const gs_memory_t *mem, in cie_points_param() 164 gs_memory_t * mem) in cie_table_param() 245 cie_lmnp_param(const gs_memory_t *mem, const ref * pdref, gs_cie_common * pcie, ref_cie_procs * pcp… in cie_lmnp_param() 261 cie_abc_param(const gs_memory_t *mem, const ref * pdref, gs_cie_abc * pcie, ref_cie_procs * pcprocs) in cie_abc_param() 308 gs_memory_t *mem = gs_state_memory(igs); in zsetciedefgspace() local [all …]
|
H A D | gsmalloc.h | 39 #define gs_malloc_memory_release(mem)\ argument 46 #define gs_malloc(mem, nelts, esize, cname)\ argument 48 #define gs_free(mem, data, nelts, esize, cname)\ argument
|
H A D | gsrefct.h | 61 #define rc_init_free(vp, mem, rcinit, proc)\ argument 68 #define rc_init(vp, mem, rcinit)\ argument 71 #define rc_alloc_struct_n(vp, typ, pstyp, mem, errstat, cname, rcinit)\ argument 79 #define rc_alloc_struct_0(vp, typ, pstype, mem, errstat, cname)\ argument 81 #define rc_alloc_struct_1(vp, typ, pstype, mem, errstat, cname)\ argument 104 #define rc_allocate_struct(vp, typ, pstype, mem, errstat, cname)\ argument 118 #define rc_unshare_struct(vp, typ, pstype, mem, errstat, cname)\ argument
|
/plan9/sys/src/ape/cmd/pax/ |
H A D | mem.c | 90 char *mem; local 132 char *mem; local
|