Last change
on this file since 2509 was
2509,
checked in by Sam Hocevar, 15 years ago
|
- Split grab.c into the grabbing heuristic and the pure ptrace interface,
because we might use it for other things in the future.
|
File size:
854 bytes
|
Rev | Line | |
---|
[2509] | 1 | /* |
---|
| 2 | * neercs console-based window manager |
---|
| 3 | * Copyright (c) 2008 Sam Hocevar <sam@zoy.org> |
---|
| 4 | * All Rights Reserved |
---|
| 5 | * |
---|
| 6 | * $Id$ |
---|
| 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 | * http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
| 13 | */ |
---|
| 14 | |
---|
| 15 | struct mytrace; |
---|
| 16 | |
---|
| 17 | struct mytrace* mytrace_attach(long int pid); |
---|
| 18 | int mytrace_detach(struct mytrace *t); |
---|
| 19 | |
---|
| 20 | int mytrace_open(struct mytrace *t, char *path, int mode); |
---|
| 21 | int mytrace_close(struct mytrace *t, int fd); |
---|
| 22 | int mytrace_dup2(struct mytrace *t, int oldfd, int newfd); |
---|
| 23 | int mytrace_setpgid(struct mytrace *t, long pid, long pgid); |
---|
| 24 | int mytrace_setsid(struct mytrace *t); |
---|
| 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.