diff -r 86c2de0786bd -r 5f564a82a333 Win32OperatingSystem.st --- a/Win32OperatingSystem.st Wed May 15 19:05:35 2013 +0200 +++ b/Win32OperatingSystem.st Wed May 15 19:06:14 2013 +0200 @@ -5528,16 +5528,16 @@ "return some object filled with info for the file 'aPathName'; the info (for which corresponding access methods are understood by the returned object) is: - type - a symbol giving the files type - mode - numeric access mode - uid - owners user id - gid - owners group id - size - files size - id - files number (i.e. inode number) - accessed - last access time (as Timestamp) - modified - last modification time (as Timestamp) - statusChanged - last status change time (as Timestamp) - alternativeName - (windows only:) the MSDOS name of the file + type - a symbol giving the files type + mode - numeric access mode + uid - owners user id + gid - owners group id + size - files size + id - files number (i.e. inode number) + accessed - last access time (as Timestamp) + modified - last modification time (as Timestamp) + statusChanged - last status change time (as Timestamp) + alternativeName - (windows only:) the MSDOS name of the file Some of the fields may be returned as nil on systems which do not provide all of the information. @@ -5564,45 +5564,45 @@ wchar_t _aPathName[MAXPATHLEN+1]; if (__isStringLike(aPathName)) { - int i; - int l = __stringSize(aPathName); - if (l > MAXPATHLEN) l = MAXPATHLEN; - - for (i=0; i MAXPATHLEN) l = MAXPATHLEN; + + for (i=0; i MAXPATHLEN) l = MAXPATHLEN; - - for (i=0; i MAXPATHLEN) l = MAXPATHLEN; + + for (i=0; i MAXPATHLEN) l = MAXPATHLEN; - for (i=0; i MAXPATHLEN) l = MAXPATHLEN; + for (i=0; i + + " self primGetLastError " ! -primSetLastError: i -%{ /* NOCONTEXT */ - if (__isSmallInteger(i)) { - SetLastError(__intVal(i)); - RETURN(self); - } -%}. - self primitiveFailed. - - "/ +primSetLastError: int + + " self primSetLastError: 0 @@ -7795,8 +7782,8 @@ getNetworkMACAddresses "return a dictionary filled with - key -> name of interface - value -> the MAC adress (as ByteArray) + key -> name of interface + value -> the MAC adress (as ByteArray) for each interface " @@ -7858,16 +7845,16 @@ "Keep the order as reurned by the OS" info := OrderedDictionary new:nAdapters. nAdapters notNil ifTrue:[ - 1 to:nAdapters do:[:i | - |entry name description macAddr ipAddr| - - entry := rawData at:i. - name := entry at:1. - "/ description := entry at:2. - macAddr := entry at:3. - "/ ipAddr := entry at:4. - info at:name put:macAddr. - ]. + 1 to:nAdapters do:[:i | + |entry name description macAddr ipAddr| + + entry := rawData at:i. + name := entry at:1. + "/ description := entry at:2. + macAddr := entry at:3. + "/ ipAddr := entry at:4. + info at:name put:macAddr. + ]. ]. ^ info @@ -11651,9 +11638,9 @@ isSpecialFile ^ (type ~~ #directory - and:[type ~~ #remoteDirectory - and:[type ~~ #regular - and:[type ~~ #symbolicLink + and:[type ~~ #remoteDirectory + and:[type ~~ #regular + and:[type ~~ #symbolicLink ]]]) ! @@ -17133,15 +17120,15 @@ !Win32OperatingSystem class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.464 2013-05-28 12:44:56 cg Exp $' + ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.462 2013-05-15 17:06:14 stefan Exp $' ! version_CVS - ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.464 2013-05-28 12:44:56 cg Exp $' + ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.462 2013-05-15 17:06:14 stefan Exp $' ! version_SVN - ^ '$Id: Win32OperatingSystem.st,v 1.464 2013-05-28 12:44:56 cg Exp $' + ^ '$Id: Win32OperatingSystem.st,v 1.462 2013-05-15 17:06:14 stefan Exp $' ! !