diff options
author | Hans Bolinder <[email protected]> | 2012-01-17 12:28:32 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2012-01-27 14:52:39 +0100 |
commit | 037150979ff809df85757bd2b3f676e2e4c6be88 (patch) | |
tree | b0f9f7abc8e8ed062152c30ec8d7b581aff47aea /lib/kernel/src/file.erl | |
parent | ccd194683f8be69c43839840ffa8687773215c59 (diff) | |
download | otp-037150979ff809df85757bd2b3f676e2e4c6be88.tar.gz otp-037150979ff809df85757bd2b3f676e2e4c6be88.tar.bz2 otp-037150979ff809df85757bd2b3f676e2e4c6be88.zip |
Move types and specs from erl_bif_types.erl to modules
Diffstat (limited to 'lib/kernel/src/file.erl')
-rw-r--r-- | lib/kernel/src/file.erl | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/kernel/src/file.erl b/lib/kernel/src/file.erl index 4028dd4f0b..101a830ad3 100644 --- a/lib/kernel/src/file.erl +++ b/lib/kernel/src/file.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2011. All Rights Reserved. +%% Copyright Ericsson AB 1996-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 @@ -111,6 +111,24 @@ -type sendfile_option() :: {chunk_size, non_neg_integer()}. -type file_info_option() :: {'time', 'local'} | {'time', 'universal'} | {'time', 'posix'}. +%%% BIFs + +-export([file_info/1, native_name_encoding/0]). + +-spec file_info(Filename) -> {ok, FileInfo} | {error, Reason} when + Filename :: name(), + FileInfo :: file_info(), + Reason :: posix() | badarg. + +file_info(_) -> + erlang:nif_error(undef). + +-spec native_name_encoding() -> latin1 | utf8. + +native_name_encoding() -> + erlang:nif_error(undef). + +%%% End of BIFs %%%----------------------------------------------------------------- |