Code Search for Developers
 
 
  

isatty.c from Gdb at Krugle


Show isatty.c syntax highlighted

/* isatty.c -- chek the terminal device.
 * 
 * Copyright (c) 1995 Cygnus Support
 *
 * The authors hereby grant permission to use, copy, modify, distribute,
 * and license this software and its documentation for any purpose, provided
 * that existing copyright notices are retained in all copies and that this
 * notice is included verbatim in any distributions. No written agreement,
 * license, or royalty fee is required for any of the authorized uses.
 * Modifications to this software may be copyrighted by their authors
 * and need not follow the licensing terms described here, provided that
 * the new terms are clearly indicated on the first page of each file where
 * they apply.
 */
#include "glue.h"

/*
 * isatty -- returns 1 if connected to a terminal device,
 *           returns 0 if not. Since we're hooked up to a
 *           serial port, we'll say yes _AND return a 1.
 */
int
_DEFUN (isatty, (fd),
       int fd)
{
  return (1);
}




See more files for this project here

Gdb

GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.

Project homepage: http://sources.redhat.com/gdb/
Programming language(s): Assembly,C,C++,Expect
License: other

  arm/
    Makefile.in
    _exit.c
    _kill.c
    aclocal.m4
    coff-iq80310.specs
    coff-pid.specs
    coff-rdimon.specs
    coff-rdpmon.specs
    coff-redboot.ld
    coff-redboot.specs
    configure
    configure.in
    crt0.S
    elf-iq80310.specs
    elf-linux.specs
    elf-pid.specs
    elf-rdimon.specs
    elf-rdpmon.specs
    elf-redboot.ld
    elf-redboot.specs
    libcfunc.c
    linux-crt0.c
    linux-syscall.h
    linux-syscalls0.S
    linux-syscalls1.c
    redboot-crt0.S
    redboot-syscalls.c
    swi.h
    syscall.h
    syscalls.c
    trap.S
  bfin/
    Makefile.in
    aclocal.m4
    configure
    configure.in
    crt0.S
    syscalls.c
  config/
    default.mh
    default.mt
    dos.mh
    mips.mt
    mn10200.mt
    mn10300.mt
    ppc.mh
  cris/
    Makefile.in
    aclocal.m4
    configure
    configure.in
    crt0.S
    crti.c
    crtn.c
    gensyscalls
    lcrt0.c
    linunistd.h
    outbyte.c
    setup.S
  crx/
    Makefile.in
    _exit.c
    _getenv.c
    _rename.c
    aclocal.m4
    close.c
    configure
    configure.in
    crt0.S
    crti.S
    crtn.S
    dvz_hndl.c
    flg_hndl.c
    fstat.c
    getpid.c
    iad_hndl.c
    intable.c
    isatty.c
    kill.c
    lseek.c
    open.c
    putnum.c
    read.c
    sbrk.c
    sim.ld
    stat.c
    svc_hndl.c
    time.c
    und_hndl.c
    unlink.c
    write.c
  d30v/
    Makefile.in
  doc/
  fr30/
  frv/
  hp74x/
  i386/
  i960/
  iq2000/
  libnosys/
  m32c/
  m32r/
  m68hc11/
  m68k/
  mcore/
  mips/
  mn10200/
  mn10300/
  mt/
  pa/
  rs6000/
  sh/
  sparc/
  spu/
  testsuite/
  v850/
  wince/
  xstormy16/
  ChangeLog
  Makefile.in
  README
  acinclude.m4
  aclocal.m4
  close.c
  configure
  configure.in
  debug.c
  debug.h
  fstat.c
  getpid.c
  glue.h
  isatty.c
  kill.c
  lseek.c
  open.c
  print.c
  putnum.c
  read.c
  sbrk.c
  stat.c
  syscall.h
  unlink.c
  write.c