Commit Graph

51 Commits (51ba396328417844c863159f91cb38d36de7a032)

Author SHA1 Message Date
Gabriel Scherer c7f2f72c07 PR6695: Make Filename use only US-ASCII functions.
The only place that includes changes is the code for checking
the suffix. It is highly unlikely that the change has any
impact at all.

From: Peter Zotov <whitequark@whitequark.org>

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15728 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-21 11:46:16 +00:00
Gabriel Scherer fae0140b37 Add optional perms argument to Filename.open_temp_file.
From: Daniel Bünzli <daniel.buenzli@erratique.ch>

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15722 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-21 11:46:02 +00:00
Damien Doligez c63f9e0957 fix a few problems with whitespace and over-long lines
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-09 22:38:52 +00:00
Damien Doligez def31744f9 remove all $Id keywords
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Alain Frisch a0a14c08fa Enable and fix more warnings.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12498 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-05-29 11:47:28 +00:00
Xavier Leroy b2166e33f5 - Hashtbl:
. Added optional "random" parameter to Hashtbl.create to randomize
      collision patterns and improve security (PR#5572, CVE-2012-0839)
    . Added "randomize" function and "R" parameter to OCAMLRUNPARAM
      to turn randomization on by default (PR#5572, CVE-2012-0839)
- Filename: on-demand (lazy) initialization of the PRNG used by "temp_file".



git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12384 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-04-19 13:17:40 +00:00
Alain Frisch 77b7ef9714 #5397: Filename.temp_dir_name should be mutable.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12274 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-03-26 17:17:35 +00:00
Damien Doligez 2c04ae521e PR#4549: make Filename.dirname/basename POSIX compliant
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11999 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-01-06 14:24:58 +00:00
Damien Doligez 3b507dd1aa renaming of Objective Caml to OCaml and cleanup of copyright headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Damien Doligez bdc0fadee2 merge changes from release/3.11.1 to release/3.11.2
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9540 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-01-20 16:26:46 +00:00
Damien Doligez 1f95b17570 merge changes from 3.10.2merged to 3.11.0
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9153 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-12-03 18:09:09 +00:00
Damien Doligez d8679038e0 Filename.quote sur Windows : best effort
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7796 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2007-01-09 13:42:17 +00:00
Damien Doligez cb0bf2cc6a bug repere par Nicolas
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7775 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-12-18 13:30:07 +00:00
Damien Doligez 1279ab4b76 fusion des changements 3.09.1 -> 3.09.2
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7382 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-04-16 23:28:22 +00:00
Damien Doligez 125ea40d4c fusion 3.09.0 -> 3.09.1
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7307 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-01-04 16:55:50 +00:00
Damien Doligez 0e5ca9dca5 nettoyage
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7164 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-10-25 18:34:07 +00:00
Damien Doligez e6007f6057 fusion des changements jusqu'a 3.08.3
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6824 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-03-24 17:20:54 +00:00
Damien Doligez 99885a80a0 meilleur report d'erreur pour temp_file et open_temp_file
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6748 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-01-18 14:33:08 +00:00
Xavier Leroy 7099a33f24 Revu chop_extension (PR#2614); reorganisation des parties dependantes / independantes de l'OS
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6349 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-05-30 09:41:53 +00:00
Damien Doligez 776a8d59b7 suppression support MacOS9
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6074 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-16 15:24:03 +00:00
Damien Doligez aa46693dc5 depollution (PR#1914, PR#1956)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6023 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-16 18:09:44 +00:00
Damien Doligez 5fcac6a58c debut du travail de depollution de l'espace de noms (PR#1914)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6011 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-08 19:50:26 +00:00
Xavier Leroy 628364a85a Conventions Cygwin (PR#1707)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5661 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-07 09:07:45 +00:00
Damien Doligez 5eef5478ae amelioration Random
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5596 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-06-12 16:49:32 +00:00
Xavier Leroy 14e7582e8d En Windows, utiliser . comme repertoire temporaire si la variable TEMP n'est pas definie. WinXP ne cree pas le repertoire C:\temp.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5453 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-03-24 15:26:35 +00:00
Xavier Leroy 3723114891 Ameliorations de Filename.temp_file (creation en mode 600; utilisation d'un PRNG) et ajout de Filename.open_temp_file
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4653 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-04-15 11:42:45 +00:00
Xavier Leroy 4efb58b231 Implementation de Filename.quote pour Win32
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4515 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-03-12 16:16:56 +00:00
Xavier Leroy 7501784c80 MAJ en-tetes pour mentionner la 'special exception' sur la LGPL
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 13:41:02 +00:00
Pierre Weis 2116da4220 Getting rid of obsolete boolean operators & and or
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3359 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-12-28 13:07:42 +00:00
Xavier Leroy fd8846fecd Portage Cygwin
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3270 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-08-10 09:58:08 +00:00
Xavier Leroy 771c8f1667 Bug dans Filename.basename sous Windows (PR#159)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3249 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-07-25 16:13:36 +00:00
Jacques Garrigue 25c4119678 do not strip : in directory name
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3151 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-05-08 10:18:48 +00:00
Damien Doligez b234d1769c detabisation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2745 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-01-07 16:47:25 +00:00
Damien Doligez 7d7f5b4cec ajout parent_dir_name; modif quote
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2719 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-12-30 12:54:15 +00:00
Damien Doligez 532cc5ee4a ajout Filename.quote
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2625 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-29 19:04:04 +00:00
Xavier Leroy cc0f32b054 Changement de la licence
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17 18:59:06 +00:00
Xavier Leroy 5038f3cdb6 Ajout de Pervasives.ignore. List.remove -> List.remove_ass*
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2304 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-02-24 15:21:50 +00:00
Damien Doligez 15ebd9631a suppression d'un warning
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1998-11-05 18:53:39 +00:00
Xavier Leroy 95933de17c Corrections mineures sur la documentation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1933 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1998-04-27 09:55:50 +00:00
Xavier Leroy 56e001e1c4 Array.iteri Array.mapi Array.fold_left Array.fold_right
String.index String.rindex
Filename: utiliser String.rindex
Genlex: erreur dans doc


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1741 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-10-24 15:54:07 +00:00
Damien Doligez 37af1d15b6 is_absolute -> is_relative/is_implicit
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1617 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-06-16 17:07:42 +00:00
Xavier Leroy dfb5710a14 Utilisation de Sys.os_type. Nettoyages exceptions (failwith -> invalid_arg)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1170 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-11-07 11:00:19 +00:00
Xavier Leroy 9548bd7e5d Char, String: ajout fonctions uppercase, lowercase, capitalize, uncapitalize.
Filename: mort aux ;;, utiliser String.lowercase
Hashtbl: corrige la fuite de Hashtbl.remove, ajout interface fonctorielle.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1129 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-10-31 16:03:04 +00:00
Damien Doligez 8785c58f8b "Macintosh" -> "MacOS"
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1073 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-10-09 16:21:02 +00:00
Damien Doligez 3ae9ee4413 filename.ml, Makefile.nt: On utilise Sys.get_config au lieu de cpp.
sys.ml, sys.mli: ajout de Sys.get_config.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1056 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-10-07 14:04:03 +00:00
Damien Doligez dfeb8bdd97 Ajout de la primitive "get_os_type".
filename.ml n'a plus besoin de passer dans un preprocesseur.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1046 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-10-06 16:38:09 +00:00
Xavier Leroy 84ffb16ed7 Debut du portage Windows NT/95
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@636 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-02-15 16:19:09 +00:00
Xavier Leroy 73cd85226f Ajout de Filename.temp_file
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@586 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-01-04 12:50:37 +00:00
Xavier Leroy cec6b5e0ba Ajout du module Profiling.
Ajout de Filename.chop_extension.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@355 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-10-24 15:38:03 +00:00
Xavier Leroy e4066357b1 Ajout des notices de copyright
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-08-09 15:06:35 +00:00