Displaying 20 results from an estimated 362 matches for "getline".
2007 May 23
2
Possible ld.exe problem when building
...-Wall -pedantic -std=gnu99' -f Makefile.win
make --no-print-directory -C ../main OPTFLAGS='-O3 -Wall -pedantic -std=gnu99' FFLAGS='-O3 -Wall' -f Makefile.win
make --no-print-directory -C ./graphapp OPTFLAGS='-O3 -Wall -pedantic -std=gnu99'
make --no-print-directory -C ./getline OPTFLAGS='-O3 -Wall -pedantic -std=gnu99'
make[4]: `gl.a' is up to date.
make -f Makefile.win chartables.h
make[5]: `chartables.h' is up to date.
make -f Makefile.win makeMakedeps
make -f Makefile.win libpcre.a
make[5]: `libpcre.a' is up to date.
make[4]: Nothing to be done for...
2015 May 14
1
[PATCH] When calling getline first time, initialize length to zero.
The man page for getline says:
ssize_t getline(char **lineptr, size_t *n, FILE *stream);
[...]
If *lineptr is set to NULL and *n is set 0 before the call, then get‐
line() will allocate a buffer for storing the line. This buffer should
be freed by the user program even if getline() failed.
which seems to...
2001 Feb 05
3
getline
Some system have getline method.
Place rename 'getline' to 'Linebuf_getline' in ssh-keyscan.c !
2009 Jan 31
1
"UI" keyword, pc_default and getline
There is a problem with "pc_default" if the following is present in the config file (line order does matter):
UI gfxboot.com init
DEFAULT memtest
"pc_default" is called on the "DEFAULT" keyword, but "getline" is skipped, so the code now tries to
parse the keywords parameter. The config line should be skipped in this case.
This could be fixed by converting "skipline" to a function and calling it from "pc_default".
- Sebastian
diff --git a/core/parsecmd.inc b/core/parsecmd.inc...
2020 Jun 01
0
[PATCH nbdkit 1/3] server: Disallow password=- from non-tty and fix error message (RHBZ#1842440).
...nosuchfile password=- --run 'qemu-img info $nbd' </dev/null
password:
nbdkit: error: could not read password from stdin: Inappropriate ioctl for device
The error (ENOTTY Inappropriate ioctl for device) is actually a
leftover errno from the previous isatty call. This happens because
getline(3) can return -1 both for error and EOF. In the EOF case it
does not set errno so we get the previous random value.
Also:
$ echo -n '' | nbdkit ssh host=localhost /nosuchfile password=- --run 'qemu-img info $nbd'
password:
nbdkit: error: could not read password from stdin:...
2020 Aug 18
0
[PATCH nbdkit 3/9] server: Add general replacements for missing functions using LIBOBJS.
Especially on Windows, some common functions are missing. Use the
autoconf LIBOBJS mechanism to replace these functions.
This includes replacement functions for:
Function names Implementation Origin
getdelim, getline general purpose NetBSD under a compatible license
openlog, syslog, Win32 written by me
vsyslog
realpath Win32 written by me
strndup general purpose written by me
This should do nothing on existing supported platforms. It is only
intended...
2020 Jun 01
7
server: Fix reading passwords interactively.
https://bugzilla.redhat.com/show_bug.cgi?id=1842440
Patches 1 and 2 address fairly obvious bugs in how we handle reading
passwords from stdin.
There are other ways we may consider fixing these bugs:
- Should password=- always open /dev/tty and ignore stdin entirely?
- Should we make password=-0/-1/-2 work by skipping the close? Or
perhaps reopen the file descriptors on /dev/null after
2012 Jan 13
0
WISHLIST: Be able to timeout readline()/stdin via setTimeLimit in all consoles
...'reader thread' and wait until
* a new line of input is available. The 'reader thread' uses
* InThreadReadConsole to get it. InThreadReadConsole points to:
* case 2: CharReadConsole
* case 3: FileReadConsole
Here I get a bit lost, but there is:
/*2: from character console with getline (only used as InThreadReadConsole)*/
static int
CharReadConsole(const char *prompt, char *buf, int len, int addtohistory)
{
int res = getline(prompt, buf, len);
if (addtohistory) gl_histadd(buf);
return !res;
}
and, AFAIU, getline() is from the GNU getline library. Is it possible
to t...
2020 Aug 20
0
[PATCH nbdkit 01/13] common/replacements: Replace missing functions using LIBOBJS.
Especially on Windows, some common functions are missing. Use the
autoconf LIBOBJS mechanism to replace these functions.
This includes replacement functions for:
Function names Implementation Origin
getdelim, getline general purpose NetBSD under a compatible license
openlog, syslog, Win32 written by me
vsyslog
realpath Win32 written by me
strndup general purpose NetBSD under a compatible license
This should do nothing on existing supported platforms....
2008 Jan 27
18
Reporting Analisysing program
Anybody knows some graphic reporting/analysing program for shorewall
4.0.7 or i have to do it by accounting?
--
Javier
Martínez
Technical Manager
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
2009 Apr 20
1
[LLVMdev] Build fails on windows with VC2008
Hello
The current svn revision fails to compile on windows using Visual Studio
2008.
I'm getting:
3>f:\dev\llvm\lib\codegen\asmprinter\dwarfwriter.cpp(1167) : error C4716:
'llvm::DbgScope::getLine' : must return a value
3>f:\dev\llvm\lib\codegen\asmprinter\dwarfwriter.cpp(1168) : error C4716:
'llvm::DbgScope::getColumn' : must return a value
3>f:\dev\llvm\lib\codegen\asmprinter\dwarfwriter.cpp(1169) : error C4716:
'llvm::DbgScope::getFile' : must return a value
Att...
2004 Sep 16
3
[PATCH] gen_init_cpio processes file from a file list
The patch makes gen_init_cpio generate the initramfs_data.cpio from a
file which contains a list of entries: file, dir, nod. I swapped the
order of filename/location for the file arguments so that it would be
more uniform with the dir and nod tyes.
[thayne@torch linux-2.6.8]$ usr/gen_init_cpio --help
ERROR: unable to open '--help': No such file or directory
Usage:
2007 Feb 05
1
rsync 3-cvs missing prereqs/deps on osx
hi,
as it's been awhile since my last attempts w/ v269, i'm building the
latest rsync3-svs on osx 10.4.8; looking to see what's evolved re:
acls & xattrs support on osx ...
@ build, i note complaint abt a missing yodl2man, which originates with YODL.
YODL, then requires icmake.
as neither is available on osx, it's src build time.
on building debian's icmake (already
2017 Mar 23
2
[PATCH] p2v: Use lscpu instead of libvirt to get CPU information.
..." | awk '{ for (i = 3; i <= NF; ++i) { print $i }; exit }'";
+ cmd = "lscpu";
fp = popen (cmd, "re");
if (fp == NULL) {
- perror ("/proc/cpuinfo");
- return;
+ perror (cmd);
+ return NULL;
}
- while (errno = 0, (len = getline (&flag, &buflen, fp)) != -1) {
- if (len > 0 && flag[len-1] == '\n')
- flag[len-1] = '\0';
-
- if (STREQ (flag, "acpi"))
- cpu->acpi = 1;
- else if (STREQ (flag, "apic"))
- cpu->apic = 1;
- else if (STREQ (flag,...
2013 Jun 24
2
[OT] bash here documents
Suppose I have this C++ program:
#include <iostream>
int main (int argc, char** argv)
{
while (1)
{
char cmd[80];
std::cin.getline(cmd, 80);
std::cout << "response to " << cmd << std::endl;
}
}
compiled by: c++ -o junk junk.cpp
and I have this bash script:
#!/bin/bash
./junk <<EOF
blah
bleh
\cC
EOF
echo "Something else"
When I run the script, the program starts and wai...
2015 Dec 11
5
Authentication to Secondary Domain Controller initially fails when PDC is offline
Thank you Rowland to noticed that.
Here it is:
------------------------------------------------------------------
#!/usr/bin/awk
BEGIN {
ad_zone = "YOUR.DOMAIN.TLD"
msdcs_zone = "_msdcs." ad_zone
dns_server = "YOUR-DC"
}
{
if ($0 ~ /UPDATE SECTION:/) {
getline
print NF, $0
if ($4 == "A") {
if($1 ~ /_msdcs/) {
zone = msdcs_zone
} else {
zone = ad_zone
}
record = $1
regexp = "." zone "."
sub(regexp, "", record)
cmd = "samba-tool dns add " dns...
2007 Jul 29
0
Bug in TAB handling for Win32 rTerm and rGUI in 2.5.1?
...This seemed like a bug to me, but I wanted to see if this
was in fact intended before reporting.
Before I start, i want to first extend thanks for the big improvements
in integration of command completion for the windows version. Really
nice to have now. But i believe there are some issues.
In getline/getline.c, the "tab" case of the charater handling switch
statement
in getline() simply "break;"s to the end if tab completion is not
enabled, thus
eating the tab. Thus, if tab completion is disabled, a tab no
longer serves as a tab; it disappears.
likewise, in console.c, if...
2007 Aug 01
0
Bug in TAB handling for Win32 Rterm and Rgui (PR#9820)
....72.131.190)
I floated this to r-help a few days ago just to see if i was off-base.
Here we go:
Before I start, i want to first extend thanks for the big improvements
in integration of command completion for the windows version. Really
nice to have now. But i believe there are some issues.
In getline/getline.c, the "tab" case of the character handling switch
statement in getline() simply "break;"s to the end if tab completion is not
enabled, thus eating the tab. Thus, if tab completion is disabled, a tab no
longer serves as a tab; it disappears.
likewise, in console.c, if...
2017 Sep 12
0
[PATCH v2 3/5] lib: qemu: Run QMP ‘query-commands’, ‘query-qmp-schema’ against the qemu binary.
...n": {}} # output from quit
+ * line 5: {"timestamp": ...} # shutdown event
+ */
+ fp = fdopen (fd, "r"); /* this will close (fd) at end of scope */
+ if (fp == NULL) {
+ perrorf (g, "fdopen");
+ return -1;
+ }
+ len = getline (&line, &allocsize, fp); /* line 1 */
+ if (len == -1 || strstr (line, "\"QMP\"") == NULL) {
+ parse_failure:
+ debug (g, "did not understand QMP monitor output from %s (ignored)",
+ g->hv);
+ /* QMP tests are optional, don't fail if we...
2019 Jan 14
6
[PATCH nbdkit incomplete 0/5] Port to Windows.
This is an incomplete port to Windows. Currently the server compiles
and starts up successfully, but goes into an infinite loop when you
connect to it. Nevertheless I think the approach is ready for
feedback. This being Windows the changes go quite deep.
Rich.