Search:

Type: Posts; User: bboozzoo

Search: Search took 0.01 seconds; generated 53 minute(s) ago.

  1. Replies
    4
    Views
    25,241

    1. #include 2. sys/types.h - as name...

    1. #include <stdint.h>
    2. sys/types.h - as name suggests is system specific (normally this might come with the kernel as it is on Linux, glibc uses particular version of kernel headers which provide...
  2. Thread: Text editor?

    by bboozzoo
    Replies
    34
    Views
    4,232

    who cares, OP doesn't have a clue anyway

    who cares, OP doesn't have a clue anyway
  3. Replies
    1
    Views
    1,596

    uhuh google? c-ares seems to be fine wrt....

    uhuh google? c-ares seems to be fine wrt. licensing
  4. Replies
    11
    Views
    3,338

    #define MAX_PASS_LEN 10 struct device_pass_s { ...

    #define MAX_PASS_LEN 10
    struct device_pass_s {
    char pass[MAX_PASS_LEN];
    };

    /* then the ioctl call should be the following */
    struct device_pass_s pass = {
    .pass = "mypass"
    };
  5. Replies
    5
    Views
    3,703

    uhhh, given that you mention 'giving space for...

    uhhh, given that you mention 'giving space for ip_h, ...' you don't seem to be opening SOCK_STREAM, but rather SOCK_RAW or even PF_PACKET. can you explain why?
  6. you need to have a toolchain for architecture,...

    you need to have a toolchain for architecture, one can be built using buildroot: http://buildroot.uclibc.org/ or scratchbox: http://scratchbox.org/
  7. Replies
    4
    Views
    1,987

    how is the code of myfile supposed to know the...

    how is the code of myfile supposed to know the how mystruct looks like?
  8. Replies
    22
    Views
    5,029

    omg, what's so bad about inet_aton/inet_pton that...

    omg, what's so bad about inet_aton/inet_pton that prevents you from using it? just take the IP address part from the string, pass is through inet_*ton, then & with the mask and you're done. Of course...
  9. Replies
    27
    Views
    3,102

    uhh write down this code and get it actually...

    uhh write down this code and get it actually compiled, if x, y, z are not stored in registers then change your compiler (btw. the loop is pointless, so the compiler would most probably just get rid...
  10. my dear, why not just use shell script instead?

    my dear, why not just use shell script instead?
  11. Replies
    52
    Views
    26,049

    Well it's not so hard actually, as long as you...

    Well it's not so hard actually, as long as you know what you're doing and don't care about screwing up libc allocator (never tested it though, but I do not see any reason why it should not).
    On UNIX...
  12. https://www.cs.colostate.edu/wiki/Gdb here's a...

    https://www.cs.colostate.edu/wiki/Gdb here's a decent bunch of references to number of tutorials
  13. Replies
    9
    Views
    1,270

    being extra lazy you can always use std::for_each...

    being extra lazy you can always use std::for_each from <algorithm> or if you need to break the loop explicitly at some point (and writing C++ code, you're likely to have Boost laying around)...
  14. Replies
    6
    Views
    5,029

    not really array[1][4] is an array of char[4]...

    not really array[1][4] is an array of char[4] with only 1 element
    why not use something like this:


    #define MAX_FIELD_LEN 40
    struct tuple_s {
    char field1[MAX_FIELD_LEN];
    char...
Results 1 to 14 of 14