aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2012-01-31 15:46:47 +0100
committerHans Bolinder <[email protected]>2012-01-31 15:46:47 +0100
commit0c03cc0b8df68f1531947e0c117e9606ad3daf08 (patch)
tree21276fdb89ee105def771732262c344e4ade78f6 /erts
parent8c9975b642c3f3eb76eaa5ea5964226ac1e4600b (diff)
parent037150979ff809df85757bd2b3f676e2e4c6be88 (diff)
downloadotp-0c03cc0b8df68f1531947e0c117e9606ad3daf08.tar.gz
otp-0c03cc0b8df68f1531947e0c117e9606ad3daf08.tar.bz2
otp-0c03cc0b8df68f1531947e0c117e9606ad3daf08.zip
Merge branch 'hb/bif_specs/OTP-9862'
* hb/bif_specs/OTP-9862: Move types and specs from erl_bif_types.erl to modules
Diffstat (limited to 'erts')
-rw-r--r--erts/preloaded/ebin/prim_file.beambin39536 -> 40284 bytes
-rw-r--r--erts/preloaded/src/prim_file.erl28
2 files changed, 27 insertions, 1 deletions
diff --git a/erts/preloaded/ebin/prim_file.beam b/erts/preloaded/ebin/prim_file.beam
index 87e80aae9b..a4c454bbf7 100644
--- a/erts/preloaded/ebin/prim_file.beam
+++ b/erts/preloaded/ebin/prim_file.beam
Binary files differ
diff --git a/erts/preloaded/src/prim_file.erl b/erts/preloaded/src/prim_file.erl
index 36cbe329e8..fcf94c5fa2 100644
--- a/erts/preloaded/src/prim_file.erl
+++ b/erts/preloaded/src/prim_file.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2000-2011. All Rights Reserved.
+%% Copyright Ericsson AB 2000-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -147,6 +147,32 @@
-define(POSIX_FADV_NOREUSE, 5).
+%%% BIFs
+
+-export([internal_name2native/1,
+ internal_native2name/1,
+ internal_normalize_utf8/1]).
+
+-type unicode_string() :: [unicode:unicode_char()].
+-type prim_file_name() :: unicode_string() | unicode:unicode_binary().
+
+-spec internal_name2native(prim_file_name()) -> binary().
+
+internal_name2native(_) ->
+ erlang:nif_error(undefined).
+
+-spec internal_native2name(binary()) -> prim_file_name().
+
+internal_native2name(_) ->
+ erlang:nif_error(undefined).
+
+-spec internal_normalize_utf8(unicode:unicode_binary()) -> unicode_string().
+
+internal_normalize_utf8(_) ->
+ erlang:nif_error(undefined).
+
+%%% End of BIFs
+
%%%-----------------------------------------------------------------
%%% Functions operating on a file through a handle. ?FD_DRV.
%%%