comparison 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
comparison
equal deleted inserted replaced
3366:5d16532287ee 3367:a1df75458e13
6 // 6 //
7 //=========================================================================== 7 //===========================================================================
8 // ####ECOSGPLCOPYRIGHTBEGIN#### 8 // ####ECOSGPLCOPYRIGHTBEGIN####
9 // ------------------------------------------- 9 // -------------------------------------------
10 // This file is part of eCos, the Embedded Configurable Operating System. 10 // This file is part of eCos, the Embedded Configurable Operating System.
11 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 11 // Copyright (C) 1998, 1999, 2000, 2001, 2002, 2014 Free Software Foundation, Inc.
12 // 12 //
13 // eCos is free software; you can redistribute it and/or modify it under 13 // eCos is free software; you can redistribute it and/or modify it under
14 // the terms of the GNU General Public License as published by the Free 14 // the terms of the GNU General Public License as published by the Free
15 // Software Foundation; either version 2 or (at your option) any later 15 // Software Foundation; either version 2 or (at your option) any later
16 // version. 16 // version.
38 // ####ECOSGPLCOPYRIGHTEND#### 38 // ####ECOSGPLCOPYRIGHTEND####
39 //=========================================================================== 39 //===========================================================================
40 //#####DESCRIPTIONBEGIN#### 40 //#####DESCRIPTIONBEGIN####
41 // 41 //
42 // Author(s): jlarmour 42 // Author(s): jlarmour
43 // Contributors: 43 // Contributors: jld
44 // Date: 2000-04-20 44 // Date: 2000-04-20
45 // Purpose: 45 // Purpose:
46 // Description: 46 // Description:
47 // Usage: 47 // Usage:
48 // 48 //
76 va_end(ap); // end var args 76 va_end(ap); // end var args
77 77
78 return rc; 78 return rc;
79 } // sprintf() 79 } // sprintf()
80 80
81 externC int
82 __sprintf_chk( char *s, const char *format, ... ) __THROW
83 CYGBLD_ATTRIB_ALIAS( sprintf );
84
81 // EOF sprintf.cxx 85 // EOF sprintf.cxx