Ignore:
Timestamp:
Jul 1, 2008, 1:26:30 AM (13 years ago)
Author:
Sam Hocevar
Message:
  • Start refactoring grab.c: instead of writing code to the stack, we wait for a system call to be made and simply rewind eip/rip. Should now work on amd64, too.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/neercs.h

    r2500 r2505  
    1515
    1616#include <stdint.h>
     17
    1718#include <caca.h>
    1819
     
    132133
    133134int create_pty(char *cmd, unsigned int w, unsigned int h, int *cpid);
    134 int create_pty_grab(pid_t pid, unsigned int w, unsigned int h);
    135 int grab_process(pid_t pid, char *ptyname, int ptyfd);
     135int create_pty_grab(long pid, unsigned int w, unsigned int h);
     136int grab_process(long pid, char *ptyname, int ptyfd);
    136137
    137138long int import_term(struct screen_list *screen_list, struct screen *sc, void const *data, unsigned int size);
     
    206207int fill_config(struct screen_list *screen_list);
    207208
    208 #if 0
     209#if 1
    209210#   define debug(f, z...) fprintf(stderr, f "\n", z)
    210211#else
Note: See TracChangeset for help on using the changeset viewer.