From: SourceForge.net <no...@so...> - 2010-03-01 15:35:30
|
Bugs item #2959335, was opened at 2010-02-25 20:56 Message generated for change (Comment added) made by sds You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=2959335&group_id=1355 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: clisp Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: ander-skirnir (ander-skirnir) >Assigned to: Arseny Slobodyuk (ampy) Summary: no posix:uid on windows (required by asdf) Initial Comment: asdf package requires uid symbol from posix, but its not exporting on win32 at all. so, to load asdf on clisp from win32 now u have to do that: (in-package #:posix) (export '(uid)) (in-package #:cl-user) (load "asdf\\asdf.lisp") to fix it, u can just add #+win32 (export '(uid)) to the syscalls\\posix.lisp ---------------------------------------------------------------------- >Comment By: Sam Steingold (sds) Date: 2010-03-01 10:35 Message: ander-skirnir: what is the original use case for this function? what is the expected contract? I don't think getenv is the right way here. I think OpenProcessToken+GetTokenInformation is the way to go. Arseny, I don't think string return value is a good idea - we should return a structure of 3 integers and a byte vector or maybe 5 integers. you can also provide a printer function which would produce the string you describe. Would you like to handle this issue? Thanks! ---------------------------------------------------------------------- Comment By: Arseny Slobodyuk (ampy) Date: 2010-02-27 19:40 Message: I believe on Windows, user's and group's UUID corresponds userid and groupid in UNIX. But UUID is a structure typedef struct _GUID { DWORD Data1; WORD Data2; WORD Data3; BYTE Data4[8]; } GUID; which can be represented as string like {4208fb66-e22a-11d1-a7d7-00a0c982c00d}. This UUIDS however are unique - different on different computers. I dont know how it could help. Possibly "int getuid() {return 0;}" will do? ---------------------------------------------------------------------- Comment By: ander-skirnir (ander-skirnir) Date: 2010-02-27 18:41 Message: quote from some forum: "You can access the Windows environment variable %USERNAME%. You didn't mention how you want to access it though. Batch file? Command Prompt? C/C++? With C/C++ you can use the getenv() function to retrieve specific environment variable values." useful discuss: http://stackoverflow.com/questions/1594746/win32-equivalent-of-getuid ---------------------------------------------------------------------- Comment By: Sam Steingold (sds) Date: 2010-02-26 11:16 Message: how do we implement uid on windows? what's the windows analogue of getuid/geteuid/getgid &c? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101355&aid=2959335&group_id=1355 |