summary refs log tree commit diff
path: root/misc/ioctltst.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-06 22:16:55 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-06 22:16:55 +0000
commit39d31947cfc072d319ed5c5e69a0dfcd9c98e7d5 (patch)
treeaeac85e24cf537be551f04272559a0943ef45ea4 /misc/ioctltst.c
parent7fcc87f4673c79e7dbcc7d972e646383b5e47ce3 (diff)
downloadglibc-39d31947cfc072d319ed5c5e69a0dfcd9c98e7d5.tar.gz
glibc-39d31947cfc072d319ed5c5e69a0dfcd9c98e7d5.tar.xz
glibc-39d31947cfc072d319ed5c5e69a0dfcd9c98e7d5.zip
Update.
1999-09-06  Ulrich Drepper  <drepper@cygnus.com>

	* time/ap.c: Removed.  It was not used.
	* time/date.c: Likewise.
	* sysdeps/unix/nlist.c: Likewise.
	* sysdeps/generic/nlist.c: Likewise.
	* sysdeps/generic/varargs.h: Likewise.
	* stdio-common/scanf11.c: Likewise.
	* stdio-common/scanf6.c: Likewise.
	* scripts/=__ify: Likewise.
	* scripts/printsources: Likewise.
	* resolv/getnetnamadr.c: Likewise.
	* posix/id.c: Likewise.
	* misc/ioctltst.c: Likewise.
	* misc/nlist.h: Likewise.
	* math/test-math.h: Likewise.
	* include/nlist.h: Likewise.
Diffstat (limited to 'misc/ioctltst.c')
-rw-r--r--misc/ioctltst.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/misc/ioctltst.c b/misc/ioctltst.c
deleted file mode 100644
index bf3286b650..0000000000
--- a/misc/ioctltst.c
+++ /dev/null
@@ -1,55 +0,0 @@
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/ioctl.h>
-#include <net/if.h>
-#include <netinet/in.h>
-
-/*
- * open a socket, get the process group information of the socket, and use the
- * socket to get the network interface configuration list
- */
-main(int argc, char *argv[])
-{
-  int sock;
-  int ioctl_result;
-
-  /* get a socket */
-  sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
-  if (sock < 0)
-    {
-      perror("Cannot create socket");
-      exit(1);
-    }
-
-  /* use ioctl() to get the process group information */
-  {
-    int get_process_group;
-
-    ioctl_result = ioctl(sock, SIOCGPGRP, (char *) &get_process_group);
-
-    if (ioctl_result < 0)
-      {
-        int my_errno = errno;
-
-        fprintf(stderr, "errno %d ", my_errno);
-        perror("ioctl(get process group)");
-      }
-  }
-
-  /* use ioctl() to get the interface configuration list */
-  {
-    static struct ifconf ifc;	/* init to 0 */
-
-    ioctl_result = ioctl(sock, SIOCGIFCONF, (char *) &ifc);
-
-    if (ioctl_result < 0)
-      {
-        int my_errno = errno;
-
-        fprintf(stderr, "errno %d ", my_errno);
-        perror("ioctl(get interface configuration list)");
-      }
-  }
-}