~ubuntu-branches/ubuntu/saucy/radare/saucy

« back to all changes in this revision

Viewing changes to src/io.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Reichel
  • Date: 2009-05-22 19:01:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090522190100-qqp4aja112976t5v
Tags: 20090522-1
* new hg checkout
 - added 'cX' command to compare like 'cc' does but using two side hexdiff dump format
 - specify pointer & data size in pm with %<size>
 - add graph.weight
 - fix 'c' command (missing radare_read(0))
 - added /P search command that searchs for proximity in bytelevel distance
 - added more 'ag' and 'gu' commands to readline autocompletion.
 - fix build of debugger for non-linux systems
 - fixed code analysis at startup
 - more work in graphs (graph.split)
 - fixups in x86 code analysis

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2007, 2008
 
2
 * Copyright (C) 2007, 2008, 2009
3
3
 *       pancake <youterm.com>
4
4
 *
5
5
 * radare is free software; you can redistribute it and/or modify
21
21
#include "main.h"
22
22
#include <dirent.h>
23
23
 
 
24
int io_write_last = 0;
 
25
 
24
26
int io_system(const char *command)
25
27
{
26
28
        FIND_FD(config.fd)
72
74
                eprintf("Not in write mode\n");
73
75
                return -1;
74
76
        }
 
77
        io_write_last = count;
75
78
        FIND_FD(fd)
76
79
                IF_HANDLED(fd, write)
77
80
                return plugins[i].write(fd, buf, count);