From 6a223b057ceac584a1eff201845b7116dd8430e3 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Fri, 21 Oct 2011 12:00:08 +0200 Subject: file: correct make_link/2 and make_symlink/2 docs --- lib/kernel/doc/src/file.xml | 17 +++++++++-------- lib/kernel/src/file.erl | 6 +++--- 2 files changed, 12 insertions(+), 11 deletions(-) (limited to 'lib/kernel') diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml index c6a1f25dd9..719cbba2b8 100644 --- a/lib/kernel/doc/src/file.xml +++ b/lib/kernel/doc/src/file.xml @@ -539,7 +539,7 @@

Makes a hard link from Existing to New, on - platforms that support links (Unix). This function returns + platforms that support links (Unix and Windows). This function returns ok if the link was successfully created, or {error, Reason}. On platforms that do not support links, {error,enotsup} is returned.

@@ -566,11 +566,12 @@ Make a symbolic link to a file or directory -

This function creates a symbolic link Name2 to - the file or directory Name1, on platforms that - support - symbolic links (most Unix systems). Name1 need not - exist. This function returns ok if the link was +

This function creates a symbolic link New to + the file or directory Existing, on platforms that + support symbolic links (most Unix systems and Windows beginning with + Vista). + Existing need not exist. + This function returns ok if the link was successfully created, or {error, Reason}. On platforms that do not support symbolic links, {error, enotsup} @@ -580,11 +581,11 @@ eacces

Missing read or write permissions for the parent directories - of Name1 or Name2.

+ of Existing or New.

eexist -

Name2 already exists.

+

New already exists.

enotsup diff --git a/lib/kernel/src/file.erl b/lib/kernel/src/file.erl index 0b0f91d86a..2d54ae4c38 100644 --- a/lib/kernel/src/file.erl +++ b/lib/kernel/src/file.erl @@ -267,9 +267,9 @@ read_file(Name) -> make_link(Old, New) -> check_and_call(make_link, [file_name(Old), file_name(New)]). --spec make_symlink(Name1, Name2) -> ok | {error, Reason} when - Name1 :: name(), - Name2 :: name(), +-spec make_symlink(Existing, New) -> ok | {error, Reason} when + Existing :: name(), + New :: name(), Reason :: posix() | badarg. make_symlink(Old, New) -> -- cgit v1.2.3 From 1033c3c23f6239845aca061d0c354d9bd79e2f47 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 17 Nov 2011 22:38:22 +0100 Subject: Fix typo in gen_sctp(3) --- lib/kernel/doc/src/gen_sctp.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/kernel') diff --git a/lib/kernel/doc/src/gen_sctp.xml b/lib/kernel/doc/src/gen_sctp.xml index 418bfae4b8..579b7f1f74 100644 --- a/lib/kernel/doc/src/gen_sctp.xml +++ b/lib/kernel/doc/src/gen_sctp.xml @@ -270,7 +270,7 @@ it is bound to.

For type seqpacket sockets (the default) IsServer must be true or false. - In the contrast to TCP, in SCTP there is no listening queue length. + In contrast to TCP, in SCTP there is no listening queue length. If IsServer is true the socket accepts new associations, i.e. it will become an SCTP server socket.

For type stream sockets Backlog defines -- cgit v1.2.3 From f3052a3a1a78c5cb5135c5c96c64ae4a39433745 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Mon, 5 Dec 2011 18:28:19 +0100 Subject: Fix misspelling of chosen --- lib/kernel/doc/src/code.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/kernel') diff --git a/lib/kernel/doc/src/code.xml b/lib/kernel/doc/src/code.xml index 6b89711924..ee687511a3 100644 --- a/lib/kernel/doc/src/code.xml +++ b/lib/kernel/doc/src/code.xml @@ -229,10 +229,10 @@ -code_path_choice Choice. If the flag is set to relaxed, the code server will instead choose a suitable directory depending on the actual file structure. If there exists a regular - application ebin directory,situation it will be choosen. But if it does - not exist, the ebin directory in the archive is choosen if it + application ebin directory,situation it will be chosen. But if it does + not exist, the ebin directory in the archive is chosen if it exists. If neither of them exists the original directory will be - choosen.

+ chosen.

The command line flag -code_path_choice Choice does also affect how init interprets the boot script. The -- cgit v1.2.3