mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-11-03 20:53:13 +03:00 
			
		
		
		
	I used these shell commands: ../glibc/scripts/update-copyrights $PWD/../gnulib/build-aux/update-copyright (cd ../glibc && git commit -am"[this commit message]") and then ignored the output, which consisted lines saying "FOO: warning: copyright statement not found" for each of 7061 files FOO. I then removed trailing white space from math/tgmath.h, support/tst-support-open-dev-null-range.c, and sysdeps/x86_64/multiarch/strlen-vec.S, to work around the following obscure pre-commit check failure diagnostics from Savannah. I don't know why I run into these diagnostics whereas others evidently do not. remote: *** 912-#endif remote: *** 913: remote: *** 914- remote: *** error: lines with trailing whitespace found ... remote: *** error: sysdeps/unix/sysv/linux/statx_cp.c: trailing lines
		
			
				
	
	
		
			102 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			102 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* Compatibility symbols for the unimplemented XSI STREAMS extension.
 | 
						|
   Copyright (C) 1998-2022 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 Lesser General Public
 | 
						|
   License as published by the Free Software Foundation; either
 | 
						|
   version 2.1 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
 | 
						|
   Lesser General Public License for more details.
 | 
						|
 | 
						|
   You should have received a copy of the GNU Lesser General Public
 | 
						|
   License along with the GNU C Library; if not, see
 | 
						|
   <https://www.gnu.org/licenses/>.  */
 | 
						|
 | 
						|
#include <shlib-compat.h>
 | 
						|
 | 
						|
#if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_30)
 | 
						|
 | 
						|
# include <errno.h>
 | 
						|
# include <fcntl.h>
 | 
						|
 | 
						|
struct strbuf;
 | 
						|
 | 
						|
int
 | 
						|
attribute_compat_text_section
 | 
						|
fattach (int fildes, const char *path)
 | 
						|
{
 | 
						|
  __set_errno (ENOSYS);
 | 
						|
  return -1;
 | 
						|
}
 | 
						|
compat_symbol (libc, fattach, fattach, GLIBC_2_1);
 | 
						|
 | 
						|
int
 | 
						|
attribute_compat_text_section
 | 
						|
fdetach (const char *path)
 | 
						|
{
 | 
						|
  __set_errno (ENOSYS);
 | 
						|
  return -1;
 | 
						|
}
 | 
						|
compat_symbol (libc, fdetach, fdetach, GLIBC_2_1);
 | 
						|
 | 
						|
 | 
						|
int
 | 
						|
attribute_compat_text_section
 | 
						|
getmsg (int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *flagsp)
 | 
						|
{
 | 
						|
  __set_errno (ENOSYS);
 | 
						|
  return -1;
 | 
						|
}
 | 
						|
compat_symbol (libc, getmsg, getmsg, GLIBC_2_1);
 | 
						|
 | 
						|
int
 | 
						|
attribute_compat_text_section
 | 
						|
getpmsg (int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *bandp,
 | 
						|
	 int *flagsp)
 | 
						|
{
 | 
						|
  __set_errno (ENOSYS);
 | 
						|
  return -1;
 | 
						|
}
 | 
						|
compat_symbol (libc, getpmsg, getpmsg, GLIBC_2_1);
 | 
						|
 | 
						|
int
 | 
						|
attribute_compat_text_section
 | 
						|
isastream (int fildes)
 | 
						|
{
 | 
						|
  /* In general we do not have a STREAMS implementation and therefore
 | 
						|
     return 0.  But for invalid file descriptors we have to return an
 | 
						|
     error.  */
 | 
						|
  if (__fcntl (fildes, F_GETFD) < 0)
 | 
						|
    return -1;
 | 
						|
 | 
						|
  /* No STREAM.  */
 | 
						|
  return 0;
 | 
						|
}
 | 
						|
compat_symbol (libc, isastream, isastream, GLIBC_2_1);
 | 
						|
 | 
						|
int
 | 
						|
attribute_compat_text_section
 | 
						|
putmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr,
 | 
						|
	int flags)
 | 
						|
{
 | 
						|
  __set_errno (ENOSYS);
 | 
						|
  return -1;
 | 
						|
}
 | 
						|
compat_symbol (libc, putmsg, putmsg, GLIBC_2_1);
 | 
						|
 | 
						|
int
 | 
						|
attribute_compat_text_section
 | 
						|
putpmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr,
 | 
						|
	 int band, int flags)
 | 
						|
{
 | 
						|
  __set_errno (ENOSYS);
 | 
						|
  return -1;
 | 
						|
}
 | 
						|
compat_symbol (libc, putpmsg, putpmsg, GLIBC_2_1);
 | 
						|
 | 
						|
#endif /* SHLIB_COMPAT */
 |