In file useracc.h:

struct shmuserrec

Per-user shared memory segment.

[more]useracc_t acc
User's account.
[more]onlinerec_t onl
User's online record.
[more]char aux[2048]
Generic shared scratch space.


Documentation

Per-user shared memory segment.

This structure is allocated when a user logs in. It is shared throughout the system and contains the user's account (useracc_t), the online record, onlinerec_t and a 2 kbyte free-for-all, generic scratch buffer.

For each runtime, there are two pointers to such structures: thisshm and othrshm. The former holds the current user's particulars. The latter is normally unused, but is instantiated by function in this part of the API to point to some other user's shared structure. This is used to allow transactions between users.

There are six macro shortcuts to access the three fields of each of the two shared memory segments.

ouseracc_t acc
User's account.

oonlinerec_t onl
User's online record.

ochar aux[2048]
Generic shared scratch space.

See Also:
thisuseracc, othruseracc, thisuseronl, othruseronl, _thisuseraux, _othruseraux.

Alphabetic index



This page was generated with the help of DOC++.