| 1 | /* |
|---|
| 2 | * neercs console-based window manager |
|---|
| 3 | * Copyright (c) 2008-2010 Sam Hocevar <sam@hocevar.net> |
|---|
| 4 | * All Rights Reserved |
|---|
| 5 | * |
|---|
| 6 | * This program is free software. It comes without any warranty, to |
|---|
| 7 | * the extent permitted by applicable law. You can redistribute it |
|---|
| 8 | * and/or modify it under the terms of the Do What The Fuck You Want |
|---|
| 9 | * To Public License, Version 2, as published by Sam Hocevar. See |
|---|
| 10 | * http://sam.zoy.org/wtfpl/COPYING for more details. |
|---|
| 11 | */ |
|---|
| 12 | |
|---|
| 13 | #include <termios.h> |
|---|
| 14 | |
|---|
| 15 | struct mytrace; |
|---|
| 16 | |
|---|
| 17 | struct mytrace* mytrace_attach(long int pid); |
|---|
| 18 | struct mytrace* mytrace_fork(struct mytrace *t); |
|---|
| 19 | int mytrace_detach(struct mytrace *t); |
|---|
| 20 | long mytrace_getpid(struct mytrace *t); |
|---|
| 21 | |
|---|
| 22 | int mytrace_open(struct mytrace *t, char const *path, int mode); |
|---|
| 23 | int mytrace_write(struct mytrace *t, int fd, char const *data, size_t len); |
|---|
| 24 | int mytrace_close(struct mytrace *t, int fd); |
|---|
| 25 | int mytrace_dup2(struct mytrace *t, int oldfd, int newfd); |
|---|
| 26 | int mytrace_setpgid(struct mytrace *t, long pid, long pgid); |
|---|
| 27 | int mytrace_setsid(struct mytrace *t); |
|---|
| 28 | int mytrace_kill(struct mytrace *t, long pid, int sig); |
|---|
| 29 | int mytrace_exit(struct mytrace *t, int status); |
|---|
| 30 | int mytrace_exec(struct mytrace *t, char const *command); |
|---|
| 31 | int mytrace_tcgets(struct mytrace *t, int fd, struct termios *tos); |
|---|
| 32 | int mytrace_tcsets(struct mytrace *t, int fd, struct termios *tos); |
|---|
| 33 | int mytrace_sctty(struct mytrace *t, int fd); |
|---|