Ignore:
Timestamp:
Jun 16, 2008, 1:04:49 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Changed command line parsing to sam's mygetopt.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/grab.c

    r2430 r2444  
    1616
    1717#include "neercs.h"
     18int grab_process(pid_t pid, char *ptyname, int ptyfd);
    1819
    1920static int memcpy_from_target(pid_t pid, void* dest, void* src, size_t n)
     
    125126    regs.ebx = oldfd;
    126127    regs.ecx = newfd;
    127    
     128
    128129    return do_syscall(pid, &regs);
    129130}
     
    149150
    150151    /* +4 because it's trcuncated on a multiple of 4 and we need 1 */
    151     memcpy_into_target(pid, target_page, path, strlen(path)+4); 
     152    memcpy_into_target(pid, target_page, path, strlen(path)+4);
    152153
    153154    regs.eax = SYS_open;
     
    155156    regs.ecx = O_RDWR;
    156157    regs.edx = 0755;
    157    
     158
    158159    if((ret = do_syscall(pid, &regs)) < 0)
    159160    {
     
    309310        }
    310311    }
    311    
     312
    312313    kill(pid, SIGWINCH);
    313314
Note: See TracChangeset for help on using the changeset viewer.