Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-07-14
03:00 • Closed ticket [1077242fff]: make info hostname a PGV plus 7 other changes artifact: 97204a39ea user: dgp
2005-07-10
09:54 • Ticket [1077242fff]: 4 changes artifact: c26b0028eb user: kennykb
09:54 • Add attachment 1077242a,patch to ticket [1077242fff] artifact: c48850dd3a user: kennykb
09:54 • Ticket [1077242fff] make info hostname a PGV status still Open with 5 othe... artifact: 18acbcb59b user: kennykb
2005-07-09
11:28 • Ticket [1077242fff]: 4 changes artifact: a0dbf10fa3 user: dgp
11:28 • Add attachment 1077242.patch to ticket [1077242fff] artifact: aafd71db8c user: dgp
11:28 • Ticket [1077242fff] make info hostname a PGV status still Open with 5 othe... artifact: 21be1d8d1f user: dgp
2005-07-08
23:44 • Ticket [1077242fff]: 4 changes artifact: 080cf466e4 user: dgp
23:44 • Ticket [1077242fff]: 4 changes artifact: 58b5ebfbc0 user: dgp
2004-12-03
16:24 • Ticket [1077242fff]: 4 changes artifact: 91dd1e4c33 user: dkf
03:06 • Ticket [1077242fff]: 4 changes artifact: f5727d7640 user: dgp
2004-12-02
16:32 • Ticket [1077242fff]: 4 changes artifact: 578ffeea09 user: dkf
01:34 • New ticket [1077242fff]. artifact: 86f6f69935 user: dgp

make [info hostname] a PGV

Closed / Accepted1077242fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 21 years ago
Descriptionplain2004-12-02 01:34:57
see summary.
dkfplain2004-12-02 16:32:18
Logged In: YES 
user_id=79902

Also tcl_platform(user)?
dgpplain2004-12-03 03:06:27
Logged In: YES 
user_id=80530

hmmm... currently tcl_platform(user)
is pulled from the environment variable
at the time each interp is created.

This allows each interp to have different
values if they get created in different
environments.

A PGV-backed store would force the
same value on all interps in all threads.

Not clear to me which is more desirable.
dkfplain2004-12-03 16:24:22
Logged In: YES 
user_id=79902

All modern platforms I know of have an OS notion of current
user and that is per-process. (The exception is Win95/98/ME
but who really cares about those any more?) If nothing else,
could use a PGV to store the initial value of t_p(user), as
I don't think that there's a (UNIX) cross-platform reentrant
interface to convert the UID to a username.
dgpplain2005-07-08 23:44:48
Logged In: YES 
user_id=80530


Attached patch does the
[info hostname] conversion
for unix.
dgpplain2005-07-08 23:44:50
File Added - 141342: 1077242.patch
dgpplain2005-07-09 11:28:26
Logged In: YES 
user_id=80530


Revised patch includes changes
for windows as well;  needs testing
and review there.
dgpplain2005-07-09 11:28:28
File Deleted - 141342: 



File Added - 141397: 1077242.patch
kennykbplain2005-07-10 09:54:45
Logged In: YES 
user_id=99768

Patch worked OK on Win2k (gcc and vc6, with and 
without threads) once I changed a spurious '^L' 
(literally, caret-ell) to a form feed character.
Revised patch attached.
kennykbplain2005-07-10 09:54:48
File Added - 141484: 1077242a,patch
dgpplain2005-07-14 03:00:55
Logged In: YES 
user_id=80530

commit to HEAD
Log in (anonymous is fine) to add a comment.

Attachments: