From a8377a44bb81ab86a694c57f2f10527cf51612d4 Mon Sep 17 00:00:00 2001 From: Mikael Pettersson Date: Tue, 2 Dec 2014 19:13:16 +0100 Subject: fix eacces spelling --- erts/doc/src/erlang.xml | 2 +- lib/inets/doc/src/httpd_conf.xml | 8 ++++---- lib/inets/src/http_server/httpd_conf.erl | 4 ++-- lib/kernel/test/file_SUITE.erl | 2 +- lib/kernel/test/prim_file_SUITE.erl | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index 483d81cfb6..cba2c07959 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -2840,7 +2840,7 @@ os_prompt% raised. The error reason may differ between operating systems. Typically the error enoent is raised when one tries to run a program that is not found and - eaccess is raised when the given file is not + eacces is raised when the given file is not executable.

{fd, In, Out} diff --git a/lib/inets/doc/src/httpd_conf.xml b/lib/inets/doc/src/httpd_conf.xml index 3ef03966a7..60fc2f135e 100644 --- a/lib/inets/doc/src/httpd_conf.xml +++ b/lib/inets/doc/src/httpd_conf.xml @@ -97,7 +97,7 @@ FilePath = string() Result = {ok,Directory} | {error,Reason} Directory = string() - Reason = string() | enoent | eaccess | enotdir | FileInfo + Reason = string() | enoent | eacces | enotdir | FileInfo FileInfo = File info record @@ -105,7 +105,7 @@

is_directory/1 checks if FilePath is a directory in which case it is returned. Please read file(3) for a description of enoent, - eaccess and enotdir. The definition of + eacces and enotdir. The definition of the file info record can be found by including file.hrl from the kernel application, see file(3).

@@ -120,14 +120,14 @@ FilePath = string() Result = {ok,File} | {error,Reason} File = string() - Reason = string() | enoent | eaccess | enotdir | FileInfo + Reason = string() | enoent | eacces | enotdir | FileInfo FileInfo = File info record

is_file/1 checks if FilePath is a regular file in which case it is returned. Read file(3) for a - description of enoent, eaccess and + description of enoent, eacces and enotdir. The definition of the file info record can be found by including file.hrl from the kernel application, see file(3).

diff --git a/lib/inets/src/http_server/httpd_conf.erl b/lib/inets/src/http_server/httpd_conf.erl index 27446ca7fe..8f68d9fcd5 100644 --- a/lib/inets/src/http_server/httpd_conf.erl +++ b/lib/inets/src/http_server/httpd_conf.erl @@ -44,7 +44,7 @@ %% FilePath = string() %% Result = {ok,Directory} | {error,Reason} %% Directory = string() -%% Reason = string() | enoent | eaccess | enotdir | FileInfo +%% Reason = string() | enoent | eacces | enotdir | FileInfo %% FileInfo = File info record %% %% Description: Checks if FilePath is a directory in which case it is @@ -71,7 +71,7 @@ is_directory(_Type,_Access,FileInfo,_Directory) -> %% FilePath = string() %% Result = {ok,File} | {error,Reason} %% File = string() -%% Reason = string() | enoent | eaccess | enotdir | FileInfo +%% Reason = string() | enoent | eacces | enotdir | FileInfo %% FileInfo = File info record %% %% Description: Checks if FilePath is a regular file in which case it diff --git a/lib/kernel/test/file_SUITE.erl b/lib/kernel/test/file_SUITE.erl index 56c35678b6..2ce2303ba3 100644 --- a/lib/kernel/test/file_SUITE.erl +++ b/lib/kernel/test/file_SUITE.erl @@ -424,7 +424,7 @@ make_del_dir(Config) when is_list(Config) -> ?line ok = ?FILE_MODULE:del_dir(NewDir), ?line {error, enoent} = ?FILE_MODULE:del_dir(NewDir), % Make sure we are not in a directory directly under test_server - % as that would result in eacess errors when trying to delere '..', + % as that would result in eacces errors when trying to delete '..', % because there are processes having that directory as current. ?line ok = ?FILE_MODULE:make_dir(NewDir), ?line {ok,CurrentDir} = file:get_cwd(), diff --git a/lib/kernel/test/prim_file_SUITE.erl b/lib/kernel/test/prim_file_SUITE.erl index 05bd5b3a3d..f55716cbec 100644 --- a/lib/kernel/test/prim_file_SUITE.erl +++ b/lib/kernel/test/prim_file_SUITE.erl @@ -262,7 +262,7 @@ make_del_dir(Config, Handle, Suffix) -> ?line {error, enoent} = ?PRIM_FILE_call(del_dir, Handle, [NewDir]), % Make sure we are not in a directory directly under test_server - % as that would result in eacess errors when trying to delere '..', + % as that would result in eacces errors when trying to delete '..', % because there are processes having that directory as current. ?line ok = ?PRIM_FILE_call(make_dir, Handle, [NewDir]), ?line {ok, CurrentDir} = ?PRIM_FILE_call(get_cwd, Handle, []), -- cgit v1.2.3