syscall_emul.hh (4118:ddd23e5282d7) | syscall_emul.hh (4131:660ebc4994a9) |
---|---|
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; --- 438 unchanged lines hidden (view full) --- 447 DPRINTF(SyscallVerbose, "ioctl(%d, 0x%x, ...)\n", fd, req); 448 449 if (fd < 0 || process->sim_fd(fd) < 0) { 450 // doesn't map to any simulator fd: not a valid target fd 451 return -EBADF; 452 } 453 454 switch (req) { | 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; --- 438 unchanged lines hidden (view full) --- 447 DPRINTF(SyscallVerbose, "ioctl(%d, 0x%x, ...)\n", fd, req); 448 449 if (fd < 0 || process->sim_fd(fd) < 0) { 450 // doesn't map to any simulator fd: not a valid target fd 451 return -EBADF; 452 } 453 454 switch (req) { |
455 case OS::TIOCISATTY: 456 case OS::TIOCGETP: 457 case OS::TIOCSETP: 458 case OS::TIOCSETN: 459 case OS::TIOCSETC: 460 case OS::TIOCGETC: 461 case OS::TIOCGETS: 462 case OS::TIOCGETA: | 455 case OS::TIOCISATTY_: 456 case OS::TIOCGETP_: 457 case OS::TIOCSETP_: 458 case OS::TIOCSETN_: 459 case OS::TIOCSETC_: 460 case OS::TIOCGETC_: 461 case OS::TIOCGETS_: 462 case OS::TIOCGETA_: |
463 return -ENOTTY; 464 465 default: 466 fatal("Unsupported ioctl call: ioctl(%d, 0x%x, ...) @ 0x%llx\n", 467 fd, req, tc->readPC()); 468 } 469} 470 --- 518 unchanged lines hidden --- | 463 return -ENOTTY; 464 465 default: 466 fatal("Unsupported ioctl call: ioctl(%d, 0x%x, ...) @ 0x%llx\n", 467 fd, req, tc->readPC()); 468 } 469} 470 --- 518 unchanged lines hidden --- |