diff options
Diffstat (limited to 'sysdeps/stub')
-rw-r--r-- | sysdeps/stub/_exit.c | 29 | ||||
-rw-r--r-- | sysdeps/stub/brdinit.c | 40 | ||||
-rw-r--r-- | sysdeps/stub/console.c | 46 | ||||
-rw-r--r-- | sysdeps/stub/defs.c | 32 | ||||
-rw-r--r-- | sysdeps/stub/errlist.c | 33 | ||||
-rw-r--r-- | sysdeps/stub/libc_fatal.c | 32 | ||||
-rw-r--r-- | sysdeps/stub/siglist.c | 31 | ||||
-rw-r--r-- | sysdeps/stub/stdio_init.c | 4 | ||||
-rw-r--r-- | sysdeps/stub/strtsupp.c | 37 |
9 files changed, 137 insertions, 147 deletions
diff --git a/sysdeps/stub/_exit.c b/sysdeps/stub/_exit.c index c8f242b71f..1b8f1700da 100644 --- a/sysdeps/stub/_exit.c +++ b/sysdeps/stub/_exit.c @@ -1,22 +1,21 @@ -/* Copyright (C) 1991, 94, 95, 96 Free Software Foundation, Inc. -This file is part of the GNU C Library. +/* Copyright (C) 1991, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C 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 -Library General Public License for more details. + The GNU C 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 + Library General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ -#include <ansidecl.h> #include <unistd.h> #include <stdlib.h> diff --git a/sysdeps/stub/brdinit.c b/sysdeps/stub/brdinit.c index 50c92877f9..35c10b4a0d 100644 --- a/sysdeps/stub/brdinit.c +++ b/sysdeps/stub/brdinit.c @@ -1,25 +1,23 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil), On-Line Applications Research Corporation. -This file is part of the GNU C Library. - -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. - -The GNU C 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 -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ - -#include <ansidecl.h> + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + #include <standalone.h> /* This file is only required when a "bare" board is configured. */ @@ -28,7 +26,7 @@ Cambridge, MA 02139, USA. */ This routine normally performs board specific initialization. */ -void -DEFUN_VOID(_Board_Initialize) +void +_Board_Initialize () { } diff --git a/sysdeps/stub/console.c b/sysdeps/stub/console.c index ca556110b5..d48455b40d 100644 --- a/sysdeps/stub/console.c +++ b/sysdeps/stub/console.c @@ -1,25 +1,23 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil), On-Line Applications Research Corporation. - -This file is part of the GNU C Library. - -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. - -The GNU C 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 -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ - -#include <ansidecl.h> + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + #include <standalone.h> /* This file is only required when a "bare" board is configured. */ @@ -27,15 +25,17 @@ Cambridge, MA 02139, USA. */ /* These routines provide console IO routines for your embedded target. */ int -DEFUN( _Console_Putc, (ch), char ch ) +_Console_Putc (ch) + char ch; { /* eat the character */ - return( 0 ); + return 0; } int -DEFUN( _Console_Getc, (poll), int poll ) +_Console_Getc (poll) + int poll; { /* boring user, never types anything */ return -1; diff --git a/sysdeps/stub/defs.c b/sysdeps/stub/defs.c index 4fd7ab3615..3d4abea476 100644 --- a/sysdeps/stub/defs.c +++ b/sysdeps/stub/defs.c @@ -1,24 +1,22 @@ /* Definitions of global stdio data structures. + Copyright (C) 1991, 1995, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. -Copyright (C) 1991, 1995, 1997 Free Software Foundation, Inc. -This file is part of the GNU C Library. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C 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 + Library General Public License for more details. -The GNU C 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 -Library General Public License for more details. + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ - -#include <ansidecl.h> #include <stdio.h> /* This file should define the following @@ -38,7 +36,7 @@ FILE *__stdio_head; to cause _cleanup to be linked in. */ void -DEFUN_VOID(_cleanup) +_cleanup () { __fcloseall (); } diff --git a/sysdeps/stub/errlist.c b/sysdeps/stub/errlist.c index adc3129748..65c9437587 100644 --- a/sysdeps/stub/errlist.c +++ b/sysdeps/stub/errlist.c @@ -1,22 +1,21 @@ -/* Copyright (C) 1991, 1994 Free Software Foundation, Inc. -This file is part of the GNU C Library. +/* Copyright (C) 1991, 1994, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C 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 -Library General Public License for more details. + The GNU C 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 + Library General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ -#include <ansidecl.h> #include <stddef.h> #ifndef HAVE_GNU_LD @@ -24,7 +23,7 @@ Cambridge, MA 02139, USA. */ #define _sys_nerr sys_nerr #endif -CONST char *CONST _sys_errlist[] = +const char *const _sys_errlist[] = { "Error 0", /* 0 */ "Argument out of function's domain", /* 1 = EDOM */ @@ -39,4 +38,4 @@ CONST char *CONST _sys_errlist[] = "Too many open files", /* 10 = EMFILE */ }; -CONST int _sys_nerr = sizeof (_sys_errlist) / sizeof (_sys_errlist[0]); +const int _sys_nerr = sizeof (_sys_errlist) / sizeof (_sys_errlist[0]); diff --git a/sysdeps/stub/libc_fatal.c b/sysdeps/stub/libc_fatal.c index 743bc4e079..a5489ed39f 100644 --- a/sysdeps/stub/libc_fatal.c +++ b/sysdeps/stub/libc_fatal.c @@ -1,27 +1,27 @@ -/* Copyright (C) 1993, 1995 Free Software Foundation, Inc. -This file is part of the GNU C Library. +/* Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C 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 -Library General Public License for more details. + The GNU C 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 + Library General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ -#include <ansidecl.h> #include <stdio.h> /* Abort with an error message. */ void -DEFUN(__libc_fatal, (message), CONST char *message) +__libc_fatal (message) + const char *message; { /* This function should write MESSAGE out in the most reliable way. It is called in situations like internal stdio lossage. */ diff --git a/sysdeps/stub/siglist.c b/sysdeps/stub/siglist.c index f32127c9d0..ae03b1f73c 100644 --- a/sysdeps/stub/siglist.c +++ b/sysdeps/stub/siglist.c @@ -1,25 +1,24 @@ -/* Copyright (C) 1991 Free Software Foundation, Inc. -This file is part of the GNU C Library. +/* Copyright (C) 1991, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. -The GNU C 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 -Library General Public License for more details. + The GNU C 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 + Library General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ -#include <ansidecl.h> #include <stddef.h> -CONST char *CONST _sys_siglist[] = +const char *const _sys_siglist[] = { "Signal 0", "Aborted", diff --git a/sysdeps/stub/stdio_init.c b/sysdeps/stub/stdio_init.c index 153b1a9491..ad0a8dd20b 100644 --- a/sysdeps/stub/stdio_init.c +++ b/sysdeps/stub/stdio_init.c @@ -16,7 +16,6 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <ansidecl.h> #include <stdio.h> /* Initialize STREAM as necessary. @@ -24,7 +23,8 @@ Cambridge, MA 02139, USA. */ If no buffer is allocated, but the bufsize is set, the bufsize will be used to allocate the buffer. */ void -DEFUN(__stdio_init_stream, (stream), FILE *stream) +__stdio_init_stream (stream) + FILE *stream; { stream->__bufsize = BUFSIZ; } diff --git a/sysdeps/stub/strtsupp.c b/sysdeps/stub/strtsupp.c index 9c5d041d99..202a1ce60d 100644 --- a/sysdeps/stub/strtsupp.c +++ b/sysdeps/stub/strtsupp.c @@ -1,25 +1,23 @@ -/* Copyright (C) 1994 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil), On-Line Applications Research Corporation. - -This file is part of the GNU C Library. - -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. - -The GNU C 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 -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ -#include <ansidecl.h> + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + #include <standalone.h> /* This file is only required when a "bare" board is configured. */ @@ -28,4 +26,3 @@ Cambridge, MA 02139, USA. */ The start code for some CPUs (e.g. i386) require target dependent support. For more info, consult the start file for your CPU. */ - |