CS 3733 Operating Systems, Spring 2009 Diagnostic Exam 1 Comments

    1. -1, 0, 1, 2 or 3.
    2. -1, 1, or 2.
    1. 0, 1, 2 or 3.
    2. 1, or 2.
  1. In either case an error occurs if the return value is -1.
    In this case an error message can be displayed using perror or gotten using strerror.