View | Details | Raw Unified | Return to bug 14362
Collapse All | Expand All

(-)a/include/sys/ioctl.h (-1 / +1 lines)
Lines 2-6 Link Here
2
#include <misc/sys/ioctl.h>
2
#include <misc/sys/ioctl.h>
3
3
4
/* Now define the internal interfaces.  */
4
/* Now define the internal interfaces.  */
5
extern int __ioctl (int __fd, unsigned long int __request, ...);
5
extern int __ioctl (int __fd, int __request, ...);
6
#endif
6
#endif
(-)a/misc/ioctl.c (-2 / +2 lines)
Lines 1-4 Link Here
1
/* Copyright (C) 1991, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
1
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
2
   This file is part of the GNU C Library.
2
   This file is part of the GNU C Library.
3
3
4
   The GNU C Library is free software; you can redistribute it and/or
4
   The GNU C Library is free software; you can redistribute it and/or
Lines 23-29 Link Here
23
int
23
int
24
__ioctl (fd, request)
24
__ioctl (fd, request)
25
     int fd;
25
     int fd;
26
     unsigned long int request;
26
     int request;
27
{
27
{
28
  __set_errno (ENOSYS);
28
  __set_errno (ENOSYS);
29
  return -1;
29
  return -1;
(-)a/misc/sys/ioctl.h (-2 / +2 lines)
Lines 1-4 Link Here
1
/* Copyright (C) 1991, 92, 93, 94, 96, 98, 99 Free Software Foundation, Inc.
1
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
2
   This file is part of the GNU C Library.
2
   This file is part of the GNU C Library.
3
3
4
   The GNU C Library is free software; you can redistribute it and/or
4
   The GNU C Library is free software; you can redistribute it and/or
Lines 38-44 __BEGIN_DECLS Link Here
38
/* Perform the I/O control operation specified by REQUEST on FD.
38
/* Perform the I/O control operation specified by REQUEST on FD.
39
   One argument may follow; its presence and type depend on REQUEST.
39
   One argument may follow; its presence and type depend on REQUEST.
40
   Return value depends on REQUEST.  Usually -1 indicates error.  */
40
   Return value depends on REQUEST.  Usually -1 indicates error.  */
41
extern int ioctl (int __fd, unsigned long int __request, ...) __THROW;
41
extern int ioctl (int __fd, int __request, ...) __THROW;
42
42
43
__END_DECLS
43
__END_DECLS
44
44
(-)a/ports/sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (-1 / +4 lines)
Lines 1-4 Link Here
1
/* Copyright 2003, 2005 Free Software Foundation, Inc.
1
/* Copyright 2003-2012 Free Software Foundation, Inc.
2
   This file is part of the GNU C Library.
2
   This file is part of the GNU C Library.
3
3
4
   The GNU C Library is free software; you can redistribute it and/or
4
   The GNU C Library is free software; you can redistribute it and/or
Lines 19-24 Link Here
19
19
20
#include <sys/asm.h>
20
#include <sys/asm.h>
21
21
22
/* FIXME: Now that the userspace API claims that the argument
23
          if of type `int' does this code need updating?  */
24
22
/* Sign-extend the ioctl number, since the kernel wants it as a
25
/* Sign-extend the ioctl number, since the kernel wants it as a
23
   sign-extended 32-bit value, but our prototype is that of a long.  */
26
   sign-extended 32-bit value, but our prototype is that of a long.  */
24
27
(-)a/ports/sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (-1 / +3 lines)
Lines 1-4 Link Here
1
/* Copyright (C) 2011 Free Software Foundation, Inc.
1
/* Copyright (C) 2011-2012 Free Software Foundation, Inc.
2
   This file is part of the GNU C Library.
2
   This file is part of the GNU C Library.
3
   Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
3
   Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
4
4
Lines 16-21 Link Here
16
   License along with the GNU C Library.  If not, see
16
   License along with the GNU C Library.  If not, see
17
   <http://www.gnu.org/licenses/>.  */
17
   <http://www.gnu.org/licenses/>.  */
18
18
19
/* FIXME: Now that the userspace API claims that the argument
20
          if of type `int' does this code need updating?  */
19
21
20
/* TILE-Gx specifies that "unsigned int" is sign extended in the high
22
/* TILE-Gx specifies that "unsigned int" is sign extended in the high
21
   32 bits.  But since the userspace API claims to be "unsigned long",
23
   32 bits.  But since the userspace API claims to be "unsigned long",
(-)a/sysdeps/mach/hurd/ioctl.c (-1 / +1 lines)
Lines 36-42 Link Here
36
/* Perform the I/O control operation specified by REQUEST on FD.
36
/* Perform the I/O control operation specified by REQUEST on FD.
37
   The actual type and use of ARG and the return value depend on REQUEST.  */
37
   The actual type and use of ARG and the return value depend on REQUEST.  */
38
int
38
int
39
__ioctl (int fd, unsigned long int request, ...)
39
__ioctl (int fd, int request, ...)
40
{
40
{
41
#ifdef MACH_MSG_TYPE_CHAR
41
#ifdef MACH_MSG_TYPE_CHAR
42
  /* Map individual type fields to Mach IPC types.  */
42
  /* Map individual type fields to Mach IPC types.  */
(-)a/sysdeps/unix/sysv/linux/powerpc/ioctl.c (-1 / +1 lines)
Lines 25-31 Link Here
25
   using the new-style struct termios, and translate them to old-style.  */
25
   using the new-style struct termios, and translate them to old-style.  */
26
26
27
int
27
int
28
__ioctl (int fd, unsigned long int request, ...)
28
__ioctl (int fd, int request, ...)
29
{
29
{
30
  void *arg;
30
  void *arg;
31
  va_list ap;
31
  va_list ap;

Return to bug 14362