job-control.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Job control and terminal related functions, for GDB and gdbserver
  2. when running under Unix.
  3. Copyright (C) 1986-2022 Free Software Foundation, Inc.
  4. This file is part of GDB.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  15. #ifndef COMMON_JOB_CONTROL_H
  16. #define COMMON_JOB_CONTROL_H
  17. /* Do we have job control? Can be assumed to always be the same
  18. within a given run of GDB. Use in gdb/inflow.c and
  19. gdbsupport/common-inflow.c. */
  20. extern int job_control;
  21. /* Set the process group of the caller to its own pid, or do nothing
  22. if we lack job control. */
  23. extern int gdb_setpgid ();
  24. /* Determine whether we have job control, and set variable JOB_CONTROL
  25. accordingly. This function must be called before any use of
  26. JOB_CONTROL. */
  27. extern void have_job_control ();
  28. #endif /* COMMON_JOB_CONTROL_H */