CS-384 Lab 1: UNIX System Calls

Dr. Mark J. Sebern


CS-384 main page Schedule

Overview

The purpose of this lab is to review the C++ programming environment on the UNIX operating system and to make use of some simple operating system calls.

Prerequisite check

It is assumed that you are familiar (e.g., from CS-321) with building C++ programs in the UNIX environment. If not, ask the instructor for assistance.

Lab activity

First, implement the following C++ classes (each with separate ".cpp" and ".h" files):

Write a test program ("main" function, in a separate ".cpp" file) to call the functions and to print the data returned by each. Create a make file to build the test program properly.

If you have time, try setting up a common directory tree in the account of your team’s appointed librarian. Set file and directory permissions to allow group access. Use the umask command to control the default protection of files you create. You may also wish to try symbolic links ("ln -s" command) to permit easy access to the common files from your own directory. If the class groups (e.g., "cs384t21") are set up in time, use your specific group for the common files; otherwise, use the "student" group for now.

Report

Prepare a text file containing a brief report (one report per group) detailing any problems you encountered and any questions that remain about the lab material. Create a compressed tar archive file (e.g., "lab1_21.tar.Z", where "21" is your team number) containing the report, source, and make files (no object or executable files) from this lab. Attach this file to a mail message, and send it to sebern@msoe.edu. Do not discard your original files, in case anything gets lost in the email system.

In the report, identify the members of your lab group, by name and username. The report is due two hours before the start of the following lab.


This page was last updated on November 29, 1998; send comments to Mark Sebern.