loader.8 (87505) | loader.8 (87636) |
---|---|
1.\" Copyright (c) 1999 Daniel C. Sobral 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" | 1.\" Copyright (c) 1999 Daniel C. Sobral 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" |
25.\" $FreeBSD: head/sys/boot/common/loader.8 87505 2001-12-07 18:05:24Z rwatson $ | 25.\" $FreeBSD: head/sys/boot/common/loader.8 87636 2001-12-11 00:49:34Z jhb $ |
26.\" 27.\" Note: The date here should be updated whenever a non-trivial 28.\" change is made to the manual page. 29.Dd March 14, 1999 30.Dt LOADER 8 31.Os 32.Sh NAME 33.Nm loader --- 603 unchanged lines hidden (view full) --- 637but without outputting a trailing space. 638.It Ic fclose Pq Ar fd -- 639Closes a file. 640.It Ic fkey Pq Ar fd -- char 641Reads a single character from a file. 642.It Ic fload Pq Ar fd -- 643Process file 644.Em fd . | 26.\" 27.\" Note: The date here should be updated whenever a non-trivial 28.\" change is made to the manual page. 29.Dd March 14, 1999 30.Dt LOADER 8 31.Os 32.Sh NAME 33.Nm loader --- 603 unchanged lines hidden (view full) --- 637but without outputting a trailing space. 638.It Ic fclose Pq Ar fd -- 639Closes a file. 640.It Ic fkey Pq Ar fd -- char 641Reads a single character from a file. 642.It Ic fload Pq Ar fd -- 643Process file 644.Em fd . |
645.It Ic fopen Pq Ar addr len -- fd | 645.It Ic fopen Pq Ar addr len mode Li -- Ar fd |
646Open a file. | 646Open a file. |
647Returns a file descriptor, or -1 in case of failure. | 647Returns a file descriptor, or \-1 in case of failure. The 648.Ar mode 649parameter selects whether the file is to be opened for read access, write 650access, or both. 651The constants 652.Dv O_RDONLY , O_WRONLY , 653and 654.Dv O_RDWR 655are defined in 656.Pa /boot/support.4th , 657indicating read only, write only, and read-write access, respectively. |
648.It Xo 649.Ic fread 650.Pq Ar fd addr len -- len' 651.Xc 652Tries to read 653.Em len 654bytes from file 655.Em fd --- 197 unchanged lines hidden --- | 658.It Xo 659.Ic fread 660.Pq Ar fd addr len -- len' 661.Xc 662Tries to read 663.Em len 664bytes from file 665.Em fd --- 197 unchanged lines hidden --- |