File 'base/misc.tcl' (part of 'Pool_Base')

Description (short)
Miscancellous procedures
Written by
Andreas Kupries
Description
Miscancellous procedures
Depends on
Tcl
Keywords
account search, user id, logname


::pool::misc::currentAddress ()

Dangers: Assumes a usual setup with login name equivalent to email name.
Returns: The email address of the user calling the procedure.

::pool::misc::currentUser ()

Returns: Shortcut to get at the real name of the user calling the procedure.

::pool::misc::logName ()

Determines the name of actual user. Several methods are tried before giving up.
Returns: The user (account) running the calling application.

::pool::misc::realName (account)

Determines the realworld name of user account, as stored in /etc/passwd.
Notes: This procedure is specific to unix and derivations.
Argument: account The name of the account to seach the real name for.
Returns: The real name associated to the account.

::pool::misc::setDifference (a b)

Computes the difference A-B of the sets a and b. Duplicate elements are removed from the result. The arguments must contain lists.
Argument: a List containing the base set.
Argument: b List containing the set to subtract from the first.
Returns: The difference A-B of the given sets.

::pool::misc::setIntersection (a b)

Computes the intersection of the sets a and b. Duplicate elements are removed from the result. The arguments must contain lists.
Argument: a List containing the first set to intersect.
Argument: b List containing the second set to intersect.
Returns: The intersection of the given sets.

::pool::misc::setUnion (a b)

Computes the union of the sets a and b. Duplicate elements are removed from the result. The arguments must contain lists.
Argument: a List containing the first set to unify.
Argument: b List containing the second set to unify.
Returns: The union of the given sets.


Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries