|
From: <lab...@us...> - 2015-09-06 14:34:40
|
Revision: 1537
http://sourceforge.net/p/opengtoolkit/svn/1537
Author: labviewer
Date: 2015-09-06 14:34:37 +0000 (Sun, 06 Sep 2015)
Log Message:
-----------
Update Read Link function for MacOSX
Modified Paths:
--------------
trunk/lvzip/c_source/lvutil.c
trunk/lvzip/c_source/lvutil.h
trunk/lvzip/source/fileutil.llb/FILE Get Directory Content.vi
Added Paths:
-----------
trunk/lvzip/source/fileutil.llb/FILE Read Link Target.vi
Property Changed:
----------------
trunk/lvzip/c_source/
Index: trunk/lvzip/c_source
===================================================================
--- trunk/lvzip/c_source 2015-07-31 23:16:09 UTC (rev 1536)
+++ trunk/lvzip/c_source 2015-09-06 14:34:37 UTC (rev 1537)
Property changes on: trunk/lvzip/c_source
___________________________________________________________________
Modified: svn:ignore
## -4,3 +4,4 ##
.opt
.plg
.o
+Build
Modified: trunk/lvzip/c_source/lvutil.c
===================================================================
--- trunk/lvzip/c_source/lvutil.c 2015-07-31 23:16:09 UTC (rev 1536)
+++ trunk/lvzip/c_source/lvutil.c 2015-09-06 14:34:37 UTC (rev 1537)
@@ -103,10 +103,13 @@
#define usesWinPath Win32
#if usesHFSPath
+#define kPathSeperator ':'
typedef SInt16 FileRefNum;
#elif usesPosixPath
+#define kPathSeperator '/'
typedef FILE* FileRefNum;
#elif usesWinPath
+#define kPathSeperator '\'
typedef HANDLE FileRefNum;
#endif
@@ -978,6 +981,10 @@
if (!err)
err = ConvertToPosixPath(*str, str, false);
#endif
+ if (LStrBuf(**str)[LStrLen(**str) - 1] == kPathSeperator)
+ {
+ LStrLen(**str)--;
+ }
}
}
return err;
@@ -1061,7 +1068,7 @@
return err;
}
-LibAPI(MgErr) LVPath_ReadLink(Path path, Path *target)
+LibAPI(MgErr) LVPath_ReadLink(Path path, Path *target, int32 *fileType)
{
MgErr err = mgNoErr;
LStrHandle src = NULL;
@@ -1074,7 +1081,7 @@
{
#if MacOSX || Unix
struct stat st;
- char *buf = NULL;
+ char *buf = NULL, *ptr = NULL;
int len = 0;
if (lstat((const char*)LStrBuf(*src), &st))
@@ -1104,13 +1111,72 @@
}
else if (retval < len)
{
- err = LVPath_FromText((CStr)buf, retval, target, LV_FALSE);
- free(buf);
- break;
+ /* Is the link target a relative path */
+ if (buf[0] != '/')
+ {
+ ptr = realloc(buf, retval + LStrLen(*src) + 1);
+ if (ptr)
+ {
+ buf = ptr;
+ memmove(buf + LStrLen(*src) + 1, buf, retval);
+ memmove(buf, LStrBuf(*src), LStrLen(*src));
+ buf[LStrLen(*src)] = '/';
+ retval += LStrLen(*src) + 1;
+ }
+ else
+ {
+ err = mFullErr;
+ }
+ }
+ if (!err)
+ {
+ err = LVPath_FromText((CStr)buf, retval, target, LV_FALSE);
+ if (!err && fileType)
+ {
+ if (lstat(buf, &st))
+ {
+ err = UnixToLVFileErr();
+ }
+ else if (S_ISLNK(st.st_mode))
+ {
+ if (stat(buf, &st))
+ {
+ err = UnixToLVFileErr();
+ }
+ else
+ {
+ *fileType = S_ISDIR(st.st_mode) ? kIsLink : kIsLink | kIsFile;
+ }
+ }
+ else
+ {
+ if (!S_ISDIR(st.st_mode))
+ {
+ *fileType = kIsFile;
+ }
+ }
+ }
+ break;
+ }
}
- len += len;
- buf = realloc(buf, len);
+ else // retval >= len
+ {
+ len += len;
+ ptr = realloc(buf, len);
+ if (!ptr)
+ {
+ err = mFullErr;
+ }
+ else
+ {
+ buf = ptr;
+ }
+ }
}
+ if (buf)
+ {
+ free(buf);
+ }
#elif Win32
WIN32_FILE_ATTRIBUTE_DATA data;
BOOL ret = GetFileAttributesExA(LStrBuf(*src), GetFileExInfoStandard, &data);
Modified: trunk/lvzip/c_source/lvutil.h
===================================================================
--- trunk/lvzip/c_source/lvutil.h 2015-07-31 23:16:09 UTC (rev 1536)
+++ trunk/lvzip/c_source/lvutil.h 2015-09-06 14:34:37 UTC (rev 1537)
@@ -404,7 +404,8 @@
typedef enum _FMFileType {
kInvalidType =0,
kUnknownFileType=RTToL('?','?','?','?'),
- kTextFileType =RTToL('T','E','X','T'),
+ kTextFileType =RTToL('T','E','X','T'),
+ kLinkFileType =RTToL('s','l','n','k'),
/** Typical directory types */
kHardDiskDirType=RTToL('h','d','s','k'),
kFloppyDirType =RTToL('f','l','p','y'),
@@ -629,7 +630,7 @@
/* Create and read a link */
LibAPI(MgErr) LVPath_CreateLink(Path path, uInt32 flags, Path target);
-LibAPI(MgErr) LVPath_ReadLink(Path path, Path *target);
+LibAPI(MgErr) LVPath_ReadLink(Path path, Path *target, int32 *fileType);
/* Legacy functions not supported on Mac OSX and all non-Mac platforms */
LibAPI(MgErr) LVPath_EncodeMacbinary(Path srcFileName, Path dstFileName);
Modified: trunk/lvzip/source/fileutil.llb/FILE Get Directory Content.vi
===================================================================
(Binary files differ)
Added: trunk/lvzip/source/fileutil.llb/FILE Read Link Target.vi
===================================================================
(Binary files differ)
Index: trunk/lvzip/source/fileutil.llb/FILE Read Link Target.vi
===================================================================
--- trunk/lvzip/source/fileutil.llb/FILE Read Link Target.vi 2015-07-31 23:16:09 UTC (rev 1536)
+++ trunk/lvzip/source/fileutil.llb/FILE Read Link Target.vi 2015-09-06 14:34:37 UTC (rev 1537)
Property changes on: trunk/lvzip/source/fileutil.llb/FILE Read Link Target.vi
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lab...@us...> - 2018-12-15 23:24:54
|
Revision: 1577
http://sourceforge.net/p/opengtoolkit/svn/1577
Author: labviewer
Date: 2018-12-15 23:24:53 +0000 (Sat, 15 Dec 2018)
Log Message:
-----------
Recompiled shared library files
Modified Paths:
--------------
trunk/lvzip/RT Images/LinuxRT_arm/liblvzlib.so
trunk/lvzip/RT Images/LinuxRT_x64/liblvzlib.so
trunk/lvzip/RT Images/Pharlap/lvzlib.dll
trunk/lvzip/RT Images/vxworks61/lvzlib.out
trunk/lvzip/RT Images/vxworks63/lvzlib.out
trunk/lvzip/source/lvzlib.dll
trunk/lvzip/source/lvzlib.so
trunk/lvzip/source/lvzlib64.dll
trunk/lvzip/source/lvzlib64.so
Modified: trunk/lvzip/RT Images/LinuxRT_arm/liblvzlib.so
===================================================================
(Binary files differ)
Modified: trunk/lvzip/RT Images/LinuxRT_x64/liblvzlib.so
===================================================================
(Binary files differ)
Modified: trunk/lvzip/RT Images/Pharlap/lvzlib.dll
===================================================================
(Binary files differ)
Modified: trunk/lvzip/RT Images/vxworks61/lvzlib.out
===================================================================
(Binary files differ)
Modified: trunk/lvzip/RT Images/vxworks63/lvzlib.out
===================================================================
(Binary files differ)
Modified: trunk/lvzip/source/lvzlib.dll
===================================================================
(Binary files differ)
Modified: trunk/lvzip/source/lvzlib.so
===================================================================
(Binary files differ)
Modified: trunk/lvzip/source/lvzlib64.dll
===================================================================
(Binary files differ)
Modified: trunk/lvzip/source/lvzlib64.so
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lab...@us...> - 2019-09-03 21:03:04
|
Revision: 1597
http://sourceforge.net/p/opengtoolkit/svn/1597
Author: labviewer
Date: 2019-09-03 21:03:02 +0000 (Tue, 03 Sep 2019)
Log Message:
-----------
Latest Update to latest state from the nmoinvaz/minizip ver 1.2 github repository
Modified Paths:
--------------
trunk/lvzip/RT Images/LinuxRT_arm/liblvzlib.so
trunk/lvzip/RT Images/LinuxRT_x64/liblvzlib.so
trunk/lvzip/RT Images/Pharlap/lvzlib.dll
trunk/lvzip/RT Images/vxworks61/lvzlib.out
trunk/lvzip/RT Images/vxworks63/lvzlib.out
trunk/lvzip/source/lvzlib.dll
trunk/lvzip/source/lvzlib.framework.zip
trunk/lvzip/source/lvzlib.so
trunk/lvzip/source/lvzlib64.dll
trunk/lvzip/source/lvzlib64.so
Modified: trunk/lvzip/RT Images/LinuxRT_arm/liblvzlib.so
===================================================================
(Binary files differ)
Modified: trunk/lvzip/RT Images/LinuxRT_x64/liblvzlib.so
===================================================================
(Binary files differ)
Modified: trunk/lvzip/RT Images/Pharlap/lvzlib.dll
===================================================================
(Binary files differ)
Modified: trunk/lvzip/RT Images/vxworks61/lvzlib.out
===================================================================
(Binary files differ)
Modified: trunk/lvzip/RT Images/vxworks63/lvzlib.out
===================================================================
(Binary files differ)
Modified: trunk/lvzip/source/lvzlib.dll
===================================================================
(Binary files differ)
Modified: trunk/lvzip/source/lvzlib.framework.zip
===================================================================
(Binary files differ)
Modified: trunk/lvzip/source/lvzlib.so
===================================================================
(Binary files differ)
Modified: trunk/lvzip/source/lvzlib64.dll
===================================================================
(Binary files differ)
Modified: trunk/lvzip/source/lvzlib64.so
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lab...@us...> - 2019-09-03 21:16:37
|
Revision: 1598
http://sourceforge.net/p/opengtoolkit/svn/1598
Author: labviewer
Date: 2019-09-03 21:16:35 +0000 (Tue, 03 Sep 2019)
Log Message:
-----------
Updated to version 4.2.0
Modified Paths:
--------------
trunk/lvzip/PostInstall.vi
trunk/lvzip/build_support/lvzip.rev
trunk/lvzip/lvzip RT Images.iss
trunk/lvzip/lvzip.ogbld
trunk/lvzip/lvzip.ogpb
Modified: trunk/lvzip/PostInstall.vi
===================================================================
(Binary files differ)
Modified: trunk/lvzip/build_support/lvzip.rev
===================================================================
--- trunk/lvzip/build_support/lvzip.rev 2019-09-03 21:03:02 UTC (rev 1597)
+++ trunk/lvzip/build_support/lvzip.rev 2019-09-03 21:16:35 UTC (rev 1598)
@@ -1,8 +1,8 @@
[lvzip.ogbld]
-Version=2.5.2
-Build_Number=34
-Build_Date="9/5/2009 12:09:58 PM"
+Version=4.2.0
+Build_Number=38
+Build_Date="30-8-2019 00:38:59"
Status=OK
-Warnings=1
-Log_File=/D/Projects/OpenG/opengtoolkit/SVN_Folders/lvzip/built/lvzip.log
+Warnings=0
+Log_File="/P/Work/OpenG/Openg Toolkit/lvzip/built/lvzip.log"
Modified: trunk/lvzip/lvzip RT Images.iss
===================================================================
--- trunk/lvzip/lvzip RT Images.iss 2019-09-03 21:03:02 UTC (rev 1597)
+++ trunk/lvzip/lvzip RT Images.iss 2019-09-03 21:16:35 UTC (rev 1598)
@@ -3,12 +3,14 @@
[Setup]
AppName=OpenG ZIP Library for NI RT controllers
-AppVersion=4.1
-DefaultDirName={reg:HKLM32\Software\National Instruments\RT Images,Path|{pf32}\National Instruments\RT Images}\OpenG ZIP Tools\4.1.0
+AppVersion=4.2
+DefaultDirName={reg:HKLM32\Software\National Instruments\RT Images,Path|{pf32}\National Instruments\RT Images}\OpenG ZIP Tools\4.2.0
DisableDirPage=yes
SourceDir=RT Images
OutputDir=..\built\RT Images
PrivilegesRequired=admin
+UsePreviousAppDir=no
+OutputBaseFilename=ogsetup
[Files]
Source: "*.*"; DestDir: "{app}"; Flags: recursesubdirs
Modified: trunk/lvzip/lvzip.ogbld
===================================================================
--- trunk/lvzip/lvzip.ogbld 2019-09-03 21:03:02 UTC (rev 1597)
+++ trunk/lvzip/lvzip.ogbld 2019-09-03 21:16:35 UTC (rev 1598)
@@ -87,4 +87,14 @@
Save Level=0
Default Destination=FALSE
Apply New Password=""
+Namespace=""
+
+[Destination 3]
+Source Dir=fileutil.llb
+Target Dir=fileutil.llb
+Convert Target to LLB=FALSE
+Convert Target to EXE=FALSE
+Save Level=0
+Default Destination=FALSE
+Apply New Password=""
Namespace=""
\ No newline at end of file
Modified: trunk/lvzip/lvzip.ogpb
===================================================================
--- trunk/lvzip/lvzip.ogpb 2019-09-03 21:03:02 UTC (rev 1597)
+++ trunk/lvzip/lvzip.ogpb 2019-09-03 21:16:35 UTC (rev 1598)
@@ -3,7 +3,7 @@
[Package Name]
Name=oglib_lvzip
-Version=4.1.0
+Version=4.2.0
Release=1
Display Name="OpenG ZIP Library"
@@ -11,12 +11,12 @@
Description="The lvzip package contains several routines for operating on zip files.\0D\0A"
Summary="OpenG Zip Tools"
License="BSD (VIs), LGPL (Shared Library)"
-Copyright="1995-2014 Mark Adler, Jean-loup Gailly\0A1998-2014 Gilles Vollant\0A2002 - 2009 Christophe Salzmann, Jim Kring\0A2002 - 2015 Rolf Kalbermatter"
+Copyright="1995-2018 Mark Adler, Jean-loup Gailly\0A1998-2014 Gilles Vollant\0A2002 - 2009 Christophe Salzmann, Jim Kring\0A2002 - 2019 Rolf Kalbermatter"
Distribution="OpenG Toolkit"
Vendor=OpenG.org
URL=http://wiki.openg.org/oglib_lvzip
Packager="Jim Kring <ji...@ji...>"
-Release Notes="Version 4.1: Updated to zlib 1.2.8 and added support for new cRIO targets\0AVersion 4.0: New palette menu structure\0AVersion 2.5.2: Adds support for the new palette locations of OpenG 4.x packages and removes dependency on ogrsc_dynamicpalette package.\0D\0AVersion 2.5.1: Fixes issue with broken VIs in LabVIEW 2009 due to calling (now) private config utilities.\0D\0AVersion 2.5: Changes license of LabVIEW sources from LGPL to BSD, Adds Memory Stream VIs to the palettes, Optimizes ZLIB Extract All Files to Dir, Fixes potential problem where error such as out of disk on finishing to add a file into an archive might get lost meaning that a corrupted archive could result without the user being informed about it, Fixes issue preventing adding files specified by UNC network path to zip archive.\0D\0AVersion 2.4 adds support for direct memory stream handling.\0D\0AVersion 2.3 adds support for transparent Mac Resource file handling through MacBinary encoding.\0D\0AVersion 2.2 adds support for appending files to an existing archive, deleting files from an archive and password support for adding and extracting files."
+Release Notes="Version 4.2: Updated to zlib 1.2.11 and minizip 1.2 - June 14, 2019 and more 64-bit support\0AVersion 4.1: Updated to zlib 1.2.8 and added support for new cRIO targets\0AVersion 4.0: New palette menu structure\0AVersion 2.5.2: Adds support for the new palette locations of OpenG 4.x packages and removes dependency on ogrsc_dynamicpalette package.\0D\0AVersion 2.5.1: Fixes issue with broken VIs in LabVIEW 2009 due to calling (now) private config utilities.\0D\0AVersion 2.5: Changes license of LabVIEW sources from LGPL to BSD, Adds Memory Stream VIs to the palettes, Optimizes ZLIB Extract All Files to Dir, Fixes potential problem where error such as out of disk on finishing to add a file into an archive might get lost meaning that a corrupted archive could result without the user being informed about it, Fixes issue preventing adding files specified by UNC network path to zip archive.\0D\0AVersion 2.4 adds support for direct memory stream handling.\0D\0AVersion 2.3 adds support for transparent Mac Resource file handling through MacBinary encoding.\0D\0AVersion 2.2 adds support for appending files to an existing archive, deleting files from an archive and password support for adding and extracting files."
Demo=FALSE
System Package=FALSE
Sub Package=FALSE
@@ -49,7 +49,7 @@
Conflicts=""
[Files]
-Num File Groups=11
+Num File Groups=12
Source Dir=""
Target Dir=""
Passwords.<size(s)>=0
@@ -67,7 +67,6 @@
Replace Mode=Always
Num Files=1
File 0=*.mnu
-Locked 0=-1
[File Group 1]
Source Dir=source
@@ -78,7 +77,6 @@
Replace Mode=Always
Num Files=1
File 0=readme.txt
-Locked 0=-1
[File Group 2]
Source Dir=built/lvzip/lvzip.llb
@@ -89,9 +87,7 @@
Replace Mode=Always
Num Files=2
File 0=*.vi
-Locked 0=-1
File 1=*.ctl
-Locked 1=-1
[File Group 3]
Source Dir=built/lvzip/macbin.llb
@@ -102,11 +98,20 @@
Replace Mode=Always
Num Files=2
File 0=*.vi
-Locked 0=-1
File 1=*.ctl
-Locked 1=-1
[File Group 4]
+Source Dir=built/lvzip/fileutil.llb
+DirMode=0
+NameMode=0
+PPFix=""
+Target Dir=<OpenG.lib>/lvzip/fileutil.llb
+Replace Mode=Always
+Num Files=2
+File 0=*.vi
+File 1=*.ctl
+
+[File Group 5]
Source Dir=source
DirMode=0
NameMode=0
@@ -116,9 +121,8 @@
Exclusive_OS="Windows NT,Windows 9x,Windows x64"
Num Files=1
File 0=*.dll
-Locked 0=-1
-[File Group 5]
+[File Group 6]
Source Dir=source
DirMode=0
NameMode=0
@@ -128,9 +132,8 @@
Exclusive_OS="Linux,Linux x64"
Num Files=1
File 0=*.so
-Locked 0=-1
-[File Group 6]
+[File Group 7]
Source Dir=source
DirMode=0
NameMode=0
@@ -140,9 +143,8 @@
Exclusive_OS="Mac OS>=10"
Num Files=1
File 0=lvzlib.framework.zip
-Locked 0=-1
-[File Group 7]
+[File Group 8]
Source Dir="built/RT Images"
DirMode=0
NameMode=0
@@ -151,10 +153,9 @@
Replace Mode="If Newer"
Exclusive_OS="Windows NT,Windows 9x"
Num Files=1
-File 0=setup.exe
-Locked 0=-1
+File 0=ogsetup.exe
-[File Group 8]
+[File Group 9]
Source Dir="Dynamic Palette MNUs"
DirMode=0
NameMode=0
@@ -163,9 +164,8 @@
Replace Mode=Always
Num Files=1
File 0=oglib_lvzip.mnu
-Locked 0=-1
-[File Group 9]
+[File Group 10]
Source Dir="Dynamic Palette MNUs"
DirMode=0
NameMode=0
@@ -174,9 +174,8 @@
Replace Mode=Always
Num Files=1
File 0=oglib_lvzip.mnu
-Locked 0=-1
-[File Group 10]
+[File Group 11]
Source Dir="Dynamic Palette MNUs"
DirMode=0
NameMode=0
@@ -185,5 +184,4 @@
Replace Mode=Always
Num Files=1
File 0=oglib_lvzip.mnu
-Locked 0=-1
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|