unix definitions



CLK_TCK_ :

CLOCKS_PER_SEC - usually one million ticks, but can be very different on a specific system. Exported as a constant. see CLOCK

reference: ../src/unix.c:0037

clock_ : CLOCK ( --- ticks )

return clock()

reference: ../src/unix.c:0903

p4_call_c_ :

accessing shared libraries - only available for i386-linux

reference: ../src/unix.c:0427

p4_dlcall_

reference: ../src/unix.c:0857

p4_dlsym

reference: ../src/unix.c:0295

p4_dlsym_ : DLSYM symbolname ( -- address ) exec-only

lookup the symbol that follows and leave the address (or null)

reference: ../src/unix.c:0832

p4_ignore_line_ : #! ... ( -- )

ignores the rest of the line, defining `#!' is used to support forth scripts executed by the unix kernel

reference: ../src/unix.c:0892

p4_loadm_ : LOADM filename ( -- )

dlmap the shared object (or share an already mapped object) and run the per-thread initialization code. This is the user-convenient function, otherwise use (LOADM)
 simulate:
   : LOADM  BL WORD 
     HERE (LOADM)  0= IF ." -- load failed: " HERE COUNT TYPE CR THEN ;

reference: ../src/unix.c:0819

p4_loadm2_ : (LOADM) ( bstring -- sucess )

reference: ../src/unix.c:0783

p4_uselibrary_ :

accessing shared libraries - only available for i386-linux

reference: ../src/unix.c:0369

p4_dlclose

reference: ../src/unix.c:0741

p4_dlerror

reference: ../src/unix.c:0761

p4_dlinit

reference: ../src/unix.c:0231

p4_dlopen

reference: ../src/unix.c:0249

p4_dlslot_close

reference: ../src/unix.c:0778

p4_dlslot_create

reference: ../src/unix.c:0625

p4_dlslot_find

reference: ../src/unix.c:0606

p4_dlslot_isnt_unique_llist

reference: ../src/unix.c:0668

p4_dlslot_open

reference: ../src/unix.c:0704

p4_dlslot_remove

reference: ../src/unix.c:0765

p4_forget_loadm

reference: ../src/unix.c:0772

p4_load_llist

reference: ../src/unix.c:0801

p4_slot_unuse :

p4_slot_use

reference: ../src/unix.c:0535

p4_slot_use :

request a slot index. The index is written to the variable arg-address. if the arg-address contains a value != 0, we check if that specific slot index is free for assignment - or already assigned to this variable. a slot_use can be done for the same slot-variable multiple times, which will increase a use-counter. Call slot_unuse correspondingly.

reference: ../src/unix.c:0492