syscall_emul.hh (5513:8631b29873a2) syscall_emul.hh (5515:cff9ed9899c3)
1/*
2 * Copyright (c) 2003-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;

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

375 if (fakeTTY)
376 tgt->st_dev = 0xA;
377 else
378 tgt->st_dev = host->st_dev;
379 tgt->st_dev = htog(tgt->st_dev);
380 tgt->st_ino = host->st_ino;
381 tgt->st_ino = htog(tgt->st_ino);
382 tgt->st_mode = host->st_mode;
1/*
2 * Copyright (c) 2003-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;

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

375 if (fakeTTY)
376 tgt->st_dev = 0xA;
377 else
378 tgt->st_dev = host->st_dev;
379 tgt->st_dev = htog(tgt->st_dev);
380 tgt->st_ino = host->st_ino;
381 tgt->st_ino = htog(tgt->st_ino);
382 tgt->st_mode = host->st_mode;
383 if (fakeTTY) {
384 // Claim to be a character device
385 tgt->st_mode &= ~S_IFMT; // Clear S_IFMT
386 tgt->st_mode |= S_IFCHR; // Set S_IFCHR
387 }
383 tgt->st_mode = htog(tgt->st_mode);
384 tgt->st_nlink = host->st_nlink;
385 tgt->st_nlink = htog(tgt->st_nlink);
386 tgt->st_uid = host->st_uid;
387 tgt->st_uid = htog(tgt->st_uid);
388 tgt->st_gid = host->st_gid;
389 tgt->st_gid = htog(tgt->st_gid);
390 if (fakeTTY)

--- 650 unchanged lines hidden ---
388 tgt->st_mode = htog(tgt->st_mode);
389 tgt->st_nlink = host->st_nlink;
390 tgt->st_nlink = htog(tgt->st_nlink);
391 tgt->st_uid = host->st_uid;
392 tgt->st_uid = htog(tgt->st_uid);
393 tgt->st_gid = host->st_gid;
394 tgt->st_gid = htog(tgt->st_gid);
395 if (fakeTTY)

--- 650 unchanged lines hidden ---