mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
De-warning a few stubs.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2014-12-04 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* io/openat64.c: #include <libc-internal.h>
|
||||||
|
(__openat64): Prototypify. Use ignore_value on MODE.
|
||||||
|
* io/openat.c: Likewise.
|
||||||
|
* misc/reboot.c: #include <libc-internal.h>
|
||||||
|
(reboot): Prototypify. Use ignore_value on HOWTO.
|
||||||
|
* misc/ptrace.c: #include <libc-internal.h>
|
||||||
|
(ptrace): Prototypify. Use ignore_value for va_arg'd parameters.
|
||||||
|
|
||||||
2014-12-04 Joseph Myers <joseph@codesourcery.com>
|
2014-12-04 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* conform/list-header-symbols.pl (%extra_syms): Add h_errno for
|
* conform/list-header-symbols.pl (%extra_syms): Add h_errno for
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <kernel-features.h>
|
#include <kernel-features.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
/* Some mostly-generic code (e.g. sysdeps/posix/getcwd.c) uses this variable
|
/* Some mostly-generic code (e.g. sysdeps/posix/getcwd.c) uses this variable
|
||||||
if __ASSUME_ATFCTS is not defined. */
|
if __ASSUME_ATFCTS is not defined. */
|
||||||
@ -33,10 +34,7 @@ int __have_atfcts;
|
|||||||
the directory associated with FD. If OFLAG includes O_CREAT, a
|
the directory associated with FD. If OFLAG includes O_CREAT, a
|
||||||
third argument is the file protection. */
|
third argument is the file protection. */
|
||||||
int
|
int
|
||||||
__openat (fd, file, oflag)
|
__openat (int fd, const char *file, int oflag, ...)
|
||||||
int fd;
|
|
||||||
const char *file;
|
|
||||||
int oflag;
|
|
||||||
{
|
{
|
||||||
int mode;
|
int mode;
|
||||||
|
|
||||||
@ -66,6 +64,8 @@ __openat (fd, file, oflag)
|
|||||||
va_start (arg, oflag);
|
va_start (arg, oflag);
|
||||||
mode = va_arg (arg, int);
|
mode = va_arg (arg, int);
|
||||||
va_end (arg);
|
va_end (arg);
|
||||||
|
|
||||||
|
ignore_value (mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
|
@ -21,15 +21,13 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
/* Open FILE with access OFLAG. Interpret relative paths relative to
|
/* Open FILE with access OFLAG. Interpret relative paths relative to
|
||||||
the directory associated with FD. If OFLAG includes O_CREAT, a
|
the directory associated with FD. If OFLAG includes O_CREAT, a
|
||||||
third argument is the file protection. */
|
third argument is the file protection. */
|
||||||
int
|
int
|
||||||
__openat64 (fd, file, oflag)
|
__openat64 (int fd, const char *file, int oflag, ...)
|
||||||
int fd;
|
|
||||||
const char *file;
|
|
||||||
int oflag;
|
|
||||||
{
|
{
|
||||||
int mode;
|
int mode;
|
||||||
|
|
||||||
@ -59,6 +57,8 @@ __openat64 (fd, file, oflag)
|
|||||||
va_start (arg, oflag);
|
va_start (arg, oflag);
|
||||||
mode = va_arg (arg, int);
|
mode = va_arg (arg, int);
|
||||||
va_end (arg);
|
va_end (arg);
|
||||||
|
|
||||||
|
ignore_value (mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
/* Perform process tracing functions. REQUEST is one of the values
|
/* Perform process tracing functions. REQUEST is one of the values
|
||||||
in <sys/ptrace.h>, and determines the action to be taken.
|
in <sys/ptrace.h>, and determines the action to be taken.
|
||||||
@ -30,8 +31,7 @@
|
|||||||
pid_t PID, void *ADDR, int DATA, void *ADDR2
|
pid_t PID, void *ADDR, int DATA, void *ADDR2
|
||||||
after PID. */
|
after PID. */
|
||||||
int
|
int
|
||||||
ptrace (request)
|
ptrace (enum __ptrace_request request, ...)
|
||||||
enum __ptrace_request request;
|
|
||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
void *addr;
|
void *addr;
|
||||||
@ -60,32 +60,41 @@ ptrace (request)
|
|||||||
case PTRACE_SETFPREGS:
|
case PTRACE_SETFPREGS:
|
||||||
case PTRACE_GETFPAREGS:
|
case PTRACE_GETFPAREGS:
|
||||||
case PTRACE_SETFPAREGS:
|
case PTRACE_SETFPAREGS:
|
||||||
va_start(ap, request);
|
va_start (ap, request);
|
||||||
pid = va_arg(ap, pid_t);
|
pid = va_arg (ap, pid_t);
|
||||||
addr = va_arg(ap, void *);
|
addr = va_arg (ap, void *);
|
||||||
va_end(ap);
|
va_end (ap);
|
||||||
|
ignore_value (pid);
|
||||||
|
ignore_value (addr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PTRACE_POKETEXT:
|
case PTRACE_POKETEXT:
|
||||||
case PTRACE_POKEDATA:
|
case PTRACE_POKEDATA:
|
||||||
case PTRACE_POKEUSER:
|
case PTRACE_POKEUSER:
|
||||||
va_start(ap, request);
|
va_start (ap, request);
|
||||||
pid = va_arg(ap, pid_t);
|
pid = va_arg (ap, pid_t);
|
||||||
addr = va_arg(ap, void *);
|
addr = va_arg (ap, void *);
|
||||||
data = va_arg(ap, int);
|
data = va_arg (ap, int);
|
||||||
va_end(ap);
|
va_end (ap);
|
||||||
|
ignore_value (pid);
|
||||||
|
ignore_value (addr);
|
||||||
|
ignore_value (data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PTRACE_READDATA:
|
case PTRACE_READDATA:
|
||||||
case PTRACE_WRITEDATA:
|
case PTRACE_WRITEDATA:
|
||||||
case PTRACE_READTEXT:
|
case PTRACE_READTEXT:
|
||||||
case PTRACE_WRITETEXT:
|
case PTRACE_WRITETEXT:
|
||||||
va_start(ap, request);
|
va_start (ap, request);
|
||||||
pid = va_arg(ap, pid_t);
|
pid = va_arg (ap, pid_t);
|
||||||
addr = va_arg(ap, void *);
|
addr = va_arg (ap, void *);
|
||||||
data = va_arg(ap, int);
|
data = va_arg (ap, int);
|
||||||
addr2 = va_arg(ap, void *);
|
addr2 = va_arg (ap, void *);
|
||||||
va_end(ap);
|
va_end (ap);
|
||||||
|
ignore_value (pid);
|
||||||
|
ignore_value (addr);
|
||||||
|
ignore_value (data);
|
||||||
|
ignore_value (addr2);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -97,5 +106,4 @@ ptrace (request)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stub_warning (ptrace)
|
stub_warning (ptrace)
|
||||||
|
@ -18,15 +18,16 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/reboot.h>
|
#include <sys/reboot.h>
|
||||||
|
#include <libc-internal.h>
|
||||||
|
|
||||||
/* Reboot the system. */
|
/* Reboot the system. */
|
||||||
int
|
int
|
||||||
reboot (howto)
|
reboot (int howto)
|
||||||
int howto;
|
|
||||||
{
|
{
|
||||||
|
ignore_value (howto);
|
||||||
|
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stub_warning (reboot)
|
stub_warning (reboot)
|
||||||
|
Reference in New Issue
Block a user