The definition/size of click anyone?

Michael Davidson md
Wed Sep 19 09:22:43 AEST 1990


rom at mvsun.ericsson.se (Robert Malmgren TK/DG) writes:


>I use a Sun 3/80 running SunOS 4.1 and need to know the size/definition
>of a "click" for a program I'm working on.
>In the process structure the definition of p_tsize et. al is specified in 
>clicks, and I cannot find any definition of a click:

>size_t  p_tsize;        /* size of text (clicks) */

The size of a "click" is machine dependent - depends on the MMU.
On a PDP-11 it was 64 bytes, on an 80386 it is 4k ....

There should be conversion macros for "bytes-to-clicks" - btoc()
and "clicks-to-bytes" ctob() around somewhere - try sys/sysmacros.h ...

(btw does anyone know *why* the term "click" was used? Did this
terminology come from Multics originally? I know that it does
*not* appear to be DEC PDP-11 terminology ..... Please only reply
if you actually *know* the answer to this!)



More information about the Comp.unix.internals mailing list