Deleted Added
sdiff udiff text old ( 4772:f08370a81812 ) new ( 4997:e7380529bd2d )
full compact
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 76 unchanged lines hidden (view full) ---

85
86Process::Process(const string &nm,
87 System *_system,
88 int stdin_fd, // initial I/O descriptors
89 int stdout_fd,
90 int stderr_fd)
91 : SimObject(nm), system(_system)
92{
93 // initialize first 3 fds (stdin, stdout, stderr)
94 fd_map[STDIN_FILENO] = stdin_fd;
95 fd_map[STDOUT_FILENO] = stdout_fd;
96 fd_map[STDERR_FILENO] = stderr_fd;
97
98 // mark remaining fds as free
99 for (int i = 3; i <= MAX_FD; ++i) {
100 fd_map[i] = -1;

--- 475 unchanged lines hidden ---