summaryrefslogtreecommitdiff
path: root/otherlibs/unix/termios.c
Commit message (Collapse)AuthorAgeFilesLines
* Constify C constructors and flags tables (#12223)Antonin Décimo2023-05-081-3/+3
|
* Unix termios interface: use POSIX type tcflag_tXavier Leroy2022-08-051-8/+8
| | | | | Since POSIX.1, the 4 "flag" members of `struct termios` have type `tcflag_t`. Hence, use `tcflag_t` instead of `int` to access them.
* Make Unix terminal interface bindings domain-safeOlivier Nicole2022-08-051-28/+32
| | | | | | | Up to now, Unix.tcgetattr and Unix.tcsetattr both modify a global variable of type `struct termios`. To make the bindings domain-safe, this replaces the global variable with stack-allocated variables.
* Make the Field macro a volatile access (#11255)KC Sivaramakrishnan2022-07-111-2/+2
| | | | | | | | `Field(v,i)` is now `volatile`-qualified, to better handle races with concurrent updates in C or in OCaml. (More complete discussion at #10992.) `&Field(v,i)` now has type `volatile value *`. Add `volatile` qualifiers to `caml_modify`, `caml_initialize`, and in internal parts of the runtime system.
* Prefix all unix_ symbols caml_unix_David Allsopp2022-06-131-15/+15
|
* Rename uerror to caml_uerrorDavid Allsopp2022-06-131-8/+8
|
* unix: invalid_argument -> caml_invalid_argumentygrek2016-11-261-7/+7
|
* Do not use the compatibility macros in the C stub code. (#892)Sébastien Hinderer2016-11-171-1/+1
| | | | | | | | | | | | * Don't use the compatibility macros, neither in the C stub code nor in the testsuite. * Make sure compiler sources do not use deprecated C identifiers. This is achieved by ensuring that the CAML_NAME_SPACE macro is defined everytime a C source file is compiled, rather than being defined only in a few places. Defining this macro guarantees that the compatibility.h header (where these deprecated identifiers are defined) will not be included.
* Update headers for the new license.Damien Doligez2016-02-181-12/+14
| | | | Remains to be done: remove all headers in testsuite/tests.
* merge branch 4.02 from 4.02.1 (rev 15540) to a few fixes after 4.02.2 (rev ↵Damien Doligez2015-07-171-3/+69
| | | | | | 16205) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5887: move the byterun/*.h headers to byterun/caml/*.h to avoid header ↵Gabriel Scherer2014-12-271-3/+3
| | | | | | | | | name clashes (Jérôme Vouillon and Adrien Nader and Peter Zotov) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15757 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5886: Small changes to compile for Android.Benedikt Meurer2013-01-131-0/+5
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13225 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* remove all $Id keywordsDamien Doligez2012-10-151-2/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* renaming of Objective Caml to OCaml and cleanup of copyright headersDamien Doligez2011-07-271-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* clean up spaces and tabsDamien Doligez2010-01-221-2/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fusion des changements jusqu'a 3.08.3Damien Doligez2005-03-241-0/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6824 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* MAJ en-tetes pour mentionner la 'special exception' sur la LGPLXavier Leroy2001-12-071-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Chargement dynamique de primitives CXavier Leroy2001-08-281-12/+12
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3677 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* MacOS: ajout macosunix; portage bigarray et systhreads; tabsDamien Doligez2000-04-051-6/+6
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3042 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Changement de la licenceXavier Leroy1999-11-171-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Ajout des vitesses B57600 B115200 B230400Xavier Leroy1998-10-201-2/+12
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2128 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Simplification de terminal_io_descr, certains compilos C avaient du mal avec ↵Xavier Leroy1998-06-231-16/+14
| | | | | | l'ancien code git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1994 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Sources C convertis en ANSI CXavier Leroy1997-09-021-22/+25
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Eradication des warnings de gcc.Xavier Leroy1997-06-131-2/+2
| | | | | | | | Nettoyages divers. Suppression de ioctl. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1597 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Renommage unix.h -> unixsupport.hXavier Leroy1996-09-041-1/+1
| | | | | | | Petites adaptations pour Win32. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@951 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Renommage en Objective CamlXavier Leroy1996-04-301-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@782 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Interface Termios rendue plus conforme a POSIXXavier Leroy1995-11-061-29/+16
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@415 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Ajout des notices de copyrightXavier Leroy1995-08-091-0/+13
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* MAJ apres le changement de representation des constructeurs constantsXavier Leroy1995-06-181-4/+4
| | | | | | | (reste a tester). git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@48 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Recuperation de libunix de CL0.7Xavier Leroy1995-05-081-0/+303
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02