Find the answer to your Linux question:

Search:

Type: Posts; User: the_unforgiven; Keyword(s):

Page 1 of 17 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    1,490

    What you're looking for is dlopen()/dlsym()...

    What you're looking for is dlopen()/dlsym()
    Especially, check out the RTLD_LAZY flag.
  2. Pipes make sense for a set of processes having a...

    Pipes make sense for a set of processes having a relationship (falling within the same hierarchy - parent-child sort of), so pipes cannot be used for totally independent processes.

    You could use...
  3. Replies
    6
    Views
    1,052

    I don't know if the following will work - use it...

    I don't know if the following will work - use it at your own risk!
    I suggest you try it on a standalone - non-critical system first before using on the main server...

    Login as a normal user and...
  4. Replies
    2
    Views
    4,340

    Probably, what you need is stringstream. Here is...

    Probably, what you need is stringstream.
    Here is the reference of stringstream:
    stringstream - C++ Reference

    Check out the ios class hierarchy at:
    IOstream Library - C++ Reference

    HTH ;)
  5. Replies
    3
    Views
    859

    You need to run your program as ./testReplace...

    You need to run your program as
    ./testReplace test with whatever your binary name is.

    The program looks ok, no problems with it whatsoever.
  6. Replies
    3
    Views
    4,983

    What you're looking for are smart pointers. Take...

    What you're looking for are smart pointers.
    Take a look at following links:

    Smart pointer - Wikipedia, the free encyclopedia
    Smart Pointers - What, Why, Which?
    Smart Pointers

    HTH ;)
  7. Replies
    6
    Views
    932

    The main reason for the segfault is ...

    The main reason for the segfault is
    strncpy(tmp->data,test_string,strlen(test_string)); without allocating memory for tmp->data.

    The statement
    tmp = malloc(sizeof(*tmp)); is perfectly legal...
  8. Or, better still, you could use the file...

    Or, better still, you could use the file /proc/<PID>/cmdline - pid can be got with getpid().
  9. No, this is not possible - argv is local to...

    No, this is not possible - argv is local to main() only - if main() is declared as
    int main(int argc, char** argv) - which is the de-facto standard.

    However, you can make function_from_library()...
  10. Replies
    2
    Views
    790

    No, I don't think using gcc (for C language) to...

    No, I don't think using gcc (for C language) to link to QT3/4/whatever is possible.
    QT is natively C++ - so a C compiler (linker to be precise) cannot handle the name-mangling and linking.
    ...
  11. Replies
    5
    Views
    5,777

    You might want to try: GameDev.net - all your...

    You might want to try:
    GameDev.net - all your game development needs
    NeHe Productions: Main Page

    There are many game development forums available online.

    HTH ;)
  12. I think it should be possible to use a dictionary...

    I think it should be possible to use a dictionary API (like what GNU aspell does) to query all forms of a word/verb.

    You can check out the sources of aspell.
  13. Replies
    8
    Views
    2,806

    When a process is started by the kernel, it opens...

    When a process is started by the kernel, it opens 3 file descriptors by default for every process:
    o. 0 -> stdin (mapped to keyboard)
    o. 1 -> stdout (mapped to the monitor/console/terminal)
    o. 2...
  14. Replies
    8
    Views
    2,806

    2 is the stderr file descriptor.

    2 is the stderr file descriptor.
  15. Replies
    1
    Views
    840

    Read fcntl...

    Read fcntl man page - especially options F_SETLK/F_GETLK.
    Mind you, by default it is advisory locking - not enforced.
    For mandatory (forced) locking, you need support from the underlying...
  16. Replies
    1
    Views
    737

    Check this article on volatile variable...

    Check this article on volatile variable.
  17. Replies
    5
    Views
    1,196

    How about using JTabbedPane...

    How about using JTabbedPane?

    As Lost_scrib suggested, this could be used to create a wizard-like interface - each subsequent tab activated only on successful satisfaction of some condition after...
  18. This is because the make variables F90, F90FLAGS...

    This is because the make variables F90, F90FLAGS and LINCLUDES are not set, so $(F90), $(F90FLAGS) and $(LINCLUDES) evaluate to empty strings - this brings the command down to -c $<. Obviously, there...
  19. Along with the loading mechanisms, the overall...

    Along with the loading mechanisms, the overall process handling mechanisms of both the OSs are different - correspondingly, the executable file formats used by both OSs are different.

    Windows uses...
  20. Replies
    1
    Views
    788

    The open() system call for a device file needs to...

    The open() system call for a device file needs to be handled by the corresponding device driver - which in your case would be registered with major no. 15. If the kernel doesn't find any device...
  21. Replies
    3
    Views
    13,488

    perl takes -I option where you can specify the...

    perl takes -I option where you can specify the additional directories where it should search for modules.

    The directories passed with -I (possibly with multiple -I instances) get added to @INC.
    ...
  22. You use try_module_get()...

    You use try_module_get() for incrementing the refcount and module_put() for decrementing the refcount.

    These are SMP-safe functions.
  23. Replies
    4
    Views
    1,293

    I don't think that main()'s frame is set up any...

    I don't think that main()'s frame is set up any differently than any other function.

    However, what EIP reports at the end of main() is the next instruction (which would most likely be a "pop &#37;eip"...
  24. Replies
    4
    Views
    1,293

    Yes and no. When you compile your program, it...

    Yes and no.

    When you compile your program, it gets linked to the standard C library which has the startup code that initializes the process environment. At the end of this initialization, the C...
  25. Replies
    3
    Views
    11,026

    The problem is likely caused by the space in the...

    The problem is likely caused by the space in the name "Hello World".
    Try with some other name for the project like "Hello_World" or "HW" or something like that without a space.

    The logic is when...
Results 1 to 25 of 405
Page 1 of 17 1 2 3 4