summaryrefslogtreecommitdiff
path: root/otherlibs/unix
Commit message (Collapse)AuthorAgeFilesLines
* Also enable more warnings in otherlibs/ and fix them.Alain Frisch2016-03-153-3/+6
|
* update .depend and bootstrap compilers before releaseDamien Doligez2016-02-291-272/+268
|
* Update headers for the new license.Damien Doligez2016-02-18104-1248/+1456
| | | | Remains to be done: remove all headers in testsuite/tests.
* clean up whitespace and cut long linesDamien Doligez2016-02-173-5/+3
|
* Add Unix.has_symlinkDavid Allsopp2016-02-104-0/+25
|
* Support Unix.symlink on WindowsDavid Allsopp2016-02-104-11/+37
|
* remove ocamlbuild-specific filesGabriel Scherer2016-02-012-17/+0
|
* GC latency improvementsDamien Doligez2015-12-211-548/+552
|
* unix.mli: Use @raise wherever fitChristophe Troestler2015-12-131-24/+35
|
* unix.mli: Use "on Windows" everywhereChristophe Troestler2015-12-131-12/+12
|
* Specify in unix.mli which functions are implemented on WindowsChristophe Troestler2015-12-131-62/+143
| | | | Fixes http://caml.inria.fr/mantis/view.php?id=5253
* Merge pull request #331 from ocaml/win32-socketsXavier Leroy2015-12-091-0/+6
|\ | | | | Windows sockets in asynchronous mode
| * Branch win32-sockets: add documentation, update Changes.Xavier Leroy2015-12-041-0/+6
| |
* | PR#6289: Unix.utimes uses the current time only if both arguments are ↵Xavier Leroy2015-12-062-31/+34
|/ | | | | | exactly 0.0 Also: use utimes() in preference to utime() so as to get sub-second resolution.
* PR#4023 and GPR#68: add Unix.sleepf and improve Unix.sleepXavier Leroy2015-11-153-5/+54
| | | | | | | Unix.sleepf provides sleep with sub-second resolution. Unix.sleep is implemented on top of Unix.sleepf. If a handled signal causes the sleep to return early with an EINTR error, catch it and restart the sleep for the remaining time.
* PR#6945 and GPR#227: protect Sys and Unix functions against string arguments ↵Xavier Leroy2015-11-156-2/+20
| | | | | | | | | | | | containing the null character '\000' Continuation of commit dc043a7. The following otherlibs/unix/ functions were not protected: unix_inet_of_string unix_getgrnam unix_getpwnam unix_initgroups unix_readlink unix_utimes
* PR#6945 and GPR#227: protect Sys and Unix functions against string arguments ↵Xavier Leroy2015-11-135-8/+12
| | | | | | | | containing the null character '\000' Continuation of commits dc043a7 and 9dfa69e: - Add checks for the command-line arguments and for the environment variables passed via Unix.exec* and variants.
* PR#6945 and GPR#227: protect Sys and Unix functions against string arguments ↵Xavier Leroy2015-11-1127-1/+54
| | | | | | | | | | | | | | containing the null character '\000' Implementation notes: - Based on c-cube's GPR#227 code, but many Unix functions were missing. - For Unix.bind and Unix.connect to a PF_UNIX address, tolerate file names whose first character is '\000': in Linux, these have a meaning as "abstract socket addresses", and in other operating systems, the resulting empty path name causes a EINVAL error (tested under MacOS X). - Very lightly tested. - win32unix remains to be fixed.
* PR#7039: Unix.getsockname returns garbage for unnamed PF_UNIX sockets.Xavier Leroy2015-11-111-1/+8
| | | | Fix implemented: return ADDR_UNIX "" in this case (the file name is the empty string).
* otherlibs/*unix: proper declaration of cstringvect()Xavier Leroy2015-11-034-5/+2
| | | | Share the declaration in "unixsupport.h", and give it a full prototype.
* otherlibs/unix: don't use 'h_errno' as a local variableXavier Leroy2015-11-031-3/+3
| | | | Under Glibc, 'h_errno' is a macro that expands to a system call, like 'errno'. Here, we just want a local variable.
* whitespace cleanup, cut long lines, add some missing headersDamien Doligez2015-09-111-3/+6
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16415 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* make alldependGabriel Scherer2015-08-151-10/+10
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16352 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* unix_gethostbyname: using a variable outside of its scope.Xavier Leroy2015-08-041-6/+6
| | | | | | | | | In the case HAS_GETHOSTBYNAME_R == 6, hp may point into h or into buffer, so don't end the scope of h and buffer before hp is used. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16327 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* more CAMLnoreturn_end goodnessGabriel Scherer2015-08-041-2/+8
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16326 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* make alldependGabriel Scherer2015-08-021-547/+543
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16318 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* GPR#221: keep Noreturn and add CAMLnoreturn_{start,end}Gabriel Scherer2015-08-021-2/+2
| | | | | | (Bernhard Schommer) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16313 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* GPR#165: Missing Noreturn moved before the functions and added a missing ↵Gabriel Scherer2015-07-261-0/+1
| | | | | | | | undef in socketaddr.c (Bernhard Schommer) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16265 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* GPR#165: Changed the definition of the Noreturn macro to also work with ↵Gabriel Scherer2015-07-261-2/+2
| | | | | | | | Visual Studio Version >= 2008 using the __declspec(noreturn). (Bernhard Schommer) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16262 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* update .depend and bootstrap compilers after 4.02 mergeDamien Doligez2015-07-171-548/+552
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16218 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge branch 4.02 from 4.02.1 (rev 15540) to a few fixes after 4.02.2 (rev ↵Damien Doligez2015-07-174-4/+96
| | | | | | 16205) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Port fix for GPR#191 to trunk (making gc.h and some part of memory.h public)Mark Shinwell2015-06-081-61/+101
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16163 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* deduplicate some startup code and fix PR#6808: the parsing of OCAMLRUNPARAM ↵Damien Doligez2015-05-041-1/+1
| | | | | | is too lax git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16074 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* use the official name of Jane Street in headersDamien Doligez2015-04-071-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15986 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#6285: add support for nanosecond precision in Unix.stat()Jérémie Dimino2015-03-052-3/+30
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15877 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* GPR#143: fix getsockopt behaviour for boolean socket optionsDamien Doligez2015-02-101-0/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15837 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5418 (comments) : generate dependencies with $(CC) instead of gccDamien Doligez2015-01-201-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15784 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5887: move the byterun/*.h headers to byterun/caml/*.h to avoid header ↵Gabriel Scherer2014-12-2797-782/+880
| | | | | | | | | 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
* merge branch 4.02 from release 4.02.0 to release 4.02.1Damien Doligez2014-10-151-0/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15558 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* (in|out)_channel_of_descr: improve documentation (Christophe Troestler)Gabriel Scherer2014-08-281-2/+17
| | | | | | | | Following a discussion on the mailing list, it appears that more explanation on the closing of channels created from file descriptors is desirable. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15142 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#6517: use ISO C99 types {,u}int{32,64}_t in preference to our homegrownXavier Leroy2014-08-271-1/+1
| | | | | | | types {,u}int{32,64}. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15131 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge changes from branch 4.02 from branching (rev 14852) to 4.02.0+rc1 (rev ↵Damien Doligez2014-08-222-4/+9
| | | | | | 15121) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15125 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge branch "safe-string"Damien Doligez2014-04-294-449/+502
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14705 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#6075: avoid using unsafe C library functions (strcpy, strcat, sprintf).Xavier Leroy2014-04-1520-37/+34
| | | | | | | | | | An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14607 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fix some of the whitespace problems in the sourceDamien Doligez2014-04-121-16/+26
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14582 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge branch 4.01 from 4.01.0 (revision 14115) to branch closure (revision ↵Damien Doligez2014-04-041-2/+2
| | | | | | 14525) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14532 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* #PR6269 Optimized string matchingLuc Maranget2014-03-211-358/+400
| | | | | | | | | Noticed that I had to bootstrap to test on ARM, so I commit a new bootstrap compiler. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14479 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* add #includes to declare the functions enter/leave_blocking_sectionDamien Doligez2014-02-193-0/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14436 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* release the lock in ftruncate, fchown, and fchmodJérémie Dimino2014-01-293-7/+21
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14425 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#6183: enhanced documentation for 'Unix.shutdown_connection'Xavier Clerc2014-01-231-1/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14419 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02