diff options
author | Patrik Nyblom <[email protected]> | 2010-10-13 17:08:32 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-11-29 13:59:12 +0100 |
commit | 4cf08709189ea8b7e2ae20f85c390abd04ae48ae (patch) | |
tree | b9a1ee11e1672e03d8a80a0b8829bdaab75f66bf /lib/kernel | |
parent | 25e22145d129a80dcfc02c64dfe0b0d890a5e26d (diff) | |
download | otp-4cf08709189ea8b7e2ae20f85c390abd04ae48ae.tar.gz otp-4cf08709189ea8b7e2ae20f85c390abd04ae48ae.tar.bz2 otp-4cf08709189ea8b7e2ae20f85c390abd04ae48ae.zip |
Teach filename to accept raw data and add filename enc option to emu
Diffstat (limited to 'lib/kernel')
-rw-r--r-- | lib/kernel/src/file.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/file.erl b/lib/kernel/src/file.erl index 97d914b043..89432869e9 100644 --- a/lib/kernel/src/file.erl +++ b/lib/kernel/src/file.erl @@ -75,7 +75,7 @@ -define(RAM_FILE, ram_file). % Module %% data types --type filename() :: string(). +-type filename() :: string() | binary(). -type file_info() :: #file_info{}. -type fd() :: #file_descriptor{}. -type io_device() :: pid() | fd(). @@ -87,7 +87,7 @@ | 'delayed_write' | {'read_ahead', pos_integer()} | 'read_ahead' | 'compressed' | {'encoding', unicode:encoding()}. --type name() :: string() | atom() | [name()]. +-type name() :: string() | atom() | [name()] | binary(). -type posix() :: 'eacces' | 'eagain' | 'ebadf' | 'ebusy' | 'edquot' | 'eexist' | 'efault' | 'efbig' | 'eintr' | 'einval' | 'eio' | 'eisdir' | 'eloop' | 'emfile' | 'emlink' |