summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément DAVID <clement.david@esi-group.com>2018-06-21 14:54:39 +0200
committerCédric DELAMARRE <cdl@esi-group.com>2018-08-17 15:02:57 +0200
commite29ea4ec8d5accfbbefbb42e59e630559ef67bda (patch)
tree6c7b5132c8aea3cb4e1f32aedbdf6d8b4e34c907
parent292096c5c1134ec5719704549275fee490dde72d (diff)
downloadscilab-e29ea4ec8d5accfbbefbb42e59e630559ef67bda.zip
scilab-e29ea4ec8d5accfbbefbb42e59e630559ef67bda.tar.gz
fileio: remove unused `readnextline` entry point
Change-Id: Id9ab5c3ca7f59d496a153da4a427e5e1da1f2b9c
-rw-r--r--scilab/modules/fileio/Makefile.am1
-rw-r--r--scilab/modules/fileio/Makefile.in12
-rw-r--r--scilab/modules/fileio/fileio.vcxproj4
-rw-r--r--scilab/modules/fileio/fileio.vcxproj.filters11
-rw-r--r--scilab/modules/fileio/includes/readline.h69
-rw-r--r--scilab/modules/fileio/src/c/readline.c80
6 files changed, 2 insertions, 175 deletions
diff --git a/scilab/modules/fileio/Makefile.am b/scilab/modules/fileio/Makefile.am
index b281783..c20c707 100644
--- a/scilab/modules/fileio/Makefile.am
+++ b/scilab/modules/fileio/Makefile.am
@@ -10,7 +10,6 @@ FILEIO_C_SOURCES = \
10 src/c/do_xxscanf.c \ 10 src/c/do_xxscanf.c \
11 src/c/findfiles.c \ 11 src/c/findfiles.c \
12 src/c/Status2Mode.c \ 12 src/c/Status2Mode.c \
13 src/c/readline.c \
14 src/c/getdrives.c \ 13 src/c/getdrives.c \
15 src/c/deleteafile.c \ 14 src/c/deleteafile.c \
16 src/c/getshortpathname.c \ 15 src/c/getshortpathname.c \
diff --git a/scilab/modules/fileio/Makefile.in b/scilab/modules/fileio/Makefile.in
index 56c55dc..99678e1 100644
--- a/scilab/modules/fileio/Makefile.in
+++ b/scilab/modules/fileio/Makefile.in
@@ -183,7 +183,6 @@ am__objects_1 = src/c/libscifileio_algo_la-FileExist.lo \
183 src/c/libscifileio_algo_la-do_xxscanf.lo \ 183 src/c/libscifileio_algo_la-do_xxscanf.lo \
184 src/c/libscifileio_algo_la-findfiles.lo \ 184 src/c/libscifileio_algo_la-findfiles.lo \
185 src/c/libscifileio_algo_la-Status2Mode.lo \ 185 src/c/libscifileio_algo_la-Status2Mode.lo \
186 src/c/libscifileio_algo_la-readline.lo \
187 src/c/libscifileio_algo_la-getdrives.lo \ 186 src/c/libscifileio_algo_la-getdrives.lo \
188 src/c/libscifileio_algo_la-deleteafile.lo \ 187 src/c/libscifileio_algo_la-deleteafile.lo \
189 src/c/libscifileio_algo_la-getshortpathname.lo \ 188 src/c/libscifileio_algo_la-getshortpathname.lo \
@@ -678,7 +677,6 @@ FILEIO_C_SOURCES = \
678 src/c/do_xxscanf.c \ 677 src/c/do_xxscanf.c \
679 src/c/findfiles.c \ 678 src/c/findfiles.c \
680 src/c/Status2Mode.c \ 679 src/c/Status2Mode.c \
681 src/c/readline.c \
682 src/c/getdrives.c \ 680 src/c/getdrives.c \
683 src/c/deleteafile.c \ 681 src/c/deleteafile.c \
684 src/c/getshortpathname.c \ 682 src/c/getshortpathname.c \
@@ -1006,8 +1004,6 @@ src/c/libscifileio_algo_la-findfiles.lo: src/c/$(am__dirstamp) \
1006 src/c/$(DEPDIR)/$(am__dirstamp) 1004 src/c/$(DEPDIR)/$(am__dirstamp)
1007src/c/libscifileio_algo_la-Status2Mode.lo: src/c/$(am__dirstamp) \ 1005src/c/libscifileio_algo_la-Status2Mode.lo: src/c/$(am__dirstamp) \
1008 src/c/$(DEPDIR)/$(am__dirstamp) 1006 src/c/$(DEPDIR)/$(am__dirstamp)
1009src/c/libscifileio_algo_la-readline.lo: src/c/$(am__dirstamp) \
1010 src/c/$(DEPDIR)/$(am__dirstamp)
1011src/c/libscifileio_algo_la-getdrives.lo: src/c/$(am__dirstamp) \ 1007src/c/libscifileio_algo_la-getdrives.lo: src/c/$(am__dirstamp) \
1012 src/c/$(DEPDIR)/$(am__dirstamp) 1008 src/c/$(DEPDIR)/$(am__dirstamp)
1013src/c/libscifileio_algo_la-deleteafile.lo: src/c/$(am__dirstamp) \ 1009src/c/libscifileio_algo_la-deleteafile.lo: src/c/$(am__dirstamp) \
@@ -1355,7 +1351,6 @@ distclean-compile:
1355@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-movefile.Plo@am__quote@ 1351@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-movefile.Plo@am__quote@
1356@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-os_wfopen.Plo@am__quote@ 1352@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-os_wfopen.Plo@am__quote@
1357@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-pathconvert.Plo@am__quote@ 1353@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-pathconvert.Plo@am__quote@
1358@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-readline.Plo@am__quote@
1359@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-removedir.Plo@am__quote@ 1354@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-removedir.Plo@am__quote@
1360@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-scanf_functions.Plo@am__quote@ 1355@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-scanf_functions.Plo@am__quote@
1361@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-scicurdir.Plo@am__quote@ 1356@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscifileio_algo_la-scicurdir.Plo@am__quote@
@@ -1439,13 +1434,6 @@ src/c/libscifileio_algo_la-Status2Mode.lo: src/c/Status2Mode.c
1439@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1434@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1440@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscifileio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscifileio_algo_la-Status2Mode.lo `test -f 'src/c/Status2Mode.c' || echo '$(srcdir)/'`src/c/Status2Mode.c 1435@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscifileio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscifileio_algo_la-Status2Mode.lo `test -f 'src/c/Status2Mode.c' || echo '$(srcdir)/'`src/c/Status2Mode.c
1441 1436
1442src/c/libscifileio_algo_la-readline.lo: src/c/readline.c
1443@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscifileio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscifileio_algo_la-readline.lo -MD -MP -MF src/c/$(DEPDIR)/libscifileio_algo_la-readline.Tpo -c -o src/c/libscifileio_algo_la-readline.lo `test -f 'src/c/readline.c' || echo '$(srcdir)/'`src/c/readline.c
1444@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscifileio_algo_la-readline.Tpo src/c/$(DEPDIR)/libscifileio_algo_la-readline.Plo
1445@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/readline.c' object='src/c/libscifileio_algo_la-readline.lo' libtool=yes @AMDEPBACKSLASH@
1446@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1447@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscifileio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscifileio_algo_la-readline.lo `test -f 'src/c/readline.c' || echo '$(srcdir)/'`src/c/readline.c
1448
1449src/c/libscifileio_algo_la-getdrives.lo: src/c/getdrives.c 1437src/c/libscifileio_algo_la-getdrives.lo: src/c/getdrives.c
1450@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscifileio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscifileio_algo_la-getdrives.lo -MD -MP -MF src/c/$(DEPDIR)/libscifileio_algo_la-getdrives.Tpo -c -o src/c/libscifileio_algo_la-getdrives.lo `test -f 'src/c/getdrives.c' || echo '$(srcdir)/'`src/c/getdrives.c 1438@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscifileio_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscifileio_algo_la-getdrives.lo -MD -MP -MF src/c/$(DEPDIR)/libscifileio_algo_la-getdrives.Tpo -c -o src/c/libscifileio_algo_la-getdrives.lo `test -f 'src/c/getdrives.c' || echo '$(srcdir)/'`src/c/getdrives.c
1451@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscifileio_algo_la-getdrives.Tpo src/c/$(DEPDIR)/libscifileio_algo_la-getdrives.Plo 1439@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscifileio_algo_la-getdrives.Tpo src/c/$(DEPDIR)/libscifileio_algo_la-getdrives.Plo
diff --git a/scilab/modules/fileio/fileio.vcxproj b/scilab/modules/fileio/fileio.vcxproj
index 29f27f8..9054d8e 100644
--- a/scilab/modules/fileio/fileio.vcxproj
+++ b/scilab/modules/fileio/fileio.vcxproj
@@ -256,7 +256,6 @@ lib /DEF:"$(ProjectDir)preferences_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Pla
256 <ClCompile Include="src\cpp\newest.cpp" /> 256 <ClCompile Include="src\cpp\newest.cpp" />
257 <ClCompile Include="src\c\os_wfopen.c" /> 257 <ClCompile Include="src\c\os_wfopen.c" />
258 <ClCompile Include="src\c\pathconvert.c" /> 258 <ClCompile Include="src\c\pathconvert.c" />
259 <ClCompile Include="src\c\readline.c" />
260 <ClCompile Include="src\c\removedir.c" /> 259 <ClCompile Include="src\c\removedir.c" />
261 <ClCompile Include="src\c\scanf_functions.c" /> 260 <ClCompile Include="src\c\scanf_functions.c" />
262 <ClCompile Include="src\c\scicurdir.c" /> 261 <ClCompile Include="src\c\scicurdir.c" />
@@ -328,7 +327,6 @@ lib /DEF:"$(ProjectDir)preferences_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Pla
328 <ClInclude Include="includes\newest.h" /> 327 <ClInclude Include="includes\newest.h" />
329 <ClInclude Include="includes\os_wfopen.h" /> 328 <ClInclude Include="includes\os_wfopen.h" />
330 <ClInclude Include="includes\pathconvert.h" /> 329 <ClInclude Include="includes\pathconvert.h" />
331 <ClInclude Include="includes\readline.h" />
332 <ClInclude Include="includes\removedir.h" /> 330 <ClInclude Include="includes\removedir.h" />
333 <ClInclude Include="includes\scanf_functions.h" /> 331 <ClInclude Include="includes\scanf_functions.h" />
334 <ClInclude Include="includes\scicurdir.h" /> 332 <ClInclude Include="includes\scicurdir.h" />
@@ -353,4 +351,4 @@ lib /DEF:"$(ProjectDir)preferences_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Pla
353 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 351 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
354 <ImportGroup Label="ExtensionTargets"> 352 <ImportGroup Label="ExtensionTargets">
355 </ImportGroup> 353 </ImportGroup>
356</Project> \ No newline at end of file 354</Project>
diff --git a/scilab/modules/fileio/fileio.vcxproj.filters b/scilab/modules/fileio/fileio.vcxproj.filters
index 0a223d0..82c10a0 100644
--- a/scilab/modules/fileio/fileio.vcxproj.filters
+++ b/scilab/modules/fileio/fileio.vcxproj.filters
@@ -132,9 +132,6 @@
132 <ClCompile Include="src\c\pathconvert.c"> 132 <ClCompile Include="src\c\pathconvert.c">
133 <Filter>Source Files</Filter> 133 <Filter>Source Files</Filter>
134 </ClCompile> 134 </ClCompile>
135 <ClCompile Include="src\c\readline.c">
136 <Filter>Source Files</Filter>
137 </ClCompile>
138 <ClCompile Include="src\c\removedir.c"> 135 <ClCompile Include="src\c\removedir.c">
139 <Filter>Source Files</Filter> 136 <Filter>Source Files</Filter>
140 </ClCompile> 137 </ClCompile>
@@ -275,9 +272,6 @@
275 <ClInclude Include="includes\os_wfopen.h"> 272 <ClInclude Include="includes\os_wfopen.h">
276 <Filter>Header Files</Filter> 273 <Filter>Header Files</Filter>
277 </ClInclude> 274 </ClInclude>
278 <ClInclude Include="includes\readline.h">
279 <Filter>Header Files</Filter>
280 </ClInclude>
281 <ClInclude Include="includes\removedir.h"> 275 <ClInclude Include="includes\removedir.h">
282 <Filter>Header Files</Filter> 276 <Filter>Header Files</Filter>
283 </ClInclude> 277 </ClInclude>
@@ -338,9 +332,6 @@
338 <ClInclude Include="includes\getshortpathname.h"> 332 <ClInclude Include="includes\getshortpathname.h">
339 <Filter>Header Files</Filter> 333 <Filter>Header Files</Filter>
340 </ClInclude> 334 </ClInclude>
341 <ClInclude Include="includes\readline.h">
342 <Filter>Header Files</Filter>
343 </ClInclude>
344 <ClInclude Include="includes\dlManager.h"> 335 <ClInclude Include="includes\dlManager.h">
345 <Filter>Header Files</Filter> 336 <Filter>Header Files</Filter>
346 </ClInclude> 337 </ClInclude>
@@ -388,4 +379,4 @@
388 <Filter>Libraries Dependencies\Imports</Filter> 379 <Filter>Libraries Dependencies\Imports</Filter>
389 </None> 380 </None>
390 </ItemGroup> 381 </ItemGroup>
391</Project> \ No newline at end of file 382</Project>
diff --git a/scilab/modules/fileio/includes/readline.h b/scilab/modules/fileio/includes/readline.h
deleted file mode 100644
index 30dc16c..0000000
--- a/scilab/modules/fileio/includes/readline.h
+++ /dev/null
@@ -1,69 +0,0 @@
1/*
2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2006 - INRIA - Sylvestre LEDRU
4 * Copyright (C) DIGITEO - 2010 - Allan CORNET
5 *
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
7 *
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
14 *
15 */
16/*--------------------------------------------------------------------------*/
17#ifndef __READLINE_H__
18#define __READLINE_H__
19
20#include "dynlib_fileio.h"
21#include "machine.h"
22
23#define READNEXTLINE_ERROR_EOF_REACHED -1
24#define READNEXTLINE_ERROR_EOF_REACHED_AFTER_EOL 0
25#define READNEXTLINE_ERROR_EOL 1
26#define READNEXTLINE_ERROR_BUFFER_FULL 2
27#define READNEXTLINE_ERROR_EOF_REACHED_BEFORE_EOL 3
28#define READNEXTLINE_ERROR_ERROR_UNMANAGED 4
29
30/* PLEASE USE mgetl (see mgetl.h) and not these functions */
31/* only for compatibility with fortran code */
32
33/**
34* read a line from a text file
35* used by texmacs mode and readnextline
36* @param[in] fd: a int file descriptor to open
37* @param[in/out] buf : string buffer returned
38* @param[in] n : bsiz (4096)
39* @param[in/out]: *cnt numbers of returned characters
40* @param[in/out]: *nr numbers of returned characters
41* @return info code
42* -1 : EOF reached
43* 0 : EOF reached after an EOL
44* 1 : EOL reached
45* 2 : buffer full
46* 3 : EOF reached before any EOL
47* 4 : ERROR (not managed)
48*/
49FILEIO_IMPEXP int LineRead(int fd, char buf[], int n, int *cnt, int *nr);
50
51/**
52* read a line from a text file
53* used by exec to read a .sce file
54* @param[in] fd : a int file descriptor to open
55* @param[in/out] buf : string buffer returned
56* @param[in] *n : bsiz (4096)
57* @param[out] *count : numbers of returned characters + 1
58* @param[out] *nr : numbers of returned characters
59* @param[out] *ierr : int error code
60* -1 : EOF reached
61* 0 : EOF reached after an EOL
62* 1 : EOL reached
63* 2 : buffer full
64* 3 : EOF reached before any EOL
65* 4 : ERROR (not managed)
66*/
67FILEIO_IMPEXP void C2F(readnextline)(int *fd, char buf[], int *n, int *count, int *nr, int *ierr);
68
69#endif /* __READLINE_H__ */
diff --git a/scilab/modules/fileio/src/c/readline.c b/scilab/modules/fileio/src/c/readline.c
deleted file mode 100644
index b802774..0000000
--- a/scilab/modules/fileio/src/c/readline.c
+++ /dev/null
@@ -1,80 +0,0 @@
1/*
2* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3* Copyright (C) INRIA
4* Copyright (C) DIGITEO - 2010 - Allan CORNET
5*
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
7 *
8 * This file is hereby licensed under the terms of the GNU GPL v2.0,
9 * pursuant to article 5.3.4 of the CeCILL v.2.1.
10 * This file was originally licensed under the terms of the CeCILL v2.1,
11 * and continues to be available under such terms.
12 * For more information, see the COPYING file which you should have received
13 * along with this program.
14*
15*/
16/*--------------------------------------------------------------------------*/
17#include <stdio.h>
18#include <string.h>
19#include "readline.h"
20#include "mgetl.h"
21#include "freeArrayOfString.h"
22#include "charEncoding.h"
23#include "sci_malloc.h"
24/*--------------------------------------------------------------------------*/
25#define EMPTYSTR ""
26/*--------------------------------------------------------------------------*/
27int LineRead(int fd, char buf[], int n, int *cnt, int *nr)
28{
29 int returnedInfo;
30 int nbLinesReaded = 0;
31 wchar_t **lines = NULL;
32 char* line = NULL;
33
34 nbLinesReaded = mgetl(fd, 1, &lines);
35 if (nbLinesReaded == 1)
36 {
37 char* line = wide_string_to_UTF8(lines[0]);
38 freeArrayOfWideString(lines, nbLinesReaded);
39
40 memset(buf, 0, n);
41 strcpy(buf, EMPTYSTR);
42
43 /* current limitation (bsiz) of line readed by scilab */
44 if ((int)strlen(line) < bsiz)
45 {
46 strcpy(buf, line);
47 returnedInfo = READNEXTLINE_ERROR_EOL;
48 }
49 else
50 {
51 strncpy(buf, line, bsiz);
52 returnedInfo = READNEXTLINE_ERROR_BUFFER_FULL;
53 }
54
55 *cnt = (int)strlen(buf) + 1;
56 *nr = *cnt;
57
58 FREE(line);
59 }
60 else if (nbLinesReaded == 0)
61 {
62 *cnt = 0;
63 *nr = 0;
64 returnedInfo = READNEXTLINE_ERROR_EOF_REACHED;
65 }
66 else
67 {
68 *cnt = 0;
69 *nr = 0;
70 returnedInfo = READNEXTLINE_ERROR_ERROR_UNMANAGED;
71 }
72
73 return returnedInfo;
74}
75/*--------------------------------------------------------------------------*/
76void C2F(readnextline)(int *fd, char buf[], int *n, int *count, int *nr, int *ierr)
77{
78 *ierr = LineRead(*fd, buf, *n, count, nr);
79}
80/*--------------------------------------------------------------------------*/