source: neercs/trunk/src/mytrace.h @ 3961

Last change on this file since 3961 was 3891, checked in by Pascal Terjan, 11 years ago
  • Store real pid in screen struct (even if not used) and properly set control terminal (even if not needed)
  • Property svn:keywords set to Id
File size: 1.4 KB
2 *  neercs        console-based window manager
3 *  Copyright (c) 2008 Sam Hocevar <>
4 *                All Rights Reserved
5 *
6 *  $Id: mytrace.h 3891 2009-11-06 17:46:05Z pterjan $
7 *
8 *  This program is free software. It comes without any warranty, to
9 *  the extent permitted by applicable law. You can redistribute it
10 *  and/or modify it under the terms of the Do What The Fuck You Want
11 *  To Public License, Version 2, as published by Sam Hocevar. See
12 * for more details.
13 */
15#include <termios.h>
17struct mytrace;
19struct mytrace* mytrace_attach(long int pid);
20struct mytrace* mytrace_fork(struct mytrace *t);
21int mytrace_detach(struct mytrace *t);
22long mytrace_getpid(struct mytrace *t);
24int mytrace_open(struct mytrace *t, char const *path, int mode);
25int mytrace_write(struct mytrace *t, int fd, char const *data, size_t len);
26int mytrace_close(struct mytrace *t, int fd);
27int mytrace_dup2(struct mytrace *t, int oldfd, int newfd);
28int mytrace_setpgid(struct mytrace *t, long pid, long pgid);
29int mytrace_setsid(struct mytrace *t);
30int mytrace_kill(struct mytrace *t, long pid, int sig);
31int mytrace_exit(struct mytrace *t, int status);
32int mytrace_exec(struct mytrace *t, char const *command);
33int mytrace_tcgets(struct mytrace *t, int fd, struct termios *tos);
34int mytrace_tcsets(struct mytrace *t, int fd, struct termios *tos);
35int mytrace_sctty(struct mytrace *t, int fd);
Note: See TracBrowser for help on using the repository browser.