Search:

Type: Posts; User: chrismiceli

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    10,746

    username to uid

    Given a username, is there an easy way to convert this to a uid in c/c++. I would hope not to have to look at /etc/passwd?
    Thanks
  2. Replies
    7
    Views
    3,909

    I am not using it, this library is....

    I am not using it, this library is.
    http://www.ossp.org/pkg/lib/uuid/
    I can modify the library, but the solution must be extremely portable.
  3. Replies
    7
    Views
    3,909

    srandom thread-safety

    I have found online evidence that suggest that srandom is not thread safe. I am unable to proove this because I don't know if this was fixed in recent years. Do you know whether this thread safety...
  4. Replies
    4
    Views
    1,123

    Due to C++'s ability to overload functions, if ...

    Due to C++'s ability to overload functions, if
    d1s->getX()+1 and
    d1s->getY() +1
    are types convertable to ints, the compiler should know to call the two parameter function with type ints.
  5. Replies
    6
    Views
    1,441

    you could look into signals maybe in linux. They...

    you could look into signals maybe in linux. They might be useful.
  6. Replies
    4
    Views
    2,556

    As many characters that will fit with the...

    As many characters that will fit with the attatched '\0' put at the end of the buffer.
    Just Clarifying.
  7. Replies
    5
    Views
    12,594

    What are you trying to do and I can tell you if...

    What are you trying to do and I can tell you if that code is necessary or not.
  8. Replies
    5
    Views
    12,594

    I don't think that there is a way to tell what...

    I don't think that there is a way to tell what file descriptor is available for io, but you might want to look into the select function. This function comes in handy when working with sockets, so...
  9. Replies
    5
    Views
    12,594

    What do you want to know about sigio? It is sent...

    What do you want to know about sigio? It is sent to a program when io has become possible. You may want to setup a signal handler using signal(), sigaction(), etc.
    fcntl() man page

    so...
  10. Why would you want to do this? You can not make...

    Why would you want to do this? You can not make up an address to assign a variable to. You can make a pointer and then make it point to an address. If you could pick the address off a variable,...
  11. Replies
    11
    Views
    3,320

    Sorry, I didn't read the whole thread, I just saw...

    Sorry, I didn't read the whole thread, I just saw that stormtrooper said that argv[0] = program.exe
  12. Replies
    11
    Views
    3,320

    Not sure if I remember right, but I don't think...

    Not sure if I remember right, but I don't think argv[0] is guarenteed to be the program name.
  13. Thread: pci driver

    by chrismiceli
    Replies
    2
    Views
    3,846

    http://lwn.net/images/pdf/LDD3/ch12.pdf -good...

    http://lwn.net/images/pdf/LDD3/ch12.pdf
    -good luck
  14. Replies
    8
    Views
    5,493

    That won't give the simplified answer though...

    That won't give the simplified answer though 0rion. To do that you need to look up gcm algorithms.
  15. Replies
    6
    Views
    1,979

    The reason people forget to add the -lm when...

    The reason people forget to add the -lm when using the math library is because they think it is part of the standard. Well it is, but they decided to link the c library automatically to all...
  16. Replies
    5
    Views
    2,120

    You have to link with the math library. gcc -o...

    You have to link with the math library.
    gcc -o blah blah.c -lm
  17. Replies
    23
    Views
    6,959

    I am on the chess team at school, I would be...

    I am on the chess team at school, I would be willing to play, but I prefer longer games than 5/3, mabey aroudn 15 minutes or 10, but more than five. That is too fast, doesn't create tactically...
  18. Replies
    8
    Views
    1,817

    Yeah, Salem is right, if you want the most...

    Yeah, Salem is right, if you want the most accurate timing, you need to write a kernel driver, that deals with the times instead, then it can call tasklet. But to change a user process's priority,...
  19. Replies
    2
    Views
    2,094

    You need to give name some room to point to. ...

    You need to give name some room to point to. Like this
    t-> name = malloc(512 * sizeof(char));
    /* then */
    strcpy(t->name, "robot name");
    then strlen() should work and printing it will too. Be...
  20. Replies
    5
    Views
    2,603

    What do you consider important?

    What do you consider important?
  21. Replies
    4
    Views
    1,773

    Use sockets to try and make a connec()tion to an...

    Use sockets to try and make a connec()tion to an outside server. You could I guess check to see if they have everything set up for internet, but that doesn't mean it is going to work, so you will...
  22. Replies
    11
    Views
    4,642

    you don't need the & when you are scanning into...

    you don't need the & when you are scanning into arrays, you might want to start looking into fgets http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044652485&id=1043284385
    Then you might...
  23. Replies
    35
    Views
    6,226

    search the boards for both of those answers then...

    search the boards for both of those answers then ask again
  24. Replies
    10
    Views
    3,171

    Well, if you network cable is plugged in, you...

    Well, if you network cable is plugged in, you should have a connection, right? So just ping something, get the result, and point your symlinks accordingly.
  25. Replies
    10
    Views
    3,171

    Well, assuming you know shell scripting, because...

    Well, assuming you know shell scripting, because I don't, you could do this. When you plug in your network card (wireless one), a device is created in /dev right? So check to see if that device...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4