| 6 | | * The FreeBSD project. |
|---|
| | 7 | * Provided that these terms and disclaimer and all copyright notices |
|---|
| | 8 | * are retained or reproduced in an accompanying document, permission |
|---|
| | 9 | * is granted to deal in this work without restriction, including un- |
|---|
| | 10 | * limited rights to use, publicly perform, distribute, sell, modify, |
|---|
| | 11 | * merge, give away, or sublicence. |
|---|
| 8 | | * License: |
|---|
| 9 | | * |
|---|
| 10 | | * Redistribution and use in source and binary forms, with or without |
|---|
| 11 | | * modification, are permitted under the terms of the BSD License. |
|---|
| 12 | | * |
|---|
| 13 | | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS `AS IS'' AND |
|---|
| 14 | | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|---|
| 15 | | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|---|
| 16 | | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
|---|
| 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. |
|---|
| | 13 | * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to |
|---|
| | 14 | * the utmost extent permitted by applicable law, neither express nor |
|---|
| | 15 | * implied; without malicious intent or gross negligence. In no event |
|---|
| | 16 | * may a licensor, author or contributor be held liable for indirect, |
|---|
| | 17 | * direct, other damage, loss, or other issues arising in any way out |
|---|
| | 18 | * of dealing in the work, even if advised of the possibility of such |
|---|
| | 19 | * damage or existence of a defect, except proven that it results out |
|---|
| | 20 | * of said person's immediate fault when using the work as intended. |
|---|
| | 21 | *- |
|---|
| | 22 | * fgetln() wrapper for operating systems with getline() |
|---|