Search:

Type: Posts; User: stevenswj

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,273

    Nobody's perfect :( I am improving tho

    Nobody's perfect :( I am improving tho
  2. Replies
    7
    Views
    1,273

    It's a class project we're not writing a new...

    It's a class project we're not writing a new distribution of the Linux operating system or anything. In any case, I demoed my project this morning and it fulfilled all the requirements, so I don't...
  3. Replies
    7
    Views
    1,273

    The warnings are all acceptable, I have read them...

    The warnings are all acceptable, I have read them and taken them into account. I'm tired of reading them, would be great not to have to write some script or long command to get around this... The...
  4. Replies
    7
    Views
    1,273

    Help with cc command

    Since I don't have 50 years of free time to read the entire man page, was just wondering how you exclude warnings in the output so you only see the errors? Useful for when you have like 300 warnings...
  5. Replies
    27
    Views
    16,641

    Yep that's what I meant, and I ran some tests and...

    Yep that's what I meant, and I ran some tests and everything seemed fine, I just wanted to make sure there wasn't something amiss that I wasn't seeing.
  6. Replies
    27
    Views
    16,641

    Closing a fd twice

    Without re-opening the fd, just wondering if this is all right or not?
  7. Proper way to pass in 2d array to function?

    Say you have char arr[10][10] and you want to pass it to a function as is. How do you declare the function parameter? I want to be able to pass in a 2d array of arbitrary size, I don't want to fix...
  8. Difference between char * and char [] arguments?

    say you have a(char *s){...} and b(char s[]){...}

    How are strings passed in treated differently when arguments in functions are declared in this way? Or are they 100% interchangeable?
  9. Replies
    1
    Views
    1,044

    Deallocating from the heap

    OK I know this is bad practice, but if you never free something that was malloc'd in a program, ran out of heap space (memory leak obviously), then killed the program, what exactly happens to that...
  10. Replies
    3
    Views
    3,353

    Ah, so when you get a segmentation fault what is...

    Ah, so when you get a segmentation fault what is actually meant is a page fault for these environments? And thus technically the term is incorrect?
  11. Replies
    3
    Views
    3,353

    Segmentation + paging

    This is allowed on x86 32-bit and 64-bit architectures correct me if I'm wrong? If so then how do operating systems like Windows and Linux use them?
  12. Replies
    5
    Views
    1,046

    What if we're talking just 1 CPU where only a...

    What if we're talking just 1 CPU where only a single process can be running at a time?

    For my assignment we are writing a unix variant operating system based on something like this where the child...
  13. Replies
    5
    Views
    1,046

    Question about fork()

    Does the CPU freeze the parent and start executing the child process right away when this gets called? Or does it just create a child process image, then resume the parent process where the child is...
  14. Replies
    17
    Views
    2,746

    Memory addressing question

    Forgive me if this sounds like a newbie question. Any time you obtain a virtual stack address from a pointer, such as doing something like:

    printf("%d\n", &var);

    what is this address relative...
Results 1 to 14 of 14