Mercurial > nand-ecoscentric
diff packages/language/c/libc/stdio/current/src/common/sprintf.cxx @ 3367:a1df75458e13
* src/common/sprintf.cxx (__sprintf_chk): Implement alias for use
with libsupc++ in fortified linux distributions. [ Bugzilla 1001139 ]
| author | jld |
|---|---|
| date | Thu, 03 Jul 2014 08:21:45 +0000 |
| parents | 74dbf4c3f2e1 |
| children |
line wrap: on
line diff
--- a/packages/language/c/libc/stdio/current/src/common/sprintf.cxx +++ b/packages/language/c/libc/stdio/current/src/common/sprintf.cxx @@ -8,7 +8,7 @@ // ####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. -// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2014 Free Software Foundation, Inc. // // eCos 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 @@ -40,7 +40,7 @@ //#####DESCRIPTIONBEGIN#### // // Author(s): jlarmour -// Contributors: +// Contributors: jld // Date: 2000-04-20 // Purpose: // Description: @@ -78,4 +78,8 @@ sprintf( char *s, const char *format, .. return rc; } // sprintf() +externC int +__sprintf_chk( char *s, const char *format, ... ) __THROW + CYGBLD_ATTRIB_ALIAS( sprintf ); + // EOF sprintf.cxx
