Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/bionic/bionic/tests/headers/posix/   (Android Betriebssystem Version 17©)  Datei vom 26.5.2026 mit Größe 3 kB image not shown  

Quelle  termios_h.c

  Sprache: C
 

// Copyright (C) 2017 The Android Open Source Project
// SPDX-License-Identifier: BSD-2-Clause

#include <termios.h>

#include "header_checks.h"

static void termios_h() {
  TYPE(cc_t);
  TYPE(speed_t);
  TYPE(tcflag_t);

  TYPE(struct termios);
  STRUCT_MEMBER(struct termios, tcflag_t, c_iflag);
  STRUCT_MEMBER(struct termios, tcflag_t, c_oflag);
  STRUCT_MEMBER(struct termios, tcflag_t, c_cflag);
  STRUCT_MEMBER(struct termios, tcflag_t, c_lflag);
  STRUCT_MEMBER_ARRAY(struct termios, cc_t/*[]*/, c_cc);

#if !defined(__GLIBC__)  // Our glibc is too old.
  TYPE(struct winsize);
  STRUCT_MEMBER(struct winsize, unsigned short, ws_row);
  STRUCT_MEMBER(struct winsize, unsigned short, ws_col);
#endif

  MACRO(NCCS);

  MACRO(VEOF);
  MACRO(VEOL);
  MACRO(VERASE);
  MACRO(VINTR);
  MACRO(VKILL);
  MACRO(VMIN);
  MACRO(VQUIT);
  MACRO(VSTART);
  MACRO(VSTOP);
  MACRO(VSUSP);
  MACRO(VTIME);

  MACRO(BRKINT);
  MACRO(ICRNL);
  MACRO(IGNBRK);
  MACRO(IGNCR);
  MACRO(IGNPAR);
  MACRO(INLCR);
  MACRO(INPCK);
  MACRO(ISTRIP);
  MACRO(IXANY);
  MACRO(IXOFF);
  MACRO(IXON);
  MACRO(PARMRK);

  MACRO(OPOST);
  MACRO(ONLCR);
  MACRO(OCRNL);
  MACRO(ONOCR);
  MACRO(ONLRET);
  MACRO(OFDEL);
  MACRO(OFILL);
  MACRO(NLDLY);
  MACRO(NL0);
  MACRO(NL1);
  MACRO(CRDLY);
  MACRO(CR0);
  MACRO(CR1);
  MACRO(CR2);
  MACRO(CR3);
  MACRO(TABDLY);
  MACRO(TAB0);
  MACRO(TAB1);
  MACRO(TAB2);
  MACRO(TAB3);
  MACRO(BSDLY);
  MACRO(BS0);
  MACRO(BS1);
  MACRO(VTDLY);
  MACRO(VT0);
  MACRO(VT1);
  MACRO(FFDLY);
  MACRO(FF0);
  MACRO(FF1);

  MACRO(B0);
  MACRO(B50);
  MACRO(B75);
  MACRO(B110);
  MACRO(B134);
  MACRO(B150);
  MACRO(B200);
  MACRO(B300);
  MACRO(B600);
  MACRO(B1200);
  MACRO(B1800);
  MACRO(B2400);
  MACRO(B4800);
  MACRO(B9600);
  MACRO(B19200);
  MACRO(B38400);

  MACRO(CSIZE);
  MACRO(CS5);
  MACRO(CS6);
  MACRO(CS7);
  MACRO(CS8);
  MACRO(CSTOPB);
  MACRO(CREAD);
  MACRO(PARENB);
  MACRO(PARODD);
  MACRO(HUPCL);
  MACRO(CLOCAL);

  MACRO(ECHO);
  MACRO(ECHOE);
  MACRO(ECHOK);
  MACRO(ECHONL);
  MACRO(ICANON);
  MACRO(IEXTEN);
  MACRO(ISIG);
  MACRO(NOFLSH);
  MACRO(TOSTOP);

  MACRO(TCSANOW);
  MACRO(TCSADRAIN);
  MACRO(TCSAFLUSH);

  MACRO(TCIFLUSH);
  MACRO(TCIOFLUSH);
  MACRO(TCOFLUSH);

  MACRO(TCIOFF);
  MACRO(TCION);
  MACRO(TCOOFF);
  MACRO(TCOON);

  TYPE(pid_t);

  FUNCTION(cfgetispeed, speed_t (*f)(const struct termios*));
  FUNCTION(cfgetospeed, speed_t (*f)(const struct termios*));
  FUNCTION(cfsetispeed, int (*f)(struct termios*, speed_t));
  FUNCTION(cfsetospeed, int (*f)(struct termios*, speed_t));
  FUNCTION(tcdrain, int (*f)(int));
  FUNCTION(tcflow, int (*f)(intint));
  FUNCTION(tcflush, int (*f)(intint));
  FUNCTION(tcgetattr, int (*f)(intstruct termios*));
  FUNCTION(tcgetsid, pid_t (*f)(int));
#if !defined(__GLIBC__)  // Our glibc is too old.
  FUNCTION(tcgetwinsize, int (*f)(intstruct winsize*));
#endif
  FUNCTION(tcsendbreak, int (*f)(intint));
  FUNCTION(tcsetattr, int (*f)(intintconst struct termios*));
#if !defined(__GLIBC__)  // Our glibc is too old.
  FUNCTION(tcsetwinsize, int (*f)(intconst struct winsize*));
#endif
}

Messung V0.5 in Prozent
C=91 H=93 G=91

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-28) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.