mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 10:22:41 +08:00
* sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
Add netiucv/iucv.h. * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file. * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV protocol. * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise. * sysdeps/unix/sysv/linux/s390/opensock.c: New file. * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
This commit is contained in:
parent
70d5b6ef41
commit
ea2c47b6be
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
||||
2007-11-23 Martin Schwidefsky <schwidefsky@de.ibm.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):
|
||||
Add netiucv/iucv.h.
|
||||
* sysdeps/unix/sysv/linux/netiucv/iucv.h: New file.
|
||||
* sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV
|
||||
protocol.
|
||||
* sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise.
|
||||
* sysdeps/unix/sysv/linux/s390/opensock.c: New file.
|
||||
* sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
|
||||
|
||||
2007-11-22 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
[BZ #5382]
|
||||
|
@ -122,7 +122,7 @@ ifeq ($(subdir),inet)
|
||||
sysdep_headers += netinet/if_fddi.h netinet/if_tr.h \
|
||||
netipx/ipx.h netash/ash.h netax25/ax25.h netatalk/at.h \
|
||||
netrom/netrom.h netpacket/packet.h netrose/rose.h \
|
||||
neteconet/ec.h
|
||||
neteconet/ec.h netiucv/iucv.h
|
||||
endif
|
||||
|
||||
# Don't compile the ctype glue code, since there is no old non-GNU C library.
|
||||
|
39
sysdeps/unix/sysv/linux/netiucv/iucv.h
Normal file
39
sysdeps/unix/sysv/linux/netiucv/iucv.h
Normal file
@ -0,0 +1,39 @@
|
||||
/* Copyright (C) 2007 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, write to the Free
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#ifndef __NETIUCV_IUCV_H
|
||||
#define __NETIUCV_IUCV_H 1
|
||||
|
||||
#include <features.h>
|
||||
#include <bits/sockaddr.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
struct sockaddr_iucv
|
||||
{
|
||||
__SOCKADDR_COMMON (siucv_);
|
||||
unsigned short siucv_port; /* Reserved */
|
||||
unsigned int siucv_addr; /* Reserved */
|
||||
char siucv_nodeid[8]; /* Reserved */
|
||||
char siucv_user_id[8]; /* Guest User Id */
|
||||
char siucv_name[8]; /* Application Name */
|
||||
};
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1999, 2001, 2002, 2007 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
|
||||
@ -53,7 +53,10 @@ __opensock (void)
|
||||
{ AF_APPLETALK, "net/appletalk" },
|
||||
{ AF_ECONET, "sys/net/econet" },
|
||||
{ AF_ASH, "sys/net/ash" },
|
||||
{ AF_X25, "net/x25" }
|
||||
{ AF_X25, "net/x25" },
|
||||
#ifdef NEED_AF_IUCV
|
||||
{ AF_IUCV, "net/iucv" }
|
||||
#endif
|
||||
};
|
||||
#define nafs (sizeof (afs) / sizeof (afs[0]))
|
||||
char fname[sizeof "/proc/" + 14];
|
||||
|
2
sysdeps/unix/sysv/linux/s390/opensock.c
Normal file
2
sysdeps/unix/sysv/linux/s390/opensock.c
Normal file
@ -0,0 +1,2 @@
|
||||
#define NEED_AF_IUCV 1
|
||||
#include "../opensock.c"
|
2
sysdeps/unix/sysv/linux/s390/sa_len.c
Normal file
2
sysdeps/unix/sysv/linux/s390/sa_len.c
Normal file
@ -0,0 +1,2 @@
|
||||
#define NEED_AF_IUCV 1
|
||||
#include "../sa_len.c"
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998, 1999, 2002, 2007 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
|
||||
@ -26,6 +26,7 @@
|
||||
#include <netipx/ipx.h>
|
||||
#include <netpacket/packet.h>
|
||||
#include <netrose/rose.h>
|
||||
#include <netiucv/iucv.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
int
|
||||
@ -47,6 +48,10 @@ __libc_sa_len (sa_family_t af)
|
||||
return sizeof (struct sockaddr_in6);
|
||||
case AF_IPX:
|
||||
return sizeof (struct sockaddr_ipx);
|
||||
#ifdef NEED_AF_IUCV
|
||||
case AF_IUCV:
|
||||
return sizeof (struct sockaddr_iucv);
|
||||
#endif
|
||||
case AF_LOCAL:
|
||||
return sizeof (struct sockaddr_un);
|
||||
case AF_PACKET:
|
||||
|
Loading…
Reference in New Issue
Block a user