diff options
author | Andrey Pampukha <[email protected]> | 2010-03-19 11:03:32 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-03-19 11:03:32 +0000 |
commit | 278c0493ea371977d2860c6faeef4fb381dee9bc (patch) | |
tree | 7021908facf06c72600684126298ab938bf69fc4 /lib/kernel/doc/src/file.xml | |
parent | d44b5b003a4a1910296245a971daab4e3ed0611b (diff) | |
download | otp-278c0493ea371977d2860c6faeef4fb381dee9bc.tar.gz otp-278c0493ea371977d2860c6faeef4fb381dee9bc.tar.bz2 otp-278c0493ea371977d2860c6faeef4fb381dee9bc.zip |
kernel: document the file:change_mode/2 function
Diffstat (limited to 'lib/kernel/doc/src/file.xml')
-rw-r--r-- | lib/kernel/doc/src/file.xml | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml index f9f5443f68..50f9722a1c 100644 --- a/lib/kernel/doc/src/file.xml +++ b/lib/kernel/doc/src/file.xml @@ -4,7 +4,7 @@ <erlref> <header> <copyright> - <year>1996</year><year>2009</year> + <year>1996</year><year>2010</year> <holder>Ericsson AB. All Rights Reserved.</holder> </copyright> <legalnotice> @@ -13,12 +13,12 @@ compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. - + Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. - + </legalnotice> <title>file</title> @@ -75,6 +75,19 @@ time() = {{Year, Month, Day}, {Hour, Minute, Second}} </desc> </func> <func> + <name>change_mode(Filename, Mode) -> ok | {error, Reason}</name> + <fsummary>Change permissions of a file</fsummary> + <type> + <v>Filename = name()</v> + <v>Mode = int()</v> + <v>Reason = ext_posix()</v> + </type> + <desc> + <p>Changes permissions of a file. See + <seealso marker="#write_file_info/2">write_file_info/2</seealso>.</p> + </desc> + </func> + <func> <name>change_owner(Filename, Uid) -> ok | {error, Reason}</name> <fsummary>Change owner of a file</fsummary> <type> |