ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
September 2007
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
19 participants
589 discussions
Start a n
N
ew thread
[greatlrd] 28768: implement RemoveFontMemResourceEx (left todo fix it in win32k)
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun Sep 2 16:18:34 2007 New Revision: 28768 URL:
http://svn.reactos.org/svn/reactos?rev=28768&view=rev
Log: implement RemoveFontMemResourceEx (left todo fix it in win32k) Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs…
============================================================================== --- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original) +++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Sun Sep 2 16:18:34 2007 @@ -1621,17 +1621,23 @@ } /* - * @unimplemented + * @implemented */ BOOL STDCALL -RemoveFontMemResourceEx( - HANDLE fh -) -{ - UNIMPLEMENTED; - SetLastError(ERROR_CALL_NOT_IMPLEMENTED); - return 0; +RemoveFontMemResourceEx(HANDLE fh) +{ + BOOL retValue=0; + + if (fh) + { + retValue = NtGdiRemoveFontMemResourceEx(fh); + } + else + { + SetLastError(ERROR_INVALID_PARAMETER); + } + return retValue; } /*
17 years, 3 months
1
0
0
0
[greatlrd] 28767: implement stub for NtGdiSelectBitmap, NtGdiSelectBrush, NtGdiSelectFont, NtGdiSelectPen, NtGdiSetBitmapAttributes, NtGdiSetFontEnumeration, NtGdiSetFontXform, NtGdiSetLinkedUFIs, NtGdiSetMagicColors, NtGdiGetDeviceWidth, NtGdiMirrorWindowOrg, NtGdiSetLayout, NtGdiStretchDIBitsInternal, NtGdiUnloadPrinterDriver, NtGdiUnmapMemFont
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun Sep 2 15:28:34 2007 New Revision: 28767 URL:
http://svn.reactos.org/svn/reactos?rev=28767&view=rev
Log: implement stub for NtGdiSelectBitmap, NtGdiSelectBrush, NtGdiSelectFont, NtGdiSelectPen, NtGdiSetBitmapAttributes, NtGdiSetFontEnumeration, NtGdiSetFontXform, NtGdiSetLinkedUFIs, NtGdiSetMagicColors, NtGdiGetDeviceWidth, NtGdiMirrorWindowOrg, NtGdiSetLayout, NtGdiStretchDIBitsInternal, NtGdiUnloadPrinterDriver, NtGdiUnmapMemFont Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c trunk/reactos/subsystems/win32/win32k/w32ksvc.db Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/st…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/stubs/stubs.c (original) +++ trunk/reactos/subsystems/win32/win32k/stubs/stubs.c Sun Sep 2 15:28:34 2007 @@ -3413,3 +3413,212 @@ return FALSE; } + /* + * @unimplemented + */ +HBITMAP +STDCALL +NtGdiSelectBitmap( + IN HDC hdc, + IN HBITMAP hbm) +{ + UNIMPLEMENTED; + return NULL; +} + + /* + * @unimplemented + */ +HBRUSH +STDCALL +NtGdiSelectBrush( + IN HDC hdc, + IN HBRUSH hbrush) +{ + UNIMPLEMENTED; + return NULL; +} + + /* + * @unimplemented + */ +HFONT +STDCALL +NtGdiSelectFont( + IN HDC hdc, + IN HFONT hf) +{ + UNIMPLEMENTED; + return NULL; +} + + /* + * @unimplemented + */ +HPEN +STDCALL +NtGdiSelectPen( + IN HDC hdc, + IN HPEN hpen) +{ + UNIMPLEMENTED; + return NULL; +} + + /* + * @unimplemented + */ +HBITMAP +STDCALL +NtGdiSetBitmapAttributes( + IN HBITMAP hbm, + IN DWORD dwFlags) +{ + UNIMPLEMENTED; + return NULL; +} + + /* + * @unimplemented + */ +ULONG +STDCALL +NtGdiSetFontEnumeration( + IN ULONG ulType) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiSetFontXform( + IN HDC hdc, + IN DWORD dwxScale, + IN DWORD dwyScale) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiSetLinkedUFIs( + IN HDC hdc, + IN PUNIVERSAL_FONT_ID pufiLinks, + IN ULONG uNumUFIs) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiSetMagicColors( + IN HDC hdc, + IN PALETTEENTRY peMagic, + IN ULONG Index) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +LONG +STDCALL +NtGdiGetDeviceWidth( + IN HDC hdc) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiMirrorWindowOrg( + IN HDC hdc) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +DWORD +STDCALL +NtGdiSetLayout( + IN HDC hdc, + IN LONG wox, + IN DWORD dwLayout) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +INT +STDCALL +NtGdiStretchDIBitsInternal( + IN HDC hdc, + IN INT xDst, + IN INT yDst, + IN INT cxDst, + IN INT cyDst, + IN INT xSrc, + IN INT ySrc, + IN INT cxSrc, + IN INT cySrc, + IN OPTIONAL LPBYTE pjInit, + IN LPBITMAPINFO pbmi, + IN DWORD dwUsage, + IN DWORD dwRop4, + IN UINT cjMaxInfo, + IN UINT cjMaxBits, + IN HANDLE hcmXform) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiUnloadPrinterDriver( + IN LPWSTR pDriverName, + IN ULONG cbDriverName) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiUnmapMemFont( + IN PVOID pvView) +{ + UNIMPLEMENTED; + return FALSE; +} + Modified: trunk/reactos/subsystems/win32/win32k/w32ksvc.db URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/w3…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/w32ksvc.db (original) +++ trunk/reactos/subsystems/win32/win32k/w32ksvc.db Sun Sep 2 15:28:34 2007 @@ -263,12 +263,12 @@ NtGdiSaveDC 1 NtGdiScaleViewportExtEx 6 NtGdiScaleWindowExtEx 6 -# NtGdiSelectBitmap 2 -# NtGdiSelectBrush 2 +NtGdiSelectBitmap 2 +NtGdiSelectBrush 2 NtGdiSelectClipPath 2 -# NtGdiSelectFont 2 -# NtGdiSelectPen 2 -# NtGdiSetBitmapAttributes 2 +NtGdiSelectFont 2 +NtGdiSelectPen 2 +NtGdiSetBitmapAttributes 2 NtGdiSetBitmapBits 3 NtGdiSetBitmapDimension 4 NtGdiSetBoundsRect 3 @@ -278,16 +278,16 @@ NtGdiSetColorSpace 2 NtGdiSetDeviceGammaRamp 2 NtGdiSetDIBitsToDeviceInternal 16 -# NtGdiSetFontEnumeration 1 -# NtGdiSetFontXform 3 +NtGdiSetFontEnumeration 1 +NtGdiSetFontXform 3 NtGdiSetIcmMode 3 -# NtGdiSetLinkedUFIs 3 -# NtGdiSetMagicColors 3 +NtGdiSetLinkedUFIs 3 +NtGdiSetMagicColors 3 NtGdiSetMetaRgn 1 NtGdiSetMiterLimit 3 -# NtGdiGetDeviceWidth 1 -# NtGdiMirrorWindowOrg 1 -# NtGdiSetLayout 3 +NtGdiGetDeviceWidth 1 +NtGdiMirrorWindowOrg 1 +NtGdiSetLayout 3 NtGdiSetPixel 4 NtGdiSetPixelFormat 2 NtGdiSetRectRgn 5 @@ -299,14 +299,14 @@ NtGdiStartDoc 4 NtGdiStartPage 1 NtGdiStretchBlt 12 -# NtGdiStretchDIBitsInternal 16 +NtGdiStretchDIBitsInternal 16 NtGdiStrokeAndFillPath 1 NtGdiStrokePath 1 NtGdiSwapBuffers 1 NtGdiTransformPoints 5 NtGdiTransparentBlt 11 -# NtGdiUnloadPrinterDriver 2 -# NtGdiUnmapMemFont 1 +NtGdiUnloadPrinterDriver 2 +NtGdiUnmapMemFont 1 NtGdiUnrealizeObject 1 NtGdiUpdateColors 1 NtGdiWidenPath 1
17 years, 3 months
1
0
0
0
[arty] 28766: Ignore elf.
by arty@svn.reactos.org
Author: arty Date: Sun Sep 2 15:14:58 2007 New Revision: 28766 URL:
http://svn.reactos.org/svn/reactos?rev=28766&view=rev
Log: Ignore elf. Modified: trunk/reactos/tools/rsym.c Modified: trunk/reactos/tools/rsym.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rsym.c?rev=28766&r1=…
============================================================================== --- trunk/reactos/tools/rsym.c (original) +++ trunk/reactos/tools/rsym.c Sun Sep 2 15:14:58 2007 @@ -795,6 +795,7 @@ void *FileData; ULONG RosSymLength; void *RosSymSection; + char elfhdr[4] = { '\177', 'E', 'L', 'F' }; if (3 != argc) { @@ -816,6 +817,9 @@ PEDosHeader = (PIMAGE_DOS_HEADER) FileData; if (PEDosHeader->e_magic != IMAGE_DOS_MAGIC || PEDosHeader->e_lfanew == 0L) { + /* Ignore elf */ + if (!memcmp(PEDosHeader, elfhdr, sizeof(elfhdr))) + exit(0); perror("Input file is not a PE image.\n"); free(FileData); exit(1);
17 years, 3 months
1
0
0
0
[arty] 28765: Ignore elf executables.
by arty@svn.reactos.org
Author: arty Date: Sun Sep 2 15:10:27 2007 New Revision: 28765 URL:
http://svn.reactos.org/svn/reactos?rev=28765&view=rev
Log: Ignore elf executables. Modified: trunk/reactos/tools/pefixup.c Modified: trunk/reactos/tools/pefixup.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/pefixup.c?rev=28765&…
============================================================================== --- trunk/reactos/tools/pefixup.c (original) +++ trunk/reactos/tools/pefixup.c Sun Sep 2 15:10:27 2007 @@ -229,6 +229,7 @@ { int fd_in, fd_out; long len; + char hdrbuf[4] = { }, elfhdr[4] = { '\177', 'E', 'L', 'F' }; PIMAGE_SECTION_HEADER section_header; PIMAGE_DATA_DIRECTORY data_dir; unsigned int i; @@ -276,6 +277,13 @@ printf("Can't open input file.\n"); return 1; } + + /* + * PowerPC ReactOS uses elf, so doesn't need pefixup + */ + len = read(fd_in, hdrbuf, sizeof(elfhdr)); + if (!memcmp(hdrbuf, elfhdr, sizeof(elfhdr))) + return 0; len = lseek(fd_in, 0, SEEK_END); if (len < sizeof(IMAGE_DOS_HEADER))
17 years, 3 months
1
0
0
0
[greatlrd] 28764: implement stub for NtGdiIcmBrushInfo, NtGdiInit, NtGdiMakeFontDir, NtGdiMakeInfoDC, NtGdiMonoBitmap, NtGdiMoveTo
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun Sep 2 14:50:25 2007 New Revision: 28764 URL:
http://svn.reactos.org/svn/reactos?rev=28764&view=rev
Log: implement stub for NtGdiIcmBrushInfo, NtGdiInit, NtGdiMakeFontDir, NtGdiMakeInfoDC, NtGdiMonoBitmap, NtGdiMoveTo Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c trunk/reactos/subsystems/win32/win32k/w32ksvc.db Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/st…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/stubs/stubs.c (original) +++ trunk/reactos/subsystems/win32/win32k/stubs/stubs.c Sun Sep 2 14:50:25 2007 @@ -3326,3 +3326,90 @@ return FALSE; } + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiIcmBrushInfo( + IN HDC hdc, + IN HBRUSH hbrush, + IN OUT PBITMAPINFO pbmiDIB, + IN OUT PVOID pvBits, + IN OUT ULONG *pulBits, + OUT OPTIONAL DWORD *piUsage, + OUT OPTIONAL BOOL *pbAlreadyTran, + IN ULONG Command) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiInit() +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +ULONG +STDCALL +NtGdiMakeFontDir( + IN FLONG flEmbed, + OUT PBYTE pjFontDir, + IN unsigned cjFontDir, + IN LPWSTR pwszPathname, + IN unsigned cjPathname) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiMakeInfoDC( + IN HDC hdc, + IN BOOL bSet) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiMonoBitmap( + IN HBITMAP hbm) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiMoveTo( + IN HDC hdc, + IN INT x, + IN INT y, + OUT OPTIONAL LPPOINT pptOut) +{ + UNIMPLEMENTED; + return FALSE; +} + Modified: trunk/reactos/subsystems/win32/win32k/w32ksvc.db URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/w3…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/w32ksvc.db (original) +++ trunk/reactos/subsystems/win32/win32k/w32ksvc.db Sun Sep 2 14:50:25 2007 @@ -225,18 +225,18 @@ NtGdiGetWidthTable 7 NtGdiGradientFill 6 NtGdiHfontCreate 5 -# NtGdiIcmBrushInfo 8 -# NtGdiInit 0 +NtGdiIcmBrushInfo 8 +NtGdiInit 0 NtGdiInitSpool 0 NtGdiIntersectClipRect 5 NtGdiInvertRgn 2 NtGdiLineTo 3 -# NtGdiMakeFontDir 5 -# NtGdiMakeInfoDC 2 +NtGdiMakeFontDir 5 +NtGdiMakeInfoDC 2 NtGdiMaskBlt 13 NtGdiModifyWorldTransform 3 -# NtGdiMonoBitmap 1 -# NtGdiMoveTo 4 +NtGdiMonoBitmap 1 +NtGdiMoveTo 4 NtGdiOffsetClipRgn 3 NtGdiOffsetRgn 3 NtGdiOpenDCW 7
17 years, 3 months
1
0
0
0
[greatlrd] 28763: implement stub for NtGdiGetEmbUFI, NtGdiGetUFIPathname, NtGdiGetEmbedFonts, NtGdiChangeGhostFont, NtGdiAddEmbFontToDC, NtGdiGetWidthTable, NtGdiSTROBJ_bEnum, NtGdiSTROBJ_bEnumPositionsOnly, NtGdiSTROBJ_bGetAdvanceWidths, NtGdiSTROBJ_vEnumStart, NtGdiSTROBJ_dwGetCodePage, NtGdiGetDhpdev
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun Sep 2 14:33:02 2007 New Revision: 28763 URL:
http://svn.reactos.org/svn/reactos?rev=28763&view=rev
Log: implement stub for NtGdiGetEmbUFI, NtGdiGetUFIPathname, NtGdiGetEmbedFonts, NtGdiChangeGhostFont, NtGdiAddEmbFontToDC, NtGdiGetWidthTable, NtGdiSTROBJ_bEnum, NtGdiSTROBJ_bEnumPositionsOnly, NtGdiSTROBJ_bGetAdvanceWidths, NtGdiSTROBJ_vEnumStart, NtGdiSTROBJ_dwGetCodePage, NtGdiGetDhpdev Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c trunk/reactos/subsystems/win32/win32k/w32ksvc.db Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/st…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/stubs/stubs.c (original) +++ trunk/reactos/subsystems/win32/win32k/stubs/stubs.c Sun Sep 2 14:33:02 2007 @@ -3154,3 +3154,175 @@ return NULL; } + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiSTROBJ_bEnum( + IN STROBJ *pstro, + OUT ULONG *pc, + OUT PGLYPHPOS *ppgpos) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiSTROBJ_bEnumPositionsOnly( + IN STROBJ *pstro, + OUT ULONG *pc, + OUT PGLYPHPOS *ppgpos) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiSTROBJ_bGetAdvanceWidths( + IN STROBJ*pstro, + IN ULONG iFirst, + IN ULONG c, + OUT POINTQF*pptqD) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +VOID +STDCALL +NtGdiSTROBJ_vEnumStart( + IN STROBJ *pstro) +{ + UNIMPLEMENTED; +} + + /* + * @unimplemented + */ +DWORD +STDCALL +NtGdiSTROBJ_dwGetCodePage( + IN STROBJ *pstro) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +DHPDEV +NtGdiGetDhpdev( + IN HDEV hdev) +{ + UNIMPLEMENTED; + return NULL; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiGetEmbUFI( + IN HDC hdc, + OUT PUNIVERSAL_FONT_ID pufi, + OUT OPTIONAL DESIGNVECTOR *pdv, + OUT ULONG *pcjDV, + OUT ULONG *pulBaseCheckSum, + OUT FLONG *pfl, + OUT KERNEL_PVOID *embFontID) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiGetUFIPathname( + IN PUNIVERSAL_FONT_ID pufi, + OUT OPTIONAL ULONG* pcwc, + OUT OPTIONAL LPWSTR pwszPathname, + OUT OPTIONAL ULONG* pcNumFiles, + IN FLONG fl, + OUT OPTIONAL BOOL *pbMemFont, + OUT OPTIONAL ULONG *pcjView, + OUT OPTIONAL PVOID pvView, + OUT OPTIONAL BOOL *pbTTC, + OUT OPTIONAL ULONG *piTTC) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +ULONG +STDCALL +NtGdiGetEmbedFonts( + VOID) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiChangeGhostFont( + IN KERNEL_PVOID *pfontID, + IN BOOL bLoad) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiAddEmbFontToDC( + IN HDC hdc, + IN VOID **pFontID) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiGetWidthTable( + IN HDC hdc, + IN ULONG cSpecial, + IN WCHAR *pwc, + IN ULONG cwc, + OUT USHORT *psWidth, + OUT OPTIONAL WIDTHDATA *pwd, + OUT FLONG *pflInfo) +{ + UNIMPLEMENTED; + return FALSE; +} + Modified: trunk/reactos/subsystems/win32/win32k/w32ksvc.db URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/w3…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/w32ksvc.db (original) +++ trunk/reactos/subsystems/win32/win32k/w32ksvc.db Sun Sep 2 14:33:02 2007 @@ -216,13 +216,13 @@ NtGdiGetTextMetricsW 3 NtGdiGetTransform 3 NtGdiGetUFI 6 -# NtGdiGetEmbUFI 7 -# NtGdiGetUFIPathname 10 -# NtGdiGetEmbedFonts 0 -# NtGdiChangeGhostFont 2 -# NtGdiAddEmbFontToDC 2 +NtGdiGetEmbUFI 7 +NtGdiGetUFIPathname 10 +NtGdiGetEmbedFonts 0 +NtGdiChangeGhostFont 2 +NtGdiAddEmbFontToDC 2 NtGdiGetFontUnicodeRanges 2 -# NtGdiGetWidthTable 7 +NtGdiGetWidthTable 7 NtGdiGradientFill 6 NtGdiHfontCreate 5 # NtGdiIcmBrushInfo 8 @@ -654,17 +654,17 @@ NtGdiFONTOBJ_pQueryGlyphAttrs 2 NtGdiFONTOBJ_pvTrueTypeFontFile 2 NtGdiFONTOBJ_cGetAllGlyphHandles 2 -# NtGdiSTROBJ_bEnum 3 -# NtGdiSTROBJ_bEnumPositionsOnly 3 -# NtGdiSTROBJ_bGetAdvanceWidths 4 -# NtGdiSTROBJ_vEnumStart 1 -# NtGdiSTROBJ_dwGetCodePage 1 +NtGdiSTROBJ_bEnum 3 +NtGdiSTROBJ_bEnumPositionsOnly 3 +NtGdiSTROBJ_bGetAdvanceWidths 4 +NtGdiSTROBJ_vEnumStart 1 +NtGdiSTROBJ_dwGetCodePage 1 NtGdiPATHOBJ_vGetBounds 2 NtGdiPATHOBJ_bEnum 2 NtGdiPATHOBJ_vEnumStart 1 NtGdiPATHOBJ_vEnumStartClipLines 4 NtGdiPATHOBJ_bEnumClipLines 3 -# NtGdiGetDhpdev 1 +NtGdiGetDhpdev 1 NtGdiEngCheckAbort 1 NtGdiHT_Get8BPPFormatPalette 4 NtGdiHT_Get8BPPMaskPalette 6
17 years, 3 months
1
0
0
0
[greatlrd] 28762: Implement stub for NtGdiGetServerMetaFileBits, NtGdiGetStats, NtGdiPolyTextOutW, NtGdiRemoveFontResourceW, NtGdiRemoveFontMemResourceEx, NtGdiSetBrushAttributes, NtGdiSetupPublicCFONT, NtGdiSetVirtualResolution, NtGdiSetSizeDevice, NtGdiXLATEOBJ_cGetPalette, NtGdiXLATEOBJ_iXlate, NtGdiXLATEOBJ_hGetColorTransform, NtGdiXFORMOBJ_bApplyXform, NtGdiXFORMOBJ_iGetXform
by greatlrd@svn.reactos.org
Author: greatlrd Date: Sun Sep 2 14:14:28 2007 New Revision: 28762 URL:
http://svn.reactos.org/svn/reactos?rev=28762&view=rev
Log: Implement stub for NtGdiGetServerMetaFileBits, NtGdiGetStats, NtGdiPolyTextOutW, NtGdiRemoveFontResourceW, NtGdiRemoveFontMemResourceEx, NtGdiSetBrushAttributes, NtGdiSetupPublicCFONT, NtGdiSetVirtualResolution, NtGdiSetSizeDevice, NtGdiXLATEOBJ_cGetPalette, NtGdiXLATEOBJ_iXlate, NtGdiXLATEOBJ_hGetColorTransform, NtGdiXFORMOBJ_bApplyXform, NtGdiXFORMOBJ_iGetXform Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c trunk/reactos/subsystems/win32/win32k/w32ksvc.db Modified: trunk/reactos/subsystems/win32/win32k/stubs/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/st…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/stubs/stubs.c (original) +++ trunk/reactos/subsystems/win32/win32k/stubs/stubs.c Sun Sep 2 14:14:28 2007 @@ -2947,3 +2947,210 @@ UNIMPLEMENTED; } + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiRemoveFontMemResourceEx( + IN HANDLE hMMFont) +{ + UNIMPLEMENTED; + return FALSE; +} + + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiRemoveFontResourceW( + IN WCHAR *pwszFiles, + IN ULONG cwc, + IN ULONG cFiles, + IN ULONG fl, + IN DWORD dwPidTid, + IN OPTIONAL DESIGNVECTOR *pdv) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiPolyTextOutW( + IN HDC hdc, + IN POLYTEXTW *pptw, + IN UINT cStr, + IN DWORD dwCodePage) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +ULONG +STDCALL +NtGdiGetServerMetaFileBits( + IN HANDLE hmo, + IN ULONG cjData, + OUT OPTIONAL LPBYTE pjData, + OUT PDWORD piType, + OUT PDWORD pmm, + OUT PDWORD pxExt, + OUT PDWORD pyExt) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +NTSTATUS +STDCALL +NtGdiGetStats( + IN HANDLE hProcess, + IN INT iIndex, + IN INT iPidType, + OUT PVOID pResults, + IN UINT cjResultSize) +{ + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; +} + + + /* + * @unimplemented + */ +ULONG +STDCALL +NtGdiXLATEOBJ_cGetPalette( + IN XLATEOBJ *pxlo, + IN ULONG iPal, + IN ULONG cPal, + OUT ULONG *pPal) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +ULONG +STDCALL +NtGdiXLATEOBJ_iXlate( + IN XLATEOBJ *pxlo, + IN ULONG iColor) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +HANDLE +STDCALL +NtGdiXLATEOBJ_hGetColorTransform( + IN XLATEOBJ *pxlo) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiXFORMOBJ_bApplyXform( + IN XFORMOBJ *pxo, + IN ULONG iMode, + IN ULONG cPoints, + IN PVOID pvIn, + OUT PVOID pvOut) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +ULONG +STDCALL +NtGdiXFORMOBJ_iGetXform( + IN XFORMOBJ *pxo, + OUT OPTIONAL XFORML *pxform) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiSetSizeDevice( + IN HDC hdc, + IN INT cxVirtualDevice, + IN INT cyVirtualDevice) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +BOOL +STDCALL +NtGdiSetVirtualResolution( + IN HDC hdc, + IN INT cxVirtualDevicePixel, + IN INT cyVirtualDevicePixel, + IN INT cxVirtualDeviceMm, + IN INT cyVirtualDeviceMm) +{ + UNIMPLEMENTED; + return FALSE; +} + + /* + * @unimplemented + */ +INT +STDCALL +NtGdiSetupPublicCFONT( + IN HDC hdc, + IN OPTIONAL HFONT hf, + IN ULONG ulAve) +{ + UNIMPLEMENTED; + return 0; +} + + /* + * @unimplemented + */ +HBRUSH +STDCALL +NtGdiSetBrushAttributes( + IN HBRUSH hbm, + IN DWORD dwFlags) +{ + UNIMPLEMENTED; + return NULL; +} + Modified: trunk/reactos/subsystems/win32/win32k/w32ksvc.db URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/w3…
============================================================================== --- trunk/reactos/subsystems/win32/win32k/w32ksvc.db (original) +++ trunk/reactos/subsystems/win32/win32k/w32ksvc.db Sun Sep 2 14:14:28 2007 @@ -203,9 +203,9 @@ NtGdiGetRealizationInfo 3 NtGdiGetRegionData 3 NtGdiGetRgnBox 2 -# NtGdiGetServerMetaFileBits 7 +NtGdiGetServerMetaFileBits 7 NtGdiGetSpoolMessage 4 -# NtGdiGetStats 5 +NtGdiGetStats 5 NtGdiGetStockObject 1 NtGdiGetStringBitmapW 5 NtGdiGetSystemPaletteUse 1 @@ -246,7 +246,7 @@ NtGdiPlgBlt 11 NtGdiPolyDraw 4 NtGdiPolyPolyDraw 5 -# NtGdiPolyTextOutW 4 +NtGdiPolyTextOutW 4 NtGdiPtInRegion 3 NtGdiPtVisible 3 NtGdiQueryFonts 3 @@ -254,8 +254,8 @@ NtGdiRectangle 5 NtGdiRectInRegion 2 NtGdiRectVisible 2 -# NtGdiRemoveFontResourceW 6 -# NtGdiRemoveFontMemResourceEx 1 +NtGdiRemoveFontResourceW 6 +NtGdiRemoveFontMemResourceEx 1 NtGdiResetDC 5 NtGdiResizePalette 2 NtGdiRestoreDC 2 @@ -272,7 +272,7 @@ NtGdiSetBitmapBits 3 NtGdiSetBitmapDimension 4 NtGdiSetBoundsRect 3 -# NtGdiSetBrushAttributes 2 +NtGdiSetBrushAttributes 2 NtGdiSetBrushOrg 4 NtGdiSetColorAdjustment 2 NtGdiSetColorSpace 2 @@ -293,9 +293,9 @@ NtGdiSetRectRgn 5 NtGdiSetSystemPaletteUse 2 NtGdiSetTextJustification 3 -# NtGdiSetupPublicCFONT 3 -# NtGdiSetVirtualResolution 5 -# NtGdiSetSizeDevice 3 +NtGdiSetupPublicCFONT 3 +NtGdiSetVirtualResolution 5 +NtGdiSetSizeDevice 3 NtGdiStartDoc 4 NtGdiStartPage 1 NtGdiStretchBlt 12 @@ -631,9 +631,9 @@ NtGdiEngTransparentBlt 8 NtGdiEngTextOut 10 NtGdiEngStretchBltROP 13 -# NtGdiXLATEOBJ_cGetPalette 4 -# NtGdiXLATEOBJ_iXlate 2 -# NtGdiXLATEOBJ_hGetColorTransform 1 +NtGdiXLATEOBJ_cGetPalette 4 +NtGdiXLATEOBJ_iXlate 2 +NtGdiXLATEOBJ_hGetColorTransform 1 NtGdiCLIPOBJ_bEnum 3 NtGdiCLIPOBJ_cEnumStart 5 NtGdiCLIPOBJ_ppoGetPath 1 @@ -644,8 +644,8 @@ NtGdiBRUSHOBJ_pvAllocRbrush 2 NtGdiBRUSHOBJ_pvGetRbrush 1 NtGdiBRUSHOBJ_hGetColorTransform 1 -# NtGdiXFORMOBJ_bApplyXform 5 -# NtGdiXFORMOBJ_iGetXform 2 +NtGdiXFORMOBJ_bApplyXform 5 +NtGdiXFORMOBJ_iGetXform 2 NtGdiFONTOBJ_vGetInfo 3 NtGdiFONTOBJ_pxoGetXform 1 NtGdiFONTOBJ_cGetGlyphs 5
17 years, 3 months
1
0
0
0
[arty] 28761: Empty OARCH.
by arty@svn.reactos.org
Author: arty Date: Sun Sep 2 13:59:45 2007 New Revision: 28761 URL:
http://svn.reactos.org/svn/reactos?rev=28761&view=rev
Log: Empty OARCH. Modified: trunk/reactos/config-ppc.template.rbuild Modified: trunk/reactos/config-ppc.template.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/config-ppc.template.rbuild…
============================================================================== --- trunk/reactos/config-ppc.template.rbuild (original) +++ trunk/reactos/config-ppc.template.rbuild Sun Sep 2 13:59:45 2007 @@ -26,7 +26,7 @@ See GCC manual for more CPU names and which CPUs GCC can optimize for. --> -<property name="OARCH" value="i486" /> +<property name="OARCH" value="" /> <!--
17 years, 3 months
1
0
0
0
[arty] 28760: Small change to make OARCH optional.
by arty@svn.reactos.org
Author: arty Date: Sun Sep 2 13:59:11 2007 New Revision: 28760 URL:
http://svn.reactos.org/svn/reactos?rev=28760&view=rev
Log: Small change to make OARCH optional. Modified: trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp Modified: trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw…
============================================================================== --- trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp (original) +++ trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp Sun Sep 2 13:59:11 2007 @@ -426,7 +426,9 @@ fprintf ( fMakefile, "PROJECT_LFLAGS := %s\n", GenerateProjectLFLAGS ().c_str () ); fprintf ( fMakefile, "PROJECT_CFLAGS += -Wall\n" ); + fprintf ( fMakefile, "ifneq ($(OARCH),)\n" ); fprintf ( fMakefile, "PROJECT_CFLAGS += -march=$(OARCH)\n" ); + fprintf ( fMakefile, "endif\n" ); fprintf ( fMakefile, "PROJECT_CFLAGS += $(PROJECT_GCCOPTIONS)\n" ); fprintf ( fMakefile, "\n" ); }
17 years, 3 months
1
0
0
0
[arty] 28759: Remove hack-coff and le2be. We make an elf booter now.
by arty@svn.reactos.org
Author: arty Date: Sun Sep 2 13:17:46 2007 New Revision: 28759 URL:
http://svn.reactos.org/svn/reactos?rev=28759&view=rev
Log: Remove hack-coff and le2be. We make an elf booter now. Removed: trunk/reactos/tools/hack-coff.c trunk/reactos/tools/ppc-le2be.c trunk/reactos/tools/rs6000.h Removed: trunk/reactos/tools/hack-coff.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/hack-coff.c?rev=2875…
============================================================================== --- trunk/reactos/tools/hack-coff.c (original) +++ trunk/reactos/tools/hack-coff.c (removed) @@ -1,83 +1,0 @@ -/* - * hack-coff.c - hack the header of an xcoff file to fill in - * a few fields needed by the Open Firmware xcoff loader on - * Power Macs but not initialized by objcopy. - * - * Copyright (C) Paul Mackerras 1997. - * - * 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 (at your option) any later version. - */ -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> -#include <fcntl.h> -#include <string.h> -#include "rs6000.h" - -#define AOUT_MAGIC 0x010b - -#define get_16be(x) ((((unsigned char *)(x))[0] << 8) \ - + ((unsigned char *)(x))[1]) -#define put_16be(x, v) (((unsigned char *)(x))[0] = (v) >> 8, \ - ((unsigned char *)(x))[1] = (v) & 0xff) -#define get_32be(x) ((((unsigned char *)(x))[0] << 24) \ - + (((unsigned char *)(x))[1] << 16) \ - + (((unsigned char *)(x))[2] << 8) \ - + ((unsigned char *)(x))[3]) - -int main(int ac, char **av) -{ - int fd; - int i, nsect; - int aoutsz; - struct external_filehdr fhdr; - AOUTHDR aout; - struct external_scnhdr shdr; - - if (ac != 2) { - fprintf(stderr, "Usage: hack-coff coff-file\n"); - exit(1); - } - if ((fd = open(av[1], 2)) == -1) { - perror(av[2]); - exit(1); - } - if (read(fd, &fhdr, sizeof(fhdr)) != sizeof(fhdr)) - goto readerr; - i = get_16be(fhdr.f_magic); - if (i != U802TOCMAGIC && i != U802WRMAGIC && i != U802ROMAGIC) { - fprintf(stderr, "%s: not an xcoff file\n", av[1]); - exit(1); - } - aoutsz = get_16be(fhdr.f_opthdr); - if (read(fd, &aout, aoutsz) != aoutsz) - goto readerr; - nsect = get_16be(fhdr.f_nscns); - for (i = 0; i < nsect; ++i) { - if (read(fd, &shdr, sizeof(shdr)) != sizeof(shdr)) - goto readerr; - if (strcmp(shdr.s_name, ".text") == 0) { - put_16be(aout.o_snentry, i+1); - put_16be(aout.o_sntext, i+1); - } else if (strcmp(shdr.s_name, ".data") == 0) { - put_16be(aout.o_sndata, i+1); - } else if (strcmp(shdr.s_name, ".bss") == 0) { - put_16be(aout.o_snbss, i+1); - } - } - put_16be(aout.magic, AOUT_MAGIC); - if (lseek(fd, (long) sizeof(struct external_filehdr), 0) == -1 - || write(fd, &aout, aoutsz) != aoutsz) { - fprintf(stderr, "%s: write error\n", av[1]); - exit(1); - } - close(fd); - exit(0); - -readerr: - fprintf(stderr, "%s: read error or file too short\n", av[1]); - exit(1); -} Removed: trunk/reactos/tools/ppc-le2be.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/ppc-le2be.c?rev=2875…
============================================================================== --- trunk/reactos/tools/ppc-le2be.c (original) +++ trunk/reactos/tools/ppc-le2be.c (removed) @@ -1,25 +1,0 @@ -#include <stdio.h> - -int main( int argc, char **argv ) { - char buf[8]; - int rlen, i; - FILE *fin = NULL, *fout = NULL; - - if( argc < 3 ) return 1; - - fin = fopen( argv[1], "rb" ); - - if( fin ) - fout = fopen( argv[2], "wb" ); - if( !fout ) return 1; - - do { - rlen = fread( buf, 1, 8, fin ); - for( i = 7; rlen > 0 && i >= 0; i-- ) fputc( buf[i], fout ); - } - while( rlen == 8 ); - - fclose( fout ); - - return 0; -} Removed: trunk/reactos/tools/rs6000.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rs6000.h?rev=28758&v…
============================================================================== --- trunk/reactos/tools/rs6000.h (original) +++ trunk/reactos/tools/rs6000.h (removed) @@ -1,243 +1,0 @@ -/* IBM RS/6000 "XCOFF" file definitions for BFD. - Copyright (C) 1990, 1991 Free Software Foundation, Inc. - FIXME: Can someone provide a transliteration of this name into ASCII? - Using the following chars caused a compiler warning on HIUX (so I replaced - them with octal escapes), and isn't useful without an understanding of what - character set it is. - Written by Mimi Ph\373\364ng-Th\345o V\365 of IBM - and John Gilmore of Cygnus Support. */ - -/********************** FILE HEADER **********************/ - -struct external_filehdr { - char f_magic[2]; /* magic number */ - char f_nscns[2]; /* number of sections */ - char f_timdat[4]; /* time & date stamp */ - char f_symptr[4]; /* file pointer to symtab */ - char f_nsyms[4]; /* number of symtab entries */ - char f_opthdr[2]; /* sizeof(optional hdr) */ - char f_flags[2]; /* flags */ -}; - - /* IBM RS/6000 */ -#define U802WRMAGIC 0730 /* writeable text segments **chh** */ -#define U802ROMAGIC 0735 /* readonly sharable text segments */ -#define U802TOCMAGIC 0737 /* readonly text segments and TOC */ - -#define BADMAG(x) \ - ((x).f_magic != U802ROMAGIC && (x).f_magic != U802WRMAGIC && \ - (x).f_magic != U802TOCMAGIC) - -#define FILHDR struct external_filehdr -#define FILHSZ 20 - - -/********************** AOUT "OPTIONAL HEADER" **********************/ - - -typedef struct -{ - unsigned char magic[2]; /* type of file */ - unsigned char vstamp[2]; /* version stamp */ - unsigned char tsize[4]; /* text size in bytes, padded to FW bdry */ - unsigned char dsize[4]; /* initialized data " " */ - unsigned char bsize[4]; /* uninitialized data " " */ - unsigned char entry[4]; /* entry pt. */ - unsigned char text_start[4]; /* base of text used for this file */ - unsigned char data_start[4]; /* base of data used for this file */ - unsigned char o_toc[4]; /* address of TOC */ - unsigned char o_snentry[2]; /* section number of entry point */ - unsigned char o_sntext[2]; /* section number of .text section */ - unsigned char o_sndata[2]; /* section number of .data section */ - unsigned char o_sntoc[2]; /* section number of TOC */ - unsigned char o_snloader[2]; /* section number of .loader section */ - unsigned char o_snbss[2]; /* section number of .bss section */ - unsigned char o_algntext[2]; /* .text alignment */ - unsigned char o_algndata[2]; /* .data alignment */ - unsigned char o_modtype[2]; /* module type (??) */ - unsigned char o_cputype[2]; /* cpu type */ - unsigned char o_maxstack[4]; /* max stack size (??) */ - unsigned char o_maxdata[4]; /* max data size (??) */ - unsigned char o_resv2[12]; /* reserved */ -} -AOUTHDR; - -#define AOUTSZ 72 -#define SMALL_AOUTSZ (28) -#define AOUTHDRSZ 72 - -#define RS6K_AOUTHDR_OMAGIC 0x0107 /* old: text & data writeable */ -#define RS6K_AOUTHDR_NMAGIC 0x0108 /* new: text r/o, data r/w */ -#define RS6K_AOUTHDR_ZMAGIC 0x010B /* paged: text r/o, both page-aligned */ - - -/********************** SECTION HEADER **********************/ - - -struct external_scnhdr { - char s_name[8]; /* section name */ - char s_paddr[4]; /* physical address, aliased s_nlib */ - char s_vaddr[4]; /* virtual address */ - char s_size[4]; /* section size */ - char s_scnptr[4]; /* file ptr to raw data for section */ - char s_relptr[4]; /* file ptr to relocation */ - char s_lnnoptr[4]; /* file ptr to line numbers */ - char s_nreloc[2]; /* number of relocation entries */ - char s_nlnno[2]; /* number of line number entries*/ - char s_flags[4]; /* flags */ -}; - -/* - * names of "special" sections - */ -#define _TEXT ".text" -#define _DATA ".data" -#define _BSS ".bss" -#define _PAD ".pad" -#define _LOADER ".loader" - -#define SCNHDR struct external_scnhdr -#define SCNHSZ 40 - -/* XCOFF uses a special .loader section with type STYP_LOADER. */ -#define STYP_LOADER 0x1000 - -/* XCOFF uses a special .debug section with type STYP_DEBUG. */ -#define STYP_DEBUG 0x2000 - -/* XCOFF handles line number or relocation overflow by creating - another section header with STYP_OVRFLO set. */ -#define STYP_OVRFLO 0x8000 - -/********************** LINE NUMBERS **********************/ - -/* 1 line number entry for every "breakpointable" source line in a section. - * Line numbers are grouped on a per function basis; first entry in a function - * grouping will have l_lnno = 0 and in place of physical address will be the - * symbol table index of the function name. - */ -struct external_lineno { - union { - char l_symndx[4]; /* function name symbol index, iff l_lnno == 0*/ - char l_paddr[4]; /* (physical) address of line number */ - } l_addr; - char l_lnno[2]; /* line number */ -}; - - -#define LINENO struct external_lineno -#define LINESZ 6 - - -/********************** SYMBOLS **********************/ - -#define E_SYMNMLEN 8 /* # characters in a symbol name */ -#define E_FILNMLEN 14 /* # characters in a file name */ -#define E_DIMNUM 4 /* # array dimensions in auxiliary entry */ - -struct external_syment -{ - union { - char e_name[E_SYMNMLEN]; - struct { - char e_zeroes[4]; - char e_offset[4]; - } e; - } e; - char e_value[4]; - char e_scnum[2]; - char e_type[2]; - char e_sclass[1]; - char e_numaux[1]; -}; - - - -#define N_BTMASK (017) -#define N_TMASK (060) -#define N_BTSHFT (4) -#define N_TSHIFT (2) - - -union external_auxent { - struct { - char x_tagndx[4]; /* str, un, or enum tag indx */ - union { - struct { - char x_lnno[2]; /* declaration line number */ - char x_size[2]; /* str/union/array size */ - } x_lnsz; - char x_fsize[4]; /* size of function */ - } x_misc; - union { - struct { /* if ISFCN, tag, or .bb */ - char x_lnnoptr[4]; /* ptr to fcn line # */ - char x_endndx[4]; /* entry ndx past block end */ - } x_fcn; - struct { /* if ISARY, up to 4 dimen. */ - char x_dimen[E_DIMNUM][2]; - } x_ary; - } x_fcnary; - char x_tvndx[2]; /* tv index */ - } x_sym; - - union { - char x_fname[E_FILNMLEN]; - struct { - char x_zeroes[4]; - char x_offset[4]; - } x_n; - } x_file; - - struct { - char x_scnlen[4]; /* section length */ - char x_nreloc[2]; /* # relocation entries */ - char x_nlinno[2]; /* # line numbers */ - } x_scn; - - struct { - char x_tvfill[4]; /* tv fill value */ - char x_tvlen[2]; /* length of .tv */ - char x_tvran[2][2]; /* tv range */ - } x_tv; /* info about .tv section (in auxent of symbol .tv)) */ - - struct { - unsigned char x_scnlen[4]; - unsigned char x_parmhash[4]; - unsigned char x_snhash[2]; - unsigned char x_smtyp[1]; - unsigned char x_smclas[1]; - unsigned char x_stab[4]; - unsigned char x_snstab[2]; - } x_csect; - -}; - -#define SYMENT struct external_syment -#define SYMESZ 18 -#define AUXENT union external_auxent -#define AUXESZ 18 -#define DBXMASK 0x80 /* for dbx storage mask */ -#define SYMNAME_IN_DEBUG(symptr) ((symptr)->n_sclass & DBXMASK) - - - -/********************** RELOCATION DIRECTIVES **********************/ - - -struct external_reloc { - char r_vaddr[4]; - char r_symndx[4]; - char r_size[1]; - char r_type[1]; -}; - - -#define RELOC struct external_reloc -#define RELSZ 10 - -#define DEFAULT_DATA_SECTION_ALIGNMENT 4 -#define DEFAULT_BSS_SECTION_ALIGNMENT 4 -#define DEFAULT_TEXT_SECTION_ALIGNMENT 4 -/* For new sections we havn't heard of before */ -#define DEFAULT_SECTION_ALIGNMENT 4
17 years, 3 months
1
0
0
0
← Newer
1
...
53
54
55
56
57
58
59
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Results per page:
10
25
50
100
200