mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-20 05:32:18 +03:00
De-ansidecl-fy.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/* ffs -- find first set bit in a word, counted from least significant end.
|
||||
For Amd 290x0.
|
||||
Copyright (C) 1991, 1992 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Torbjorn Granlund (tege@sics.se).
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -14,11 +15,10 @@ 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. */
|
||||
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 <bstring.h>
|
||||
|
||||
#undef ffs
|
||||
@@ -26,7 +26,8 @@ Cambridge, MA 02139, USA. */
|
||||
#ifdef __GNUC__
|
||||
|
||||
int
|
||||
DEFUN(ffs, (x), int x)
|
||||
ffs (x)
|
||||
int x;
|
||||
{
|
||||
int cnt;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/* ffs -- find first set bit in a word, counted from least significant end.
|
||||
For i960 Core architecture
|
||||
Copyright (C) 1994 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Copyright (C) 1994, 1997 Free Software Foundation, Inc.
|
||||
Contributed by Joel Sherrill (jsherril@redstone-emh2.army.mil),
|
||||
On-Line Applications Research Corporation.
|
||||
|
||||
@@ -15,11 +16,10 @@ 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. */
|
||||
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 <string.h>
|
||||
|
||||
#undef ffs
|
||||
@@ -27,7 +27,8 @@ Cambridge, MA 02139, USA. */
|
||||
#if defined (__GNUC__) && defined (__i960__)
|
||||
|
||||
int
|
||||
DEFUN(ffs, (x), int x)
|
||||
ffs (x)
|
||||
int x;
|
||||
{
|
||||
int cnt;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/* ffs -- find first set bit in a word, counted from least significant end.
|
||||
For mc68020, mc68030, mc68040.
|
||||
Copyright (C) 1991, 1992 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
|
||||
Contributed by Torbjorn Granlund (tege@sics.se).
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -14,11 +15,10 @@ 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. */
|
||||
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 <string.h>
|
||||
|
||||
#undef ffs
|
||||
@@ -26,7 +26,8 @@ Cambridge, MA 02139, USA. */
|
||||
#if defined (__GNUC__) && defined (__mc68020__)
|
||||
|
||||
int
|
||||
DEFUN(ffs, (x), int x)
|
||||
ffs (x)
|
||||
int x;
|
||||
{
|
||||
int cnt;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/* ffs -- find first set bit in a word, counted from least significant end.
|
||||
For Motorola 88000.
|
||||
Copyright (C) 1991, 1992 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
|
||||
Contributed by Torbjorn Granlund (tege@sics.se).
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -14,11 +15,10 @@ 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. */
|
||||
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 <bstring.h>
|
||||
|
||||
#undef ffs
|
||||
@@ -26,7 +26,8 @@ Cambridge, MA 02139, USA. */
|
||||
#ifdef __GNUC__
|
||||
|
||||
int
|
||||
DEFUN(ffs, (x), int x)
|
||||
ffs (x)
|
||||
int x;
|
||||
{
|
||||
int cnt;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1992, 1995, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Brendan Kehoe (brendan@zen.org).
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -12,11 +13,10 @@ 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. */
|
||||
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 <setjmp.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -27,7 +27,9 @@ Cambridge, MA 02139, USA. */
|
||||
#endif
|
||||
|
||||
void
|
||||
DEFUN(__longjmp, (env, val_arg), __jmp_buf env AND int val_arg)
|
||||
__longjmp (env, val_arg)
|
||||
__jmp_buf env;
|
||||
int val_arg;
|
||||
{
|
||||
/* gcc 1.39.19 miscompiled the longjmp routine (as it did setjmp before
|
||||
the hack around it); force it to use $a1 for the longjmp value.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/* ffs -- find first set bit in a word, counted from least significant end.
|
||||
For IBM rs6000.
|
||||
Copyright (C) 1991, 1992 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Torbjorn Granlund (tege@sics.se).
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -14,11 +15,10 @@ 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. */
|
||||
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 <string.h>
|
||||
|
||||
#undef ffs
|
||||
@@ -26,7 +26,8 @@ Cambridge, MA 02139, USA. */
|
||||
#ifdef __GNUC__
|
||||
|
||||
int
|
||||
DEFUN(ffs, (x), int x)
|
||||
ffs (x)
|
||||
int x;
|
||||
{
|
||||
int cnt;
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/* Copyright (C) 1991, 1994, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1994, 1995, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Ported to standalone 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
|
||||
@@ -15,19 +14,19 @@ 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. */
|
||||
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 <stdlib.h>
|
||||
|
||||
PTR __curbrk;
|
||||
PTR __rorig;
|
||||
PTR __rlimit;
|
||||
void *__curbrk;
|
||||
void *__rorig;
|
||||
void *__rlimit;
|
||||
|
||||
int
|
||||
DEFUN(__brk, (inaddr), PTR inaddr)
|
||||
__brk (inaddr)
|
||||
void *inaddr;
|
||||
{
|
||||
|
||||
if ( ( (void *)inaddr > (void *)__rlimit ) ||
|
||||
@@ -40,15 +39,15 @@ DEFUN(__brk, (inaddr), PTR inaddr)
|
||||
|
||||
/* Initialization Code for Memory Allocation */
|
||||
|
||||
PTR __C_heap_start;
|
||||
void *__C_heap_start;
|
||||
int __C_heap_size;
|
||||
|
||||
#ifdef HAVE_GNU_LD
|
||||
static
|
||||
#endif
|
||||
void
|
||||
DEFUN(__NONE_set_memvals, (argc, argv, envp),
|
||||
int argc AND char **argv AND char **envp)
|
||||
__NONE_set_memvals (argc, argv, envp),
|
||||
int argc; char **argv; char **envp;
|
||||
{
|
||||
|
||||
__rorig =
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/* Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 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
|
||||
@@ -15,24 +14,24 @@ 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. */
|
||||
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>
|
||||
|
||||
/* This returns control to FORCEbug. */
|
||||
|
||||
void DEFUN_VOID(Bsp_cleanup);
|
||||
void Bsp_cleanup __P ((void));
|
||||
|
||||
/* The function `_exit' should take a status argument and simply
|
||||
terminate program execution, using the low-order 8 bits of the
|
||||
given integer as status. */
|
||||
|
||||
__NORETURN void
|
||||
DEFUN(_exit, (status), int status)
|
||||
_exit (status)
|
||||
int status;
|
||||
{
|
||||
/* status is ignored */
|
||||
Bsp_cleanup();
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/* 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
|
||||
@@ -15,11 +14,10 @@ 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. */
|
||||
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 <standalone.h>
|
||||
#include "i386.h"
|
||||
|
||||
@@ -27,10 +25,10 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
This routine initializes the FORCE CPU386 board. */
|
||||
|
||||
void DEFUN_VOID(_Console_Initialize);
|
||||
void _Console_Initialize __P ((void));
|
||||
|
||||
void
|
||||
DEFUN_VOID(_Board_Initialize)
|
||||
_Board_Initialize ()
|
||||
{
|
||||
/*
|
||||
* FORCE documentation incorrectly states that the bus request
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/* 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
|
||||
@@ -15,11 +14,10 @@ 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. */
|
||||
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 <standalone.h>
|
||||
#include "i386.h"
|
||||
|
||||
@@ -62,7 +60,7 @@ Cambridge, MA 02139, USA. */
|
||||
On the Force board the console require some initialization. */
|
||||
|
||||
void
|
||||
DEFUN_VOID(_Console_Initialize)
|
||||
_Console_Initialize ()
|
||||
{
|
||||
register unsigned8 ignored;
|
||||
|
||||
@@ -125,7 +123,8 @@ This routine transmits a character. It supports XON/XOFF flow control. */
|
||||
#define XOFF 0x13 /* control-S */
|
||||
|
||||
int
|
||||
DEFUN( _Console_Putc, (ch), char ch )
|
||||
_Console_Putc (ch)
|
||||
char ch;
|
||||
{
|
||||
register unsigned8 inch;
|
||||
|
||||
@@ -149,7 +148,8 @@ DEFUN( _Console_Putc, (ch), char ch )
|
||||
This routine reads a character from the UART and returns it. */
|
||||
|
||||
int
|
||||
DEFUN( _Console_Getc, (poll), int poll )
|
||||
_Console_Getc (poll)
|
||||
int poll;
|
||||
{
|
||||
if ( poll ) {
|
||||
if ( !_Force386_is_rx_ready() )
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/* Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 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
|
||||
@@ -15,11 +14,10 @@ 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. */
|
||||
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>
|
||||
|
||||
@@ -28,9 +26,10 @@ Cambridge, MA 02139, USA. */
|
||||
given integer as status. */
|
||||
|
||||
/* This returns control to Nindy. */
|
||||
|
||||
/* XXX where is __NORETURN ? */
|
||||
__NORETURN void
|
||||
DEFUN(_exit, (status), int status)
|
||||
_exit (status)
|
||||
int status;
|
||||
{
|
||||
/* status is ignored */
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/* 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
|
||||
@@ -15,11 +14,10 @@ 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. */
|
||||
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 <standalone.h>
|
||||
#include "i960ca.h"
|
||||
|
||||
@@ -30,7 +28,7 @@ This routine initializes the board.
|
||||
NOTE: Only tested on a Cyclone CVME961 but should be OK on any i960ca board. */
|
||||
|
||||
void
|
||||
DEFUN_VOID(_Board_Initialize)
|
||||
_Board_Initialize ()
|
||||
{
|
||||
struct i80960ca_prcb *prcb; /* ptr to processor control block */
|
||||
struct i80960ca_ctltbl *ctl_tbl; /* ptr to control table */
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/* 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
|
||||
@@ -15,11 +14,10 @@ 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. */
|
||||
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 <standalone.h>
|
||||
#include "i960ca.h"
|
||||
|
||||
@@ -51,7 +49,8 @@ void ___NINDY_IO_WRAPPER( void ) /* never called */
|
||||
This routine transmits a character using NINDY. */
|
||||
|
||||
int
|
||||
DEFUN( _Console_Putc, (ch), char ch )
|
||||
_Console_Putc (ch)
|
||||
char ch;
|
||||
{
|
||||
NINDY_IO( NINDY_OUTPUT, ch );
|
||||
return( 0 );
|
||||
@@ -62,7 +61,8 @@ DEFUN( _Console_Putc, (ch), char ch )
|
||||
This routine reads a character from NINDY and returns it. */
|
||||
|
||||
int
|
||||
DEFUN( _Console_Getc, (poll), int poll )
|
||||
_Console_Getc (poll)
|
||||
int poll;
|
||||
{
|
||||
char ch;
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/* 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
|
||||
@@ -15,11 +14,10 @@ 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. */
|
||||
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>
|
||||
#include "m68020.h"
|
||||
@@ -27,7 +25,7 @@ Cambridge, MA 02139, USA. */
|
||||
/* Return control to 135Bug */
|
||||
|
||||
void
|
||||
DEFUN_VOID(__exit_trap)
|
||||
__exit_trap ()
|
||||
{
|
||||
set_vbr( 0 ); /* restore 135Bug vectors */
|
||||
asm volatile( "trap #15" ); /* trap to 135Bug */
|
||||
@@ -39,8 +37,10 @@ DEFUN_VOID(__exit_trap)
|
||||
terminate program execution, using the low-order 8 bits of the
|
||||
given integer as status. */
|
||||
|
||||
__NORETURN void
|
||||
DEFUN(_exit, (status), int status)
|
||||
void
|
||||
__attribute__ ((noreturn))
|
||||
_exit (status)
|
||||
int status;
|
||||
{
|
||||
/* status is ignored */
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
/* 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
|
||||
@@ -15,11 +14,10 @@ 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. */
|
||||
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 <standalone.h>
|
||||
#include "m68020.h"
|
||||
|
||||
@@ -28,7 +26,7 @@ Cambridge, MA 02139, USA. */
|
||||
This routine initializes the Motorola MVME135/MVME136. */
|
||||
|
||||
void
|
||||
DEFUN_VOID(_Board_Initialize)
|
||||
_Board_Initialize ()
|
||||
{
|
||||
mc68020_isr *monitors_vector_table;
|
||||
int index;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993, 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
|
||||
@@ -12,18 +12,19 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
/* Suspend or restart transmission on FD. */
|
||||
int
|
||||
DEFUN(tcflow, (fd, action), int fd AND int action)
|
||||
tcflow (fd, action)
|
||||
int fd;
|
||||
int action;
|
||||
{
|
||||
return __ioctl (fd, TCXONC, action);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993, 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
|
||||
@@ -12,18 +12,19 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
/* Flush pending data on FD. */
|
||||
int
|
||||
DEFUN(tcflush, (fd, queue_selector), int fd AND int queue_selector)
|
||||
tcflush (fd, queue_selector)
|
||||
int fd;
|
||||
int queue_selector;
|
||||
{
|
||||
return __ioctl (fd, TCFLSH, queue_selector);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993, 1995 Free Software Foundation, Inc.
|
||||
/* 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <stddef.h>
|
||||
#include <termios.h>
|
||||
@@ -24,8 +23,9 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
/* Put the state of FD into *TERMIOS_P. */
|
||||
int
|
||||
DEFUN(__tcgetattr, (fd, termios_p),
|
||||
int fd AND struct termios *termios_p)
|
||||
__tcgetattr (fd, termios_p)
|
||||
int fd;
|
||||
struct termios *termios_p;
|
||||
{
|
||||
return __ioctl (fd, TCGETS, termios_p);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993, 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -24,7 +23,9 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
/* Send zero bits on FD. */
|
||||
int
|
||||
DEFUN(tcsendbreak, (fd, duration), int fd AND int duration)
|
||||
tcsendbreak (fd, duration)
|
||||
int fd;
|
||||
int duration;
|
||||
{
|
||||
/* According to SunOS 4.1's termios(4), you can't specify a duration. */
|
||||
return __ioctl (fd, TCSBRK, 0);
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
/* This implements wait4 with the 4.4 BSD semantics (also those documented in
|
||||
SunOS 4.1) on top of SunOS's wait4 system call, which has semantics
|
||||
different from those documented. Go Sun!
|
||||
|
||||
Copyright (C) 1991, 1992, 1993, 1995 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1992, 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
|
||||
@@ -16,11 +15,10 @@ 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. */
|
||||
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 <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
@@ -29,9 +27,11 @@ extern pid_t __wait4_syscall __P ((pid_t pid, __WAIT_STATUS_DEFN stat_loc,
|
||||
int options, struct rusage *usage));
|
||||
|
||||
pid_t
|
||||
DEFUN(__wait4, (pid, stat_loc, options, usage),
|
||||
pid_t pid AND __WAIT_STATUS_DEFN stat_loc AND
|
||||
int options AND struct rusage *usage)
|
||||
__wait4 (pid, stat_loc, options, usage)
|
||||
pid_t pid;
|
||||
__WAIT_STATUS_DEFN stat_loc;
|
||||
int options;
|
||||
struct rusage *usage;
|
||||
{
|
||||
switch (pid)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1992, 1996 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1992, 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
|
||||
@@ -12,9 +12,9 @@ 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. */
|
||||
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. */
|
||||
|
||||
/* The sigvec system call on MIPS Ultrix takes an additional
|
||||
parameter, which is the address that is actually called when the
|
||||
@@ -28,7 +28,6 @@ Cambridge, MA 02139, USA. */
|
||||
different because since we get passed the user signal handler we
|
||||
don't actually need a trampoline. */
|
||||
|
||||
#include <ansidecl.h>
|
||||
#include <signal.h>
|
||||
#include <stddef.h>
|
||||
#include <errno.h>
|
||||
@@ -36,19 +35,21 @@ Cambridge, MA 02139, USA. */
|
||||
/* The user's signal handler is called with three arguments. */
|
||||
typedef void (*handler_type) (int sig, int code, struct sigcontext *);
|
||||
|
||||
extern int EXFUN(__raw_sigvec, (int sig, CONST struct sigvec *vec,
|
||||
extern int __raw_sigvec __P ((int sig, CONST struct sigvec *vec,
|
||||
struct sigvec *ovec,
|
||||
void (*)(int sig, int code,
|
||||
struct sigcontext *,
|
||||
handler_type)));
|
||||
|
||||
extern void EXFUN(__handler, (int sig, int code,
|
||||
extern void __handler __P ((int sig, int code,
|
||||
struct sigcontext *,
|
||||
handler_type));
|
||||
|
||||
int
|
||||
DEFUN(__sigvec, (sig, vec, ovec),
|
||||
int sig AND CONST struct sigvec *vec AND struct sigvec *ovec)
|
||||
__sigvec (sig, vec, ovec)
|
||||
int sig;
|
||||
const struct sigvec *vec;
|
||||
struct sigvec *ovec;
|
||||
{
|
||||
return __raw_sigvec (sig, vec, ovec, __handler);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1994, 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
@@ -26,7 +25,9 @@ extern int __syssgi __P ((int, ...));
|
||||
|
||||
/* Get file-specific information about descriptor FD. */
|
||||
long int
|
||||
DEFUN(__fpathconf, (fd, name), int fd AND int name)
|
||||
__fpathconf (fd, name)
|
||||
int fd;
|
||||
int name;
|
||||
{
|
||||
return __syssgi (SGI_PATHCONF, FPATHCONF, fd, name);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1994, 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
|
||||
@@ -12,12 +12,11 @@ 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. */
|
||||
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 <sys/syssgi.h>
|
||||
#include <ansidecl.h>
|
||||
#include <sys/types.h>
|
||||
#include <grp.h>
|
||||
|
||||
@@ -25,7 +24,9 @@ extern int __syssgi __P ((int, ...));
|
||||
|
||||
/* Set the group set for the current user to GROUPS (N of them). */
|
||||
int
|
||||
DEFUN(__getgroups, (n, groups), size_t n AND gid_t *groups)
|
||||
__getgroups (n, groups)
|
||||
size_t n;
|
||||
gid_t *groups;
|
||||
{
|
||||
return __syssgi (SGI_GETGROUPS, n, groups);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1994, 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <sys/resource.h>
|
||||
#include <errno.h>
|
||||
#include <sys/syssgi.h>
|
||||
@@ -26,8 +25,9 @@ extern int __syssgi __P ((int, ...));
|
||||
/* Return resource usage information on process indicated by WHO
|
||||
and put it in *USAGE. Returns 0 for success, -1 for failure. */
|
||||
int
|
||||
DEFUN(__getrusage, (who, usage),
|
||||
enum __rusage_who who AND struct rusage *usage)
|
||||
__getrusage (who, usage)
|
||||
enum __rusage_who who;
|
||||
struct rusage *usage;
|
||||
{
|
||||
return __syssgi (SGI_RUSAGE, who, usage);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1994, 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <stddef.h>
|
||||
#include <unistd.h>
|
||||
@@ -26,7 +25,9 @@ extern int __syssgi __P ((int, ...));
|
||||
|
||||
/* Get file-specific information about PATH. */
|
||||
long int
|
||||
DEFUN(__pathconf, (path, name), CONST char *path AND int name)
|
||||
__pathconf (path, name)
|
||||
const char *path;
|
||||
int name;
|
||||
{
|
||||
return __syssgi (SGI_PATHCONF, PATHCONF, path, name);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1994 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 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
|
||||
@@ -12,12 +12,11 @@ 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. */
|
||||
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 <sys/syssgi.h>
|
||||
#include <ansidecl.h>
|
||||
#include <sys/types.h>
|
||||
#include <grp.h>
|
||||
|
||||
@@ -25,7 +24,9 @@ extern int __syssgi __P ((int, ...));
|
||||
|
||||
/* Set the group set for the current user to GROUPS (N of them). */
|
||||
int
|
||||
DEFUN(setgroups, (n, groups), size_t n AND CONST gid_t *groups)
|
||||
setgroups (n, groups)
|
||||
size_t n;
|
||||
const gid_t *groups;
|
||||
{
|
||||
return __syssgi (SGI_SETGROUPS, n, groups);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1992 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1992, 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
|
||||
@@ -12,9 +12,9 @@ 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. */
|
||||
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. */
|
||||
|
||||
/* The sigvec system call on MIPS Ultrix takes an additional
|
||||
parameter, which is the address that is actually called when the
|
||||
@@ -28,7 +28,6 @@ Cambridge, MA 02139, USA. */
|
||||
different because since we get passed the user signal handler we
|
||||
don't actually need a trampoline. */
|
||||
|
||||
#include <ansidecl.h>
|
||||
#include <signal.h>
|
||||
#include <stddef.h>
|
||||
#include <errno.h>
|
||||
@@ -37,18 +36,19 @@ Cambridge, MA 02139, USA. */
|
||||
typedef void (*handler_type) (int sig, int code, struct sigcontext *);
|
||||
|
||||
/* Defined in signal.S. */
|
||||
extern __sighandler_t EXFUN(__raw_signal, (int sig, __sighandler_t func,
|
||||
extern __sighandler_t __raw_signal __P((int sig, __sighandler_t func,
|
||||
void (*)(int sig, int code,
|
||||
struct sigcontext *,
|
||||
handler_type)));
|
||||
|
||||
extern void EXFUN(__handler, (int sig, int code,
|
||||
extern void __handler __P((int sig, int code,
|
||||
struct sigcontext *,
|
||||
handler_type));
|
||||
|
||||
__sighandler_t
|
||||
DEFUN(signal, (sig, func),
|
||||
int sig AND __sighandler_t func)
|
||||
signal (sig, func)
|
||||
int sig;
|
||||
__sighandler_t func;
|
||||
{
|
||||
return __raw_signal (sig, func, __handler);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1992, 1995, 1996 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1992, 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
@@ -28,11 +27,11 @@ Cambridge, MA 02139, USA. */
|
||||
/* The first piece of initialized data. */
|
||||
int __data_start = 0;
|
||||
|
||||
VOLATILE int __errno = 0;
|
||||
__volatile int __errno = 0;
|
||||
strong_alias (__errno, errno)
|
||||
|
||||
extern void EXFUN(__libc_init, (int argc, char **argv, char **envp));
|
||||
extern int EXFUN(main, (int argc, char **argv, char **envp));
|
||||
extern void __libc_init __P ((int argc, char **argv, char **envp));
|
||||
extern int main __P ((int argc, char **argv, char **envp));
|
||||
|
||||
/* Use the stack pointer to access the arguments. This assumes that
|
||||
we can guess how big the frame will be. */
|
||||
@@ -44,7 +43,7 @@ register long int sp asm("sp");
|
||||
#endif
|
||||
|
||||
void
|
||||
DEFUN_VOID(__start)
|
||||
__start ()
|
||||
{
|
||||
int argc;
|
||||
char **argv, **envp;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1994, 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <sys/syssgi.h>
|
||||
|
||||
@@ -24,7 +23,8 @@ extern int __syssgi __P ((int, ...));
|
||||
|
||||
/* Get the value of the system variable NAME. */
|
||||
long int
|
||||
DEFUN(__sysconf, (name), int name)
|
||||
__sysconf (name)
|
||||
int name;
|
||||
{
|
||||
if (name == _SC_TZNAME_MAX)
|
||||
return __tzname_max ();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1994 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 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
|
||||
@@ -11,11 +12,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -24,7 +24,9 @@ extern int __pgrpsys __P ((int type, ...));
|
||||
|
||||
/* Get the process group ID of process PID. */
|
||||
int
|
||||
DEFUN(__setpgid, (pid, pgid), pid_t pid AND pid_t pgid)
|
||||
__setpgid (pid, pgid)
|
||||
pid_t pid;
|
||||
pid_t pgid;
|
||||
{
|
||||
return __pgrpsys (2, pid, pgid);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1994, 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
@@ -25,7 +24,8 @@ Cambridge, MA 02139, USA. */
|
||||
extern int __sco_getgroups __P ((int size, unsigned short int *list));
|
||||
|
||||
int
|
||||
DEFUN(__getgroups, (size, list), int size AND gid_t *list)
|
||||
__getgroups (size, list)
|
||||
int size; gid_t *list;
|
||||
{
|
||||
int i;
|
||||
unsigned short int *shortlist;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1993 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Brendan Kehoe (brendan@zen.org).
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -12,11 +13,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -25,7 +25,8 @@ extern int __pgrpsys __P ((int type, ...));
|
||||
|
||||
/* Get the process group ID of process PID. */
|
||||
int
|
||||
DEFUN(__getpgid, (pid), pid_t pid)
|
||||
__getpgid (pid)
|
||||
pid_t pid;
|
||||
{
|
||||
return __pgrpsys (4, pid);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1993 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Brendan Kehoe (brendan@zen.org).
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -12,11 +13,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -25,7 +25,9 @@ extern int __pgrpsys __P ((int type, ...));
|
||||
|
||||
/* Get the process group ID of process PID. */
|
||||
int
|
||||
DEFUN(__setpgid, (pid, pgid), pid_t pid AND pid_t pgid)
|
||||
__setpgid (pid, pgid)
|
||||
pid_t pid;
|
||||
pid_t pgid;
|
||||
{
|
||||
return __pgrpsys (5, pid, pgid);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* ftruncate for SVR4 using the fcntl F_FREESP command.
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Copyright (C) 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
|
||||
@@ -13,11 +13,10 @@ 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. */
|
||||
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 <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
@@ -25,8 +24,9 @@ Cambridge, MA 02139, USA. */
|
||||
|
||||
/* Truncate the file FD refers to to LENGTH bytes. */
|
||||
int
|
||||
DEFUN(ftruncate, (fd, length),
|
||||
int fd AND off_t length)
|
||||
ftruncate (fd, length)
|
||||
int fd;
|
||||
off_t length;
|
||||
{
|
||||
struct flock fl;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1994, 1995, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Brendan Kehoe (brendan@zen.org).
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -12,11 +13,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -25,7 +25,9 @@ Cambridge, MA 02139, USA. */
|
||||
extern int __sysinfo __P ((int command, char *buf, long count));
|
||||
|
||||
int
|
||||
DEFUN(__gethostname, (name, namelen), char *name AND size_t namelen)
|
||||
__gethostname (name, namelen)
|
||||
char *name;
|
||||
size_t namelen;
|
||||
{
|
||||
return __sysinfo (SI_HOSTNAME, name, namelen);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993, 1995 Free Software Foundation, Inc.
|
||||
/* 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -25,7 +24,8 @@ extern int __pgrpsys __P ((int type, ...));
|
||||
|
||||
/* Get the process group ID of process PID. */
|
||||
int
|
||||
DEFUN(__getpgid, (pid), pid_t pid)
|
||||
__getpgid (pid)
|
||||
pid_t pid;
|
||||
{
|
||||
return __pgrpsys (4, pid);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/* 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 Brendan Kehoe (brendan@zen.org).
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -12,11 +13,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -25,7 +25,9 @@ Cambridge, MA 02139, USA. */
|
||||
extern int __sysinfo __P ((int command, const char *buf, long count));
|
||||
|
||||
int
|
||||
DEFUN(sethostname, (name, namelen), const char *name AND size_t namelen)
|
||||
sethostname (name, namelen)
|
||||
const char *name;
|
||||
size_t namelen;
|
||||
{
|
||||
return __sysinfo (SI_SET_HOSTNAME, name, namelen);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993, 1995, 1996 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993, 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -26,7 +25,8 @@ extern int __pgrpsys __P ((int type, ...));
|
||||
If PID is zero, the current process's process group ID is set.
|
||||
If PGID is zero, the process ID of the process is used. */
|
||||
int
|
||||
DEFUN(__setpgid, (pid, pgid), int pid AND int pgid)
|
||||
__setpgid (pid, pgid)
|
||||
int pid, pgid; /* XXX why not pid_t ? */
|
||||
{
|
||||
return __pgrpsys (5, pid, pgid);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993, 1995 Free Software Foundation, Inc.
|
||||
/* 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
|
||||
@@ -12,11 +12,10 @@ 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. */
|
||||
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 <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -26,7 +25,7 @@ extern int __pgrpsys __P ((int type, ...));
|
||||
The process group IDs of the session and the calling process
|
||||
are set to the process ID of the calling process, which is returned. */
|
||||
int
|
||||
DEFUN_VOID(__setsid)
|
||||
__setsid ()
|
||||
{
|
||||
return __pgrpsys (3);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1992, 1994 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1992, 1994, 1997 Free Software Foundation, Inc.
|
||||
Derived from @(#)_setjmp.s 5.7 (Berkeley) 6/27/88,
|
||||
Copyright (c) 1980 Regents of the University of California.
|
||||
|
||||
@@ -13,11 +13,10 @@ 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. */
|
||||
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 <setjmp.h>
|
||||
|
||||
#ifndef __GNUC__
|
||||
@@ -31,7 +30,9 @@ Cambridge, MA 02139, USA. */
|
||||
setjmp call there to return VAL, or 1 if VAL is 0. */
|
||||
__NORETURN
|
||||
void
|
||||
DEFUN(__longjmp, (env, val), CONST __jmp_buf env AND int val)
|
||||
__longjmp (env, val)
|
||||
const __jmp_buf env;
|
||||
int val;
|
||||
{
|
||||
register long int *fp asm("fp");
|
||||
long int *regsave;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991, 1992, 1995 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991, 1992, 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
|
||||
@@ -12,25 +12,26 @@ 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. */
|
||||
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 <string.h>
|
||||
|
||||
|
||||
/* Copy no more than N bytes of SRC to DEST, stopping when C is found.
|
||||
Return the position in DEST one byte past where C was copied,
|
||||
or NULL if C was not found in the first N bytes of SRC. */
|
||||
PTR
|
||||
DEFUN(__memccpy, (dest, src, c, n),
|
||||
PTR dest AND CONST PTR src AND int c AND size_t nbytes)
|
||||
void *
|
||||
__memccpy (dest, src, c, n)
|
||||
void *dest;
|
||||
const void *src;
|
||||
int c;
|
||||
size_t nbytes;
|
||||
{
|
||||
/* Except when N > 65535, this is what a hand-coded version would
|
||||
do anyway. */
|
||||
|
||||
PTR found = memchr (src, c, n);
|
||||
void *found = memchr (src, c, n);
|
||||
|
||||
if (found == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user