linux-decnet-commit Mailing List for DECnet for Linux (Page 2)
Brought to you by:
chrissie_c,
ph3-der-loewe
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(20) |
Feb
(27) |
Mar
(25) |
Apr
(12) |
May
(2) |
Jun
(6) |
Jul
(36) |
Aug
(12) |
Sep
(12) |
Oct
(16) |
Nov
(5) |
Dec
(5) |
2003 |
Jan
(8) |
Feb
(9) |
Mar
(25) |
Apr
(18) |
May
(29) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
(10) |
Oct
(5) |
Nov
(3) |
Dec
(9) |
2004 |
Jan
(17) |
Feb
|
Mar
(9) |
Apr
|
May
(4) |
Jun
(1) |
Jul
(2) |
Aug
(21) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2005 |
Jan
(5) |
Feb
|
Mar
(13) |
Apr
|
May
(3) |
Jun
(1) |
Jul
|
Aug
|
Sep
(13) |
Oct
(83) |
Nov
(2) |
Dec
|
2006 |
Jan
(21) |
Feb
(1) |
Mar
(32) |
Apr
(31) |
May
(3) |
Jun
(1) |
Jul
|
Aug
(7) |
Sep
|
Oct
(1) |
Nov
(3) |
Dec
(13) |
2007 |
Jan
(1) |
Feb
(7) |
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(2) |
Aug
(20) |
Sep
|
Oct
|
Nov
|
Dec
(7) |
2008 |
Jan
(4) |
Feb
(13) |
Mar
(24) |
Apr
(18) |
May
(10) |
Jun
|
Jul
|
Aug
(40) |
Sep
(72) |
Oct
(61) |
Nov
(9) |
Dec
(2) |
2009 |
Jan
(6) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(7) |
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
|
Dec
(3) |
2010 |
Jan
|
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(41) |
Aug
(28) |
Sep
(2) |
Oct
(5) |
Nov
(4) |
Dec
|
2011 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Christine C. <chr...@us...> - 2010-08-19 08:39:11
|
Update of /cvsroot/linux-decnet/dnprogs/libvaxdata/solaris In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv3392/libvaxdata/solaris Modified Files: makefile.cc makefile.gcc makefile.solaris Log Message: New version of libvaxdata: The new version corrects the conversions for doubles (D, G) and double doubles (H); floats (F) were fine. For reference, the USGS web page for libvaxdata is http://pubs.usgs.gov/of/2005/1424/. Index: makefile.cc =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/solaris/makefile.cc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** makefile.cc 25 Oct 2005 07:32:13 -0000 1.1 --- makefile.cc 19 Aug 2010 08:39:00 -0000 1.2 *************** *** 3,7 **** # data for Solaris using Sun C (cc). # ! # Shell command syntax: make -f makefile.cc [ all | libvaxdata | clean ] # # -O (standard optimization) -Xc (strict ANSI) --- 3,9 ---- # data for Solaris using Sun C (cc). # ! # Shell command syntax: ! # ! # make -f makefile.cc [ all | libvaxdata | test | clean ] # # -O (standard optimization) -Xc (strict ANSI) Index: makefile.gcc =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/solaris/makefile.gcc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** makefile.gcc 25 Oct 2005 07:32:13 -0000 1.1 --- makefile.gcc 19 Aug 2010 08:39:00 -0000 1.2 *************** *** 3,7 **** # data for Solaris using GNU C (gcc). # ! # Shell command syntax: make -f makefile.gcc [ all | libvaxdata | clean ] # # -O3 (highest level of optimization) -ansi (strict ANSI) --- 3,9 ---- # data for Solaris using GNU C (gcc). # ! # Shell command syntax: ! # ! # make -f makefile.gcc [ all | libvaxdata | test | clean ] # # -O3 (highest level of optimization) -ansi (strict ANSI) Index: makefile.solaris =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/solaris/makefile.solaris,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** makefile.solaris 25 Oct 2005 07:32:13 -0000 1.1 --- makefile.solaris 19 Aug 2010 08:39:00 -0000 1.2 *************** *** 7,11 **** # [ CC="c_compiler" ] \ # # [ CFLAGS="c_compiler_flags" ] \ # ! # [ all | libvaxdata | clean ] # # # # # --- 7,11 ---- # [ CC="c_compiler" ] \ # # [ CFLAGS="c_compiler_flags" ] \ # ! # [ all | libvaxdata | test | clean ] # # # # # *************** *** 16,22 **** # ba...@us... # # # ! # Citation: Baker, Lawrence M., 2005, libvaxdata: VAX Data Format Conver- # ! # sion Routines, US Geological Survey, Open-File Report no. # ! # 2005-XXX, nn p. # # # # # --- 16,22 ---- # ba...@us... # # # ! # Citation: Baker, L.M., 2005, libvaxdata: VAX Data Format Conversion # ! # Routines: U.S. Geological Survey Open-File Report 2005-1424, # ! # v1.1 (http://pubs.usgs.gov/of/2005/1424/). # # # # # *************** *** 34,37 **** --- 34,38 ---- # 2-Sep-2005 L. M. Baker Original version (from make.libvfbb). # # 12-Oct-2005 L. M. Baker Use custom compile rule for is_little_endian. # + # 30-Jan-2010 L. M. Baker Add test program. # # # ################################################################################ *************** *** 64,68 **** VPATH = ../../src ! all: $(LIB_NAME) $(LIB_NAME): --- 65,69 ---- VPATH = ../../src ! all: $(LIB_NAME) test $(LIB_NAME): *************** *** 84,87 **** $(CC) -c -o $@ $? clean: ! cd $(ARCH) ; $(RM) -f $(LIB_NAME).a $(OBJS) --- 85,91 ---- $(CC) -c -o $@ $? + test: + cd $(ARCH) ; $(CC) -o test ../../src/test.c -L. -lvaxdata + clean: ! cd $(ARCH) ; $(RM) -f $(LIB_NAME).a test test.o $(OBJS) |
From: Christine C. <chr...@us...> - 2010-08-19 08:39:10
|
Update of /cvsroot/linux-decnet/dnprogs/libvaxdata/win32 In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv3392/libvaxdata/win32 Modified Files: cwmake.bat vcmake.bat Log Message: New version of libvaxdata: The new version corrects the conversions for doubles (D, G) and double doubles (H); floats (F) were fine. For reference, the USGS web page for libvaxdata is http://pubs.usgs.gov/of/2005/1424/. Index: cwmake.bat =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/win32/cwmake.bat,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** cwmake.bat 25 Oct 2005 07:32:13 -0000 1.1 --- cwmake.bat 19 Aug 2010 08:39:00 -0000 1.2 *************** *** 4,8 **** @REM data for Windows Win32 using Metrowerks CodeWarrior C (MWCC). @REM ! @REM Command Prompt command syntax: cwmake [ all | libvaxdata | clean ] @REM @REM --- 4,8 ---- @REM data for Windows Win32 using Metrowerks CodeWarrior C (MWCC). @REM ! @REM Command Prompt command syntax: cwmake [ all | libvaxdata | test | clean ] @REM @REM *************** *** 13,19 **** @REM ba...@us... @REM ! @REM Citation: Baker, Lawrence M., 2005, libvaxdata: VAX Data Format Conver- ! @REM sion Routines, US Geological Survey, Open-File Report no. ! @REM 2005-XXX, nn p. @REM @REM --- 13,19 ---- @REM ba...@us... @REM ! @REM Citation: Baker, L.M., 2005, libvaxdata: VAX Data Format Conversion ! @REM Routines: U.S. Geological Survey Open-File Report 2005- ! @REM 1424, v1.1 (http://pubs.usgs.gov/of/2005/1424/). @REM @REM *************** *** 30,42 **** @REM @REM 2-Sep-2005 L. M. Baker Original version (from LibVFBB.bat). @REM @SET LIB_NAME=LibVAXData @IF /I "%1" == "clean" GOTO :CLEAN ! @REM -cwd source (search source directory to resolve #includes) @REM -exceptions mw (enable synchronous exception handling) ! @REM -opt all (create fast code) -msext off (disable extensions) @SET CC=MWCC @SET CFLAGS=-cwd source -exceptions mw -opt all -msext off --- 30,45 ---- @REM @REM 2-Sep-2005 L. M. Baker Original version (from LibVFBB.bat). + @REM 30-Jan-2010 L. M. Baker Add test program. @REM @SET LIB_NAME=LibVAXData + @IF /I "%1" == "test" GOTO :TEST @IF /I "%1" == "clean" GOTO :CLEAN ! @REM -cwd source (search source directory to resolve #includes) @REM -exceptions mw (enable synchronous exception handling) ! @REM -opt all (create fast code) ! @REM -msext off (disable extensions) @SET CC=MWCC @SET CFLAGS=-cwd source -exceptions mw -opt all -msext off *************** *** 103,111 **** TO_VAX_D8@n.obj TO_VAX_G8@n.obj TO_VAX_H16@n.obj ^ IS_LITTLE_ENDIAN@n.obj @GOTO :EOF :CLEAN @ECHO ON ! DEL %LIB_NAME%.lib DEL from_vax_i2.obj from_vax_i4.obj from_vax_r4.obj from_vax_d8.obj ^ from_vax_g8.obj from_vax_h16.obj to_vax_i2.obj to_vax_i4.obj ^ --- 106,120 ---- TO_VAX_D8@n.obj TO_VAX_G8@n.obj TO_VAX_H16@n.obj ^ IS_LITTLE_ENDIAN@n.obj + @IF /I "%1" == "libvaxdata" @GOTO :EOF + + :TEST + @ECHO ON + MWCC -out:test.exe -cwd source -exceptions mw -opt all -msext off ^ + ..\src\test.c %LIB_NAME%.lib @GOTO :EOF :CLEAN @ECHO ON ! DEL %LIB_NAME%.lib test.exe test.obj DEL from_vax_i2.obj from_vax_i4.obj from_vax_r4.obj from_vax_d8.obj ^ from_vax_g8.obj from_vax_h16.obj to_vax_i2.obj to_vax_i4.obj ^ Index: vcmake.bat =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/win32/vcmake.bat,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** vcmake.bat 25 Oct 2005 07:32:13 -0000 1.1 --- vcmake.bat 19 Aug 2010 08:39:00 -0000 1.2 *************** *** 4,8 **** @REM data for Windows Win32 using Microsoft Visual C (CL). @REM ! @REM Command Prompt command syntax: vcmake [ all | libvaxdata | clean ] @REM @REM --- 4,8 ---- @REM data for Windows Win32 using Microsoft Visual C (CL). @REM ! @REM Command Prompt command syntax: vcmake [ all | libvaxdata | test | clean ] @REM @REM *************** *** 13,19 **** @REM ba...@us... @REM ! @REM Citation: Baker, Lawrence M., 2005, libvaxdata: VAX Data Format Conver- ! @REM sion Routines, US Geological Survey, Open-File Report no. ! @REM 2005-XXX, nn p. @REM @REM --- 13,19 ---- @REM ba...@us... @REM ! @REM Citation: Baker, L.M., 2005, libvaxdata: VAX Data Format Conversion ! @REM Routines: U.S. Geological Survey Open-File Report 2005- ! @REM 1424, v1.1 (http://pubs.usgs.gov/of/2005/1424/). @REM @REM *************** *** 30,42 **** @REM @REM 2-Sep-2005 L. M. Baker Original version (from LibVFBB.bat). @REM @SET LIB_NAME=LibVAXData @IF /I "%1" == "clean" GOTO :CLEAN ! @REM /nologo (suppress display of sign-on banner) /ML (single threaded using ! @REM MSVCRTD.LIB) /W3 (warning level) /GX (enable synchronous exception ! @REM handling) /O2 (create fast code) /Za (disable extensions, i.e., ANSI C) @SET CC=CL @SET CFLAGS=/nologo /ML /W3 /GX /O2 /Za --- 30,47 ---- @REM @REM 2-Sep-2005 L. M. Baker Original version (from LibVFBB.bat). + @REM 30-Jan-2010 L. M. Baker Add test program. @REM @SET LIB_NAME=LibVAXData + @IF /I "%1" == "test" GOTO :TEST @IF /I "%1" == "clean" GOTO :CLEAN ! @REM /nologo (suppress display of sign-on banner) ! @REM /ML (single threaded using MSVCRTD.LIB) ! @REM /W3 (warning level) ! @REM /GX (enable synchronous exception handling) ! @REM /O2 (create fast code) ! @REM /Za (disable extensions, i.e., ANSI C) @SET CC=CL @SET CFLAGS=/nologo /ML /W3 /GX /O2 /Za *************** *** 103,111 **** TO_VAX_D8@n.obj TO_VAX_G8@n.obj TO_VAX_H16@n.obj ^ IS_LITTLE_ENDIAN@n.obj @GOTO :EOF :CLEAN @ECHO ON ! DEL %LIB_NAME%.lib DEL from_vax_i2.obj from_vax_i4.obj from_vax_r4.obj from_vax_d8.obj ^ from_vax_g8.obj from_vax_h16.obj to_vax_i2.obj to_vax_i4.obj ^ --- 108,121 ---- TO_VAX_D8@n.obj TO_VAX_G8@n.obj TO_VAX_H16@n.obj ^ IS_LITTLE_ENDIAN@n.obj + @IF /I "%1" == "libvaxdata" @GOTO :EOF + + :TEST + @ECHO ON + CL /nologo /ML /W3 /GX /O2 /Za ..\src\test.c %LIB_NAME%.lib @GOTO :EOF :CLEAN @ECHO ON ! DEL %LIB_NAME%.lib test.exe test.obj DEL from_vax_i2.obj from_vax_i4.obj from_vax_r4.obj from_vax_d8.obj ^ from_vax_g8.obj from_vax_h16.obj to_vax_i2.obj to_vax_i4.obj ^ |
From: Christine C. <chr...@us...> - 2010-08-19 08:39:10
|
Update of /cvsroot/linux-decnet/dnprogs/libvaxdata In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv3392/libvaxdata Modified Files: libvaxdata.pdf Log Message: New version of libvaxdata: The new version corrects the conversions for doubles (D, G) and double doubles (H); floats (F) were fine. For reference, the USGS web page for libvaxdata is http://pubs.usgs.gov/of/2005/1424/. Index: libvaxdata.pdf =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/libvaxdata.pdf,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 Binary files /tmp/cvs1a04rT and /tmp/cvsplKUjS differ |
From: Christine C. <chr...@us...> - 2010-08-19 08:39:10
|
Update of /cvsroot/linux-decnet/dnprogs/libvaxdata/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv3392/libvaxdata/src Modified Files: convert_vax_data.c convert_vax_data.h Log Message: New version of libvaxdata: The new version corrects the conversions for doubles (D, G) and double doubles (H); floats (F) were fine. For reference, the USGS web page for libvaxdata is http://pubs.usgs.gov/of/2005/1424/. Index: convert_vax_data.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/src/convert_vax_data.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** convert_vax_data.c 9 Jan 2008 09:07:05 -0000 1.2 --- convert_vax_data.c 19 Aug 2010 08:39:00 -0000 1.3 *************** *** 92,96 **** * Add __alpha to the list of predefined macros * * that set IS_LITTLE_ENDIAN to 1. * ! * 5-Feb-2001 L. M. Baker Add prototypes for all functions (Matlab's * * MrC command on Macintosh requires them). * * 9-Mar-2001 L. M. Baker #include "convert_vax_data.h". * --- 92,96 ---- * Add __alpha to the list of predefined macros * * that set IS_LITTLE_ENDIAN to 1. * ! * 5-Feb-2001 L. M. Baker Add prototypes for all functions (MatLab's * * MrC command on Macintosh requires them). * [...1380 lines suppressed...] ! *out++ = vaxpart.c[2]; ! vaxpart.l = vaxpart2; ! *out++ = vaxpart.c[1]; ! *out++ = vaxpart.c[0]; ! *out++ = vaxpart.c[3]; ! *out++ = vaxpart.c[2]; ! vaxpart.l = vaxpart3; ! *out++ = vaxpart.c[1]; ! *out++ = vaxpart.c[0]; ! *out++ = vaxpart.c[3]; ! *out++ = vaxpart.c[2]; ! vaxpart.l = vaxpart4; ! *out++ = vaxpart.c[1]; ! *out++ = vaxpart.c[0]; ! *out++ = vaxpart.c[3]; ! *out++ = vaxpart.c[2]; #endif + } Index: convert_vax_data.h =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/src/convert_vax_data.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** convert_vax_data.h 9 Jan 2008 09:07:05 -0000 1.2 --- convert_vax_data.h 19 Aug 2010 08:39:00 -0000 1.3 *************** *** 75,79 **** * tion and (2) adjust the bias from VAX format to IEEE format. True zero * * [s=e=m=0] and dirty zero [s=e=0, m<>0] are special cases which must be * ! * recognized and handled separately. * * * * Numbers whose absolute value is too small to represent in the normalized * --- 75,80 ---- * tion and (2) adjust the bias from VAX format to IEEE format. True zero * * [s=e=m=0] and dirty zero [s=e=0, m<>0] are special cases which must be * ! * recognized and handled separately. Both VAX zeros are converted to IEEE * ! * +zero [s=e=m=0]. * * * * Numbers whose absolute value is too small to represent in the normalized * *************** *** 95,101 **** * +zero [s=e=m=0], -zero [s=1, e=m=0], infinities [s=X, e=all-1's, m=0], and * * NaNs [s=X, e=all-1's, m<>0] are special cases which must be recognized and * ! * handled separately. Infinities and NaNs cause a SIGFPE exception to be * ! * raised. The result returned has the largest VAX exponent [e=all-1's] and * ! * zero mantissa [m=0] with the same sign as the original. * * * * Numbers whose absolute value is too small to represent in the normalized * --- 96,103 ---- * +zero [s=e=m=0], -zero [s=1, e=m=0], infinities [s=X, e=all-1's, m=0], and * * NaNs [s=X, e=all-1's, m<>0] are special cases which must be recognized and * ! * handled separately. Both IEEE zeros are converted to VAX true zero * ! * [s=e=m=0]. Infinities and NaNs cause a SIGFPE exception to be raised. * ! * The result returned has the largest VAX exponent [e=all-1's] and zero * ! * mantissa [m=0] with the same sign as the original. * * * * Numbers whose absolute value is too small to represent in the normalized * *************** *** 183,192 **** * faults (+-infinity, +-NaN, overflow). * * 8-Nov-2005 L. M. Baker Move #define const if not __STDC__ from * ! * convert_vax_data.c * * * ******************************************************************************/ ! #ifndef _CONVERT_VAX_DATA ! #define _CONVERT_VAX_DATA #ifndef FORTRAN_LINKAGE --- 185,195 ---- * faults (+-infinity, +-NaN, overflow). * * 8-Nov-2005 L. M. Baker Move #define const if not __STDC__ from * ! * convert_vax_data.c. * ! * 27-Jan-2010 L. M. Baker Change guard to #ifndef _CONVERT_VAX_DATA_H. * * * ******************************************************************************/ ! #ifndef _CONVERT_VAX_DATA_H ! #define _CONVERT_VAX_DATA_H #ifndef FORTRAN_LINKAGE *************** *** 261,263 **** const int *count ); ! #endif /* #ifndef _CONVERT_VAX_DATA */ --- 264,266 ---- const int *count ); ! #endif /* _CONVERT_VAX_DATA_H */ |
From: Christine C. <chr...@us...> - 2010-08-19 08:39:10
|
Update of /cvsroot/linux-decnet/dnprogs/libvaxdata/linux In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv3392/libvaxdata/linux Modified Files: makefile.gcc makefile.icc makefile.linux makefile.pgcc Log Message: New version of libvaxdata: The new version corrects the conversions for doubles (D, G) and double doubles (H); floats (F) were fine. For reference, the USGS web page for libvaxdata is http://pubs.usgs.gov/of/2005/1424/. Index: makefile.gcc =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/linux/makefile.gcc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** makefile.gcc 25 Oct 2005 07:32:13 -0000 1.1 --- makefile.gcc 19 Aug 2010 08:39:00 -0000 1.2 *************** *** 3,7 **** # data for Linux using GNU C (gcc). # ! # Shell command syntax: make -f makefile.gcc [ all | libvaxdata | clean ] # # -O3 (highest level of optimization) -ansi (strict ANSI) --- 3,9 ---- # data for Linux using GNU C (gcc). # ! # Shell command syntax: ! # ! # make -f makefile.gcc [ all | libvaxdata | test | clean ] # # -O3 (highest level of optimization) -ansi (strict ANSI) Index: makefile.icc =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/linux/makefile.icc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** makefile.icc 25 Oct 2005 07:32:13 -0000 1.1 --- makefile.icc 19 Aug 2010 08:39:00 -0000 1.2 *************** *** 3,7 **** # data for Linux using Intel C (icc). # ! # Shell command syntax: make -f makefile.icc [ all | libvaxdata | clean ] # # -O3 (highest level of optimization) -ansi (strict ANSI) --- 3,9 ---- # data for Linux using Intel C (icc). # ! # Shell command syntax: ! # ! # make -f makefile.icc [ all | libvaxdata | test | clean ] # # -O3 (highest level of optimization) -ansi (strict ANSI) Index: makefile.linux =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/linux/makefile.linux,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** makefile.linux 2 Aug 2006 15:46:15 -0000 1.2 --- makefile.linux 19 Aug 2010 08:39:00 -0000 1.3 *************** *** 7,11 **** # [ CC="c_compiler" ] \ # # [ CFLAGS="c_compiler_flags" ] \ # ! # [ all | libvaxdata | clean ] # # # # # --- 7,11 ---- # [ CC="c_compiler" ] \ # # [ CFLAGS="c_compiler_flags" ] \ # ! # [ all | libvaxdata | test | clean ] # # # # # *************** *** 16,22 **** # ba...@us... # # # ! # Citation: Baker, Lawrence M., 2005, libvaxdata: VAX Data Format Conver- # ! # sion Routines, US Geological Survey, Open-File Report no. # ! # 2005-XXX, nn p. # # # # # --- 16,22 ---- # ba...@us... # # # ! # Citation: Baker, L.M., 2005, libvaxdata: VAX Data Format Conversion # ! # Routines: U.S. Geological Survey Open-File Report 2005-1424, # ! # v1.1 (http://pubs.usgs.gov/of/2005/1424/). # # # # # *************** *** 34,38 **** # 2-Sep-2005 L. M. Baker Original version (from make.libvfbb). # # 5-Oct-2005 L. M. Baker Use custom compile rule for is_little_endian. # ! # 2-Aug-2006 P. J. Caulfield Remove -c from ar command. # # # ################################################################################ --- 34,38 ---- # 2-Sep-2005 L. M. Baker Original version (from make.libvfbb). # # 5-Oct-2005 L. M. Baker Use custom compile rule for is_little_endian. # ! # 30-Jan-2010 L. M. Baker Add test program. # # # ################################################################################ *************** *** 48,51 **** --- 48,56 ---- #CFLAGS = -O3 -ansi + # PathScale C + # -O3 (highest level of optimization) -std=c89 (strict ANSI) + #CC = pathcc + #CFLAGS = -O3 -std=c89 + # Portland Group C # -O3 (highest level of optimization) -Xa (strict ANSI) *************** *** 70,74 **** VPATH = ../../src ! all: $(LIB_NAME) $(LIB_NAME): --- 75,79 ---- VPATH = ../../src ! all: $(LIB_NAME) test $(LIB_NAME): *************** *** 81,85 **** $(LIB_NAME).a: $(OBJS) ! ar -r $(LIB_NAME).a $(OBJS) ranlib $(LIB_NAME).a --- 86,90 ---- $(LIB_NAME).a: $(OBJS) ! ar -r -c $(LIB_NAME).a $(OBJS) ranlib $(LIB_NAME).a *************** *** 90,93 **** $(CC) -c -o $@ $? clean: ! cd $(ARCH) ; $(RM) -f $(LIB_NAME).a $(OBJS) --- 95,101 ---- $(CC) -c -o $@ $? + test: + cd $(ARCH) ; $(CC) -o test ../../src/test.c -L. -lvaxdata + clean: ! cd $(ARCH) ; $(RM) -f $(LIB_NAME).a test test.o $(OBJS) Index: makefile.pgcc =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libvaxdata/linux/makefile.pgcc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** makefile.pgcc 25 Oct 2005 07:32:13 -0000 1.1 --- makefile.pgcc 19 Aug 2010 08:39:00 -0000 1.2 *************** *** 3,7 **** # data for Linux using Portland Group C (pgcc). # ! # Shell command syntax: make -f makefile.pgcc [ all | libvaxdata | clean ] # # -O3 (highest level of optimization) -Xa (strict ANSI) --- 3,9 ---- # data for Linux using Portland Group C (pgcc). # ! # Shell command syntax: ! # ! # make -f makefile.pgcc [ all | libvaxdata | test | clean ] # # -O3 (highest level of optimization) -Xa (strict ANSI) |
From: ph3-der-loewe <ph3...@us...> - 2010-08-08 20:13:44
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2745 Modified Files: changelog Log Message: updated changelog Index: changelog =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/changelog,v retrieving revision 1.84 retrieving revision 1.85 diff -C2 -r1.84 -r1.85 *** changelog 5 Aug 2010 17:20:55 -0000 1.84 --- changelog 8 Aug 2010 20:13:33 -0000 1.85 *************** *** 4,10 **** Closes: #588185 * Added new tool node(1) - Node name lookup tool ! * Added support to libdnet_daemon to read /etc/nodes.{allow,deny} ! -- Philipp Schafft <li...@li...> Thu, 5 Aug 2010 19:20:01 +0200 dnprogs (2.52) unstable; urgency=low --- 4,12 ---- Closes: #588185 * Added new tool node(1) - Node name lookup tool ! * Added support to libdnet_daemon to read /etc/nodes.{allow,deny} ! * Fixed DoS bug in dnet_daemon() ! Closes: #592015 ! -- Philipp Schafft <li...@li...> Sat, 7 Aug 2010 00:25:57 +0200 dnprogs (2.52) unstable; urgency=low |
From: ph3-der-loewe <ph3...@us...> - 2010-08-05 15:29:50
|
Update of /cvsroot/linux-decnet/dnprogs/libdaemon In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv7757 Modified Files: dnet_daemon.c Log Message: fixed a bug with wrong local node::object address Index: dnet_daemon.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdaemon/dnet_daemon.c,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** dnet_daemon.c 5 Aug 2010 15:11:57 -0000 1.22 --- dnet_daemon.c 5 Aug 2010 15:29:41 -0000 1.23 *************** *** 970,973 **** --- 970,980 ---- namelen = sizeof(remotesa); + if (getsockname(newone, (struct sockaddr *)&sa, &namelen) == -1) { + dnet_reject(newone, DNSTAT_FAILED, NULL, 0); + DNETLOG((LOG_ALERT, "Can not read local sockname\n")); + } + + namelen = sizeof(remotesa); + if ( getpeername(newone, (struct sockaddr *) &remotesa, &namelen) == -1 ) { dnet_reject(newone, DNSTAT_FAILED, NULL, 0); |
From: ph3-der-loewe <ph3...@us...> - 2010-08-05 15:12:06
|
Update of /cvsroot/linux-decnet/dnprogs/libdaemon In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv5550 Modified Files: dnet_daemon.c Log Message: added symbolic consts for filenames Index: dnet_daemon.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdaemon/dnet_daemon.c,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -r1.21 -r1.22 *** dnet_daemon.c 5 Aug 2010 14:48:07 -0000 1.21 --- dnet_daemon.c 5 Aug 2010 15:11:57 -0000 1.22 *************** *** 55,58 **** --- 55,61 ---- #define USERNAME_LENGTH 65 + #define ALLOW_FILE SYSCONF_PREFIX "/etc/nodes.allow" + #define DENY_FILE SYSCONF_PREFIX "/etc/nodes.deny" + // Structure of an item in the DECnet proxy database // These lengths are generous to allow for regular expressions *************** *** 975,987 **** // first we check if we do not have a allow match, if we have we can continue. // if we don't have one we need to check the deny list. ! if ( dnet_priv_check(SYSCONF_PREFIX "/etc/nodes.allow", proc, &sa, &remotesa) != 1 ) { // check deny list. // if we have a nodes.deny file we continue, if we don't we ignore it. // we check for file existance not readability here to avoid // errors by wrong file permittions and such. ! if ( access(SYSCONF_PREFIX "/etc/nodes.deny", F_OK) == 0 ) { // check the file itself. We do not reject in case of no match (0). // in case of match (1) or error (-1) we reject. ! if ( dnet_priv_check(SYSCONF_PREFIX "/etc/nodes.allow", proc, &sa, &remotesa) != 0 ) { dnet_reject(newone, DNSTAT_ACCCONTROL, NULL, 0); continue; --- 978,990 ---- // first we check if we do not have a allow match, if we have we can continue. // if we don't have one we need to check the deny list. ! if ( dnet_priv_check(ALLOW_FILE, proc, &sa, &remotesa) != 1 ) { // check deny list. // if we have a nodes.deny file we continue, if we don't we ignore it. // we check for file existance not readability here to avoid // errors by wrong file permittions and such. ! if ( access(DENY_FILE, F_OK) == 0 ) { // check the file itself. We do not reject in case of no match (0). // in case of match (1) or error (-1) we reject. ! if ( dnet_priv_check(DENY_FILE, proc, &sa, &remotesa) != 0 ) { dnet_reject(newone, DNSTAT_ACCCONTROL, NULL, 0); continue; |
From: ph3-der-loewe <ph3...@us...> - 2010-08-05 14:48:16
|
Update of /cvsroot/linux-decnet/dnprogs/libdaemon In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2437 Modified Files: dnet_daemon.c Log Message: fixed segfault by moving the auto accept/reject into the final child section Index: dnet_daemon.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdaemon/dnet_daemon.c,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** dnet_daemon.c 5 Aug 2010 14:18:45 -0000 1.20 --- dnet_daemon.c 5 Aug 2010 14:48:07 -0000 1.21 *************** *** 993,1008 **** if (!object_db) load_dnetd_conf(); - if (object_db) { - // check if we are going to do auto accept or reject. - switch (thisobj->auto_accept) { - case 1: - dnet_accept(newone, 0, NULL, 0); - break; - case -1: - dnet_reject(newone, DNSTAT_REJECTED, NULL, 0); - continue; - } - } - ret = fork_and_setuid(newone); --- 993,996 ---- *************** *** 1022,1025 **** --- 1010,1025 ---- case 0: // child + if (object_db) { + // check if we are going to do auto accept or reject. + switch (thisobj->auto_accept) { + case 1: + dnet_accept(newone, 0, NULL, 0); + break; + case -1: + dnet_reject(newone, DNSTAT_REJECTED, NULL, 0); + exit(101); + break; + } + } return newone; break; |
From: ph3-der-loewe <ph3...@us...> - 2010-08-05 14:18:54
|
Update of /cvsroot/linux-decnet/dnprogs/libdaemon In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30416 Modified Files: dnet_daemon.c Log Message: added support for /etc/nodes.{allow,deny} ACL and fixed a possible DoS/remotly triggered forkbomb bug Index: dnet_daemon.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdaemon/dnet_daemon.c,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** dnet_daemon.c 12 Nov 2008 23:47:43 -0000 1.19 --- dnet_daemon.c 5 Aug 2010 14:18:45 -0000 1.20 *************** *** 837,841 **** int verbosity, bool do_fork) { ! struct sockaddr_dn sa; unsigned int namelen = sizeof(struct sockaddr_dn); bool bind_status = FALSE; --- 837,841 ---- int verbosity, bool do_fork) { ! struct sockaddr_dn sa, remotesa; unsigned int namelen = sizeof(struct sockaddr_dn); bool bind_status = FALSE; *************** *** 846,849 **** --- 846,850 ---- struct sigaction siga; sigset_t ss; + const char * proc = "(NONE)"; memset(&sa, 0, sizeof(sa)); *************** *** 963,970 **** if (newone > -1) { if (!object_db) load_dnetd_conf(); - ret = fork_and_setuid(newone); if (object_db) { switch (thisobj->auto_accept) { case 1: --- 964,998 ---- if (newone > -1) { + // check /etc/nodes.{allow,deny} if connection is allowed + namelen = sizeof(remotesa); + + if ( getpeername(newone, (struct sockaddr *) &remotesa, &namelen) == -1 ) { + dnet_reject(newone, DNSTAT_FAILED, NULL, 0); + DNETLOG((LOG_ALERT, "Can not read peers sockname\n")); + continue; + } + + // first we check if we do not have a allow match, if we have we can continue. + // if we don't have one we need to check the deny list. + if ( dnet_priv_check(SYSCONF_PREFIX "/etc/nodes.allow", proc, &sa, &remotesa) != 1 ) { + // check deny list. + // if we have a nodes.deny file we continue, if we don't we ignore it. + // we check for file existance not readability here to avoid + // errors by wrong file permittions and such. + if ( access(SYSCONF_PREFIX "/etc/nodes.deny", F_OK) == 0 ) { + // check the file itself. We do not reject in case of no match (0). + // in case of match (1) or error (-1) we reject. + if ( dnet_priv_check(SYSCONF_PREFIX "/etc/nodes.allow", proc, &sa, &remotesa) != 0 ) { + dnet_reject(newone, DNSTAT_ACCCONTROL, NULL, 0); + continue; + } + } + } + + // load dnetd's object databse if we don't have it already loaded. if (!object_db) load_dnetd_conf(); if (object_db) { + // check if we are going to do auto accept or reject. switch (thisobj->auto_accept) { case 1: *************** *** 977,980 **** --- 1005,1010 ---- } + ret = fork_and_setuid(newone); + switch (ret) { |
From: ph3-der-loewe <ph3...@us...> - 2010-08-05 12:39:26
|
Update of /cvsroot/linux-decnet/dnprogs/include/netdnet In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv18541/netdnet Modified Files: dnetdb.h Log Message: added prototype for dnet_priv_check() Index: dnetdb.h =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/include/netdnet/dnetdb.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** dnetdb.h 4 Oct 2008 23:40:35 -0000 1.8 --- dnetdb.h 5 Aug 2010 12:39:16 -0000 1.9 *************** *** 56,59 **** --- 56,62 ---- #define DNETLOG(x) dnetlog x + int dnet_priv_check(const char * file, const char * proc, + const struct sockaddr_dn * local, const struct sockaddr_dn * remote); + /* Used by dnet_ntop/dnet_pton */ #define DNET_ADDRSTRLEN 8 |
From: ph3-der-loewe <ph3...@us...> - 2010-08-05 11:53:16
|
Update of /cvsroot/linux-decnet/dnprogs/libdaemon In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv12961 Modified Files: dnet_priv_check.c Log Message: small security fix Index: dnet_priv_check.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdaemon/dnet_priv_check.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** dnet_priv_check.c 5 Aug 2010 11:43:42 -0000 1.2 --- dnet_priv_check.c 5 Aug 2010 11:53:07 -0000 1.3 *************** *** 40,46 **** struct nodeent * ne; ! sprintf(nodeaddr, "%i.%i", remote->sdn_add.a_addr[1] >> 2, remote->sdn_add.a_addr[0] + ((remote->sdn_add.a_addr[1] & 0x3) << 8)); if ( (fh = fopen(file, "r")) == NULL ) --- 40,47 ---- struct nodeent * ne; ! snprintf(nodeaddr, sizeof(nodeaddr), "%i.%i", remote->sdn_add.a_addr[1] >> 2, remote->sdn_add.a_addr[0] + ((remote->sdn_add.a_addr[1] & 0x3) << 8)); + nodeaddr[sizeof(nodeaddr)-1] = 0; if ( (fh = fopen(file, "r")) == NULL ) |
From: ph3-der-loewe <ph3...@us...> - 2010-08-05 11:43:53
|
Update of /cvsroot/linux-decnet/dnprogs/libdaemon In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11920 Modified Files: dnet_priv_check.c Log Message: first working version Index: dnet_priv_check.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdaemon/dnet_priv_check.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** dnet_priv_check.c 5 Aug 2010 11:09:11 -0000 1.1 --- dnet_priv_check.c 5 Aug 2010 11:43:42 -0000 1.2 *************** *** 18,19 **** --- 18,134 ---- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + + #include <string.h> + #include <stdio.h> + #include <stdlib.h> + #include <ctype.h> + + #include <netdnet/dn.h> + #include <netdnet/dnetdb.h> + + #define LINELEN 1024 + #define LISTDELM " \t," + + int dnet_priv_check(const char * file, const char * proc, + const struct sockaddr_dn * local, const struct sockaddr_dn * remote) { + FILE * fh; + char line[LINELEN]; + char * clients; + int match; + char * c; + char nodeaddr[12]; + struct nodeent * ne; + + sprintf(nodeaddr, "%i.%i", remote->sdn_add.a_addr[1] >> 2, + remote->sdn_add.a_addr[0] + + ((remote->sdn_add.a_addr[1] & 0x3) << 8)); + + if ( (fh = fopen(file, "r")) == NULL ) + return -1; + + // walk thru the file and search for matches + // if a match is found we return directly from within this loop. + while (fgets(line, LINELEN, fh) != NULL) { + // skip comments. + if ( line[0] == '#' ) + continue; + + // split into service/daemon and clients part + if ( (clients = strchr(line, ':')) == NULL ) + continue; + + *clients = 0; + clients++; + + // clean up lion endings + c = &clients[strlen(clients) - 1]; + if ( *c == '\n' ) + *c = 0; + + match = 0; // reset match to 'no match found' + + // now walk thru the list of services/daemons/objects and + // see if we have a match here. + c = strtok(line, LISTDELM); + while (c != NULL) { + if ( !strcmp(c, "ALL") ) { // ALL matches all services + match = 1; + } else if ( *c == '$' ) { // match local object + c++; + if ( *c == '#' ) { // if this starts with '#' we mach object number + if ( atoi(c) == local->sdn_objnum ) + match = 1; + } else { + if ( *c == '=' ) // new format start with '=' for object name. + c++; // but we continue if we don't find this to be + // compatible with old format. + if ( local->sdn_objnamel && + !strncmp(c, (char *)local->sdn_objname, local->sdn_objnamel) ) + match = 1; + } + } else if (!strcmp(c, proc)) { // match process/service/... name + match = 1; + } + + if ( match ) break; // end this loop if we have a match + + c = strtok(NULL, LISTDELM); // get next element + } + + if ( !match ) // continue with outer loop if we have no match + continue; + + // we now have a object match, search for a remode node match + + match = 0; // reset match so we can use it for remote node matching + + // now walk thru the list of clients: + c = strtok(clients, LISTDELM); + while (c != NULL) { + if ( !strcmp(c, "ALL") ) { // test for wildcard + match = 1; + } else if ( !strcmp(c, nodeaddr) ) { // test for numerical node address + match = 1; + } else if ( isalpha(*c) ) { // test for node name + if ( (ne = getnodebyname(c)) != NULL ) + if ( *(int16_t*)ne->n_addr == *(int16_t*)remote->sdn_add.a_addr ) + match = 1; + } + + // do we have a match? + if (match) { + // do cleanup and return. + fclose(fh); + return 1; + } + + // get next client + c = strtok(NULL, LISTDELM); + } + } + // no match was found. + + // cleanup + fclose(fh); + return 0; + } |
From: ph3-der-loewe <ph3...@us...> - 2010-08-05 11:09:22
|
Update of /cvsroot/linux-decnet/dnprogs/libdaemon In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv7790 Modified Files: Makefile Added Files: dnet_priv_check.c Log Message: added dummy file for dnet_priv_check() --- NEW FILE: dnet_priv_check.c --- /****************************************************************************** dnet_priv_check.c from libdnet_daemon Copyright (C) 2008-2010 Philipp 'ph3-der-loewe' Schafft <li...@li...> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdaemon/Makefile,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** Makefile 17 Sep 2008 15:33:36 -0000 1.12 --- Makefile 5 Aug 2010 11:09:09 -0000 1.13 *************** *** 1,6 **** include ../Makefile.common ! LIBOBJS=dnet_daemon.o dnetlog.o ! PICOBJS=dnet_daemon.po dnetlog.po MANPAGES3=dnet_daemon.3 --- 1,6 ---- include ../Makefile.common ! LIBOBJS=dnet_daemon.o dnetlog.o dnet_priv_check.o ! PICOBJS=dnet_daemon.po dnetlog.po dnet_priv_check.po MANPAGES3=dnet_daemon.3 |
From: ph3-der-loewe <ph3...@us...> - 2010-08-04 20:50:40
|
Update of /cvsroot/linux-decnet/dnprogs/debian In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv4911 Modified Files: changelog Log Message: added note on node(1) Index: changelog =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/debian/changelog,v retrieving revision 1.82 retrieving revision 1.83 diff -C2 -r1.82 -r1.83 *** changelog 18 Jul 2010 18:56:43 -0000 1.82 --- changelog 4 Aug 2010 20:50:30 -0000 1.83 *************** *** 3,8 **** * Done some more porting to FreeBSD, corrected Build-Depends for hurd-i386 Closes: #588185 ! -- Philipp Schafft <li...@li...> Sun, 18 Jul 2010 20:53:56 +0200 dnprogs (2.52) unstable; urgency=low --- 3,9 ---- * Done some more porting to FreeBSD, corrected Build-Depends for hurd-i386 Closes: #588185 + * Added new tool node(1) - Node name lookup tool ! -- Philipp Schafft <li...@li...> Wed, 4 Aug 2010 18:59:46 +0200 dnprogs (2.52) unstable; urgency=low |
From: ph3-der-loewe <ph3...@us...> - 2010-08-04 16:42:36
|
Update of /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2135 Modified Files: node.c Log Message: corrected copyright Index: node.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe/node.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** node.c 4 Aug 2010 16:41:02 -0000 1.6 --- node.c 4 Aug 2010 16:42:27 -0000 1.7 *************** *** 2,6 **** /* ! copyright 2008 Philipp 'ph3-der-loewe' Schafft <li...@li...> This program is free software; you can redistribute it and/or modify --- 2,6 ---- /* ! copyright 2008-2010 Philipp 'ph3-der-loewe' Schafft <li...@li...> This program is free software; you can redistribute it and/or modify |
From: ph3-der-loewe <ph3...@us...> - 2010-08-04 16:42:08
|
Update of /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe/man1 In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2074/man1 Added Files: node.1 Log Message: added manpage --- NEW FILE: node.1 --- .TH "node" "1" "August 2010" "dnprogs" "User Commands" .SH NAME node \- DECnet node name lookup tool .SH SYNOPSIS node {\-h|\-\-help} node [\-v] [\-m] {nodename|nodeaddress} .SH "DESCRIPTION" \fBnode\fR is a tool that does name lookup of DECnet nodes. It can lookup the node address from node name and node name from node address. .SH OPTIONS .SS "\-v" Be verbose. Prints useful (debug) messages. .SS "\-\-help, \-h" Prints a small help. .SH SEE ALSO \fBhost\fR(1). .SH AUTHORS This program is written by Philipp "ph3-der-loewe" Schafft <li...@li...>. |
From: ph3-der-loewe <ph3...@us...> - 2010-08-04 16:42:06
|
Update of /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2074 Modified Files: Makefile Log Message: added manpage Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** Makefile 4 Aug 2010 16:41:02 -0000 1.2 --- Makefile 4 Aug 2010 16:41:57 -0000 1.3 *************** *** 6,10 **** PROG3=node ! MANPAGES1=man1/dnetcat.1 man1/dnetstat.1 PROG1OBJS=dnetcat.o --- 6,10 ---- PROG3=node ! MANPAGES1=man1/dnetcat.1 man1/dnetstat.1 man1/node.1 PROG1OBJS=dnetcat.o |
From: ph3-der-loewe <ph3...@us...> - 2010-08-04 16:41:10
|
Update of /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1895 Modified Files: Makefile node.c Log Message: make node(1) build Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Makefile 5 Sep 2008 12:44:34 -0000 1.1 --- Makefile 4 Aug 2010 16:41:02 -0000 1.2 *************** *** 4,7 **** --- 4,8 ---- PROG1=dnetcat PROG2=dnetstat + PROG3=node MANPAGES1=man1/dnetcat.1 man1/dnetstat.1 *************** *** 9,14 **** PROG1OBJS=dnetcat.o PROG2OBJS=dnetstat.o ! all: $(PROG1) $(PROG2) $(PROG1): $(PROG1OBJS) $(DEPLIBDNET) $(DEPLIBDAEMON) --- 10,16 ---- PROG1OBJS=dnetcat.o PROG2OBJS=dnetstat.o + PROG3OBJS=node.o ! all: $(PROG1) $(PROG2) $(PROG3) $(PROG1): $(PROG1OBJS) $(DEPLIBDNET) $(DEPLIBDAEMON) *************** *** 18,21 **** --- 20,26 ---- $(CC) $(CFLAGS) -o $@ $(PROG2OBJS) $(LIBDNET) + $(PROG3): $(PROG3OBJS) $(DEPLIBDNET) + $(CC) $(CFLAGS) -o $@ $(PROG3OBJS) $(LIBDNET) + install: install -d $(prefix)/bin *************** *** 23,26 **** --- 28,32 ---- install -m 0755 $(STRIPBIN) $(PROG1) $(prefix)/bin install -m 0755 $(STRIPBIN) $(PROG2) $(prefix)/bin + install -m 0755 $(STRIPBIN) $(PROG3) $(prefix)/bin install -m 0644 $(MANPAGES1) $(manprefix)/man/man1 Index: node.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe/node.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** node.c 4 Aug 2010 16:31:45 -0000 1.5 --- node.c 4 Aug 2010 16:41:02 -0000 1.6 *************** *** 15,23 **** */ ! #include "lib.h" ! ! #include <signal.h> ! ! #include <sys/select.h> char * progname = NULL; --- 15,23 ---- */ ! #include <stdio.h> ! #include <string.h> ! #include <sys/socket.h> ! #include <netdnet/dn.h> ! #include <netdnet/dnetdb.h> char * progname = NULL; |
From: ph3-der-loewe <ph3...@us...> - 2010-08-04 16:31:54
|
Update of /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1052 Modified Files: node.c Log Message: removed useless check Index: node.c =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe/node.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** node.c 4 Aug 2010 16:30:24 -0000 1.4 --- node.c 4 Aug 2010 16:31:45 -0000 1.5 *************** *** 36,40 **** } - #ifdef HAVE_LIBDNET int main (int argc, char * argv[]) { int i; --- 36,39 ---- *************** *** 106,115 **** return 0; } - #else - int main (void) { - fprintf(stderr, "Error: no DECnet support compiled in\n"); - return 1; - } - #endif //ll --- 105,108 ---- |
From: ph3-der-loewe <ph3...@us...> - 2010-08-04 16:30:36
|
Update of /cvsroot/linux-decnet/dnprogs/contrib/ph3-der-loewe In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv809 Added Files: Tag: 1.4 node.c Log Message: Added node.c from dntools package --- NEW FILE: node.c --- //node.c: /* copyright 2008 Philipp 'ph3-der-loewe' Schafft <li...@li...> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or version 3. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ #include "lib.h" #include <signal.h> #include <sys/select.h> char * progname = NULL; void usage (void) { fprintf(stderr, "Usage:\n"); fprintf(stderr, "%s [OPTIONS] nodename\n", progname); fprintf(stderr, "or\n"); fprintf(stderr, "%s [OPTIONS] nodeaddress\n", progname); fprintf(stderr, "\n"); fprintf(stderr, "Options:\n"); fprintf(stderr, " -h --help this help\n" " -v be verbose\n" " -m display addresses as MAC address\n" ); } #ifdef HAVE_LIBDNET int main (int argc, char * argv[]) { int i; int verbose = 0; int show_mac = 0; char * k = NULL; char * node = NULL; struct nodeent * ne; int areaa, nodea = -1; char addr[2]; unsigned int mac[6]; progname = argv[0]; for (i = 1; i < argc; i++) { k = argv[i]; if ( strcmp(k, "-h") == 0 || strcmp(k, "--help") == 0 ) { usage(); return 0; } else if ( strcmp(k, "-v") == 0 ) { verbose++; } else if ( strcmp(k, "-m") == 0 ) { show_mac = 1; } else if ( node == NULL ) { node = k; } else { usage(); return 1; } } if ( node == NULL ) { usage(); return 1; } if ( sscanf(node, "%i.%i", &areaa, &nodea) != 2 ) { if ( sscanf(node, "%X:%X:%X:%X:%X:%X", mac+0, mac+1, mac+2, mac+3, mac+4, mac+5) == 6 ) { addr[0] = mac[4]; addr[1] = mac[5]; nodea = 0; } } else { addr[1] = (areaa << 2) + ((nodea >> 8) & 0x03); addr[0] = nodea & 0xFF; } if ( nodea != -1 ) { if ( (ne = getnodebyaddr(addr, 2, AF_DECnet)) == NULL ) { printf("Node %s not found\n", node); return 1; } else { printf("%s has name %s\n", node, ne->n_name); } } else { if ( (ne = getnodebyname(node)) == NULL ) { printf("Node %s not found\n", node); return 1; } else { if ( show_mac ) { printf("%s has address AA:00:04:00:%.2X:%.2X\n", node, ne->n_addr[0], ne->n_addr[1]); } else { printf("%s has address %i.%i\n", node, ne->n_addr[1] >> 2, ne->n_addr[0] + ((ne->n_addr[1] & 0x3) << 8)); } } } return 0; } #else int main (void) { fprintf(stderr, "Error: no DECnet support compiled in\n"); return 1; } #endif //ll |
From: ph3-der-loewe <ph3...@us...> - 2010-07-19 15:21:57
|
Update of /cvsroot/linux-decnet/dnprogs In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv29953 Modified Files: TODO Log Message: info on need to replace dnet_conn() Index: TODO =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/TODO,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** TODO 21 Mar 2006 17:04:43 -0000 1.8 --- TODO 19 Jul 2010 15:21:48 -0000 1.9 *************** *** 2,6 **** ---- ! fal Reports of problems with FAL on DECnet/E. Need to test with new RSX-friendly code. --- 2,6 ---- ---- ! fal: Reports of problems with FAL on DECnet/E. Need to test with new RSX-friendly code. *************** *** 16,17 **** --- 16,21 ---- Don't think it works to non-VMS machines + + libdnet: + Need a better function doing dnet_conn(), maybe we should provide one + opening a listen socket, too. |
From: ph3-der-loewe <ph3...@us...> - 2010-07-18 18:56:52
|
Update of /cvsroot/linux-decnet/dnprogs In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv18634 Modified Files: Makefile Makefile.common Log Message: some more porting to FreeBSD, hopfully got it working on FreeBSD... Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/Makefile,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -r1.42 -r1.43 *** Makefile 5 Jul 2010 22:06:07 -0000 1.42 --- Makefile 18 Jul 2010 18:56:42 -0000 1.43 *************** *** 9,19 **** DATE="$(shell date +'%Y%m%d')" SUBDIRS=include libdnet libdaemon libdap librms fal dndir dnsubmit dndel \ ! dncopy apps dntask dnlogin mail phone dnetd libvaxdata dnroute \ ! nml multinet scripts \ ! contrib/ph3-der-loewe ifneq ($(wildcard /usr/include/fuse.h),) ! SUBDIRS+=dapfs endif --- 9,25 ---- DATE="$(shell date +'%Y%m%d')" + SUBDIRS_LINUX=apps phone dnroute nml multinet + SUBDIRS=include libdnet libdaemon libdap librms fal dndir dnsubmit dndel \ ! dncopy dntask dnlogin mail dnetd libvaxdata \ ! scripts \ ! contrib/ph3-der-loewe \ ! ! ifeq ($(OSNAME),Linux) ! SUBDIRS+= $(SUBDIRS_LINUX) ! endif ifneq ($(wildcard /usr/include/fuse.h),) ! SUBDIRS+= dapfs endif Index: Makefile.common =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/Makefile.common,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -r1.57 -r1.58 *** Makefile.common 8 Jul 2010 08:54:46 -0000 1.57 --- Makefile.common 18 Jul 2010 18:56:43 -0000 1.58 *************** *** 63,66 **** --- 63,71 ---- # + # OS Name + # + OSNAME=$(shell uname -s) + + # # ARCH code taken from the Linux kernel sources. # |
From: ph3-der-loewe <ph3...@us...> - 2010-07-18 18:56:52
|
Update of /cvsroot/linux-decnet/dnprogs/dncopy In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv18634/dncopy Modified Files: unixfile.cc Log Message: some more porting to FreeBSD, hopfully got it working on FreeBSD... Index: unixfile.cc =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/dncopy/unixfile.cc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** unixfile.cc 6 Jul 2010 13:10:55 -0000 1.9 --- unixfile.cc 18 Jul 2010 18:56:43 -0000 1.10 *************** *** 22,25 **** --- 22,29 ---- #include "unixfile.h" + #ifdef __FreeBSD__ + #include <libgen.h> + #endif + // basename() is in libc but not in my header files //extern "C" char *basename(const char *); |
From: ph3-der-loewe <ph3...@us...> - 2010-07-18 18:56:52
|
Update of /cvsroot/linux-decnet/dnprogs/libdnet In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv18634/libdnet Modified Files: Makefile Log Message: some more porting to FreeBSD, hopfully got it working on FreeBSD... Index: Makefile =================================================================== RCS file: /cvsroot/linux-decnet/dnprogs/libdnet/Makefile,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** Makefile 5 Jul 2010 22:06:13 -0000 1.13 --- Makefile 18 Jul 2010 18:56:43 -0000 1.14 *************** *** 25,28 **** --- 25,34 ---- SHAREDLIB=$(LIBNAME).so.$(LIB_VERSION) + ifeq ($(OSNAME),FreeBSD) + COMPLIB=-lcompat + else + COMPLIB= + endif + all: libdnet.a $(SHAREDLIB) *************** *** 33,37 **** $(SHAREDLIB): ${PICOBJS} ! ${CC} ${LDFLAGS} -shared -o $@ ${PICOBJS} -Wl,-soname=libdnet.so.$(MAJOR_VERSION) ln -sf $(SHAREDLIB) $(LIBNAME).so.$(MAJOR_VERSION) ln -sf $(LIBNAME).so.$(MAJOR_VERSION) $(LIBNAME).so --- 39,43 ---- $(SHAREDLIB): ${PICOBJS} ! ${CC} ${LDFLAGS} -shared -o $@ ${PICOBJS} -Wl,-soname=libdnet.so.$(MAJOR_VERSION) $(COMPLIB) ln -sf $(SHAREDLIB) $(LIBNAME).so.$(MAJOR_VERSION) ln -sf $(LIBNAME).so.$(MAJOR_VERSION) $(LIBNAME).so |