mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
24fa6c0832
Rescue the useful contents of the soon-to-be-gone user-util.h. pty.c now gets ptsname from stdlib.h like it should have always done. CATCH_EINTR is now in os.h, although perhaps all usage should be under os-Linux at some point. get_pty is also in os.h. This patch restores the old definition of ARRAY_SIZE in user.h. This file is included only in userspace files, so there will be no conflict with the kernel's new ARRAY_SIZE. The copy of the kernel's ARRAY_SIZE and associated infrastructure is now gone. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
30 lines
784 B
C
30 lines
784 B
C
/*
|
|
* Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com)
|
|
* Licensed under the GPL
|
|
*/
|
|
|
|
#ifndef __USER_UTIL_H__
|
|
#define __USER_UTIL_H__
|
|
|
|
#include "sysdep/ptrace.h"
|
|
|
|
extern int mode_tt;
|
|
|
|
extern int grantpt(int __fd);
|
|
extern int unlockpt(int __fd);
|
|
|
|
extern void *add_signal_handler(int sig, void (*handler)(int));
|
|
extern void input_cb(void (*proc)(void *), void *arg, int arg_len);
|
|
extern int switcheroo(int fd, int prot, void *from, void *to, int size);
|
|
extern void do_exec(int old_pid, int new_pid);
|
|
extern void tracer_panic(char *msg, ...)
|
|
__attribute__ ((format (printf, 1, 2)));
|
|
extern int detach(int pid, int sig);
|
|
extern int attach(int pid);
|
|
extern void kill_child_dead(int pid);
|
|
extern int cont(int pid);
|
|
extern void check_sigio(void);
|
|
extern int raw(int fd);
|
|
|
|
#endif
|