Displaying 20 results from an estimated 26 matches for "xdrstdio_creat".
Did you mean:
xdrstdio_create
2009 Sep 11
1
[PATCH] guestfish: Redirect stdout when executing remote commands
...- dup2 (fd, 1);
- close (fd);
- }
+ close_stdout();
/* Read commands and execute them. */
while (!quit) {
@@ -125,6 +238,8 @@ rc_listen (void)
if (s == -1)
perror ("accept");
else {
+ receive_stdout(s);
+
fp = fdopen (s, "r+");
xdrstdio_create (&xdr, fp, XDR_DECODE);
@@ -180,6 +295,7 @@ rc_listen (void)
error:
xdr_destroy (&xdr); /* NB. This doesn't close 'fp'. */
fclose (fp); /* Closes the underlying socket 's'. */
+ close_stdout(); /* Re-close stdout */
}
}
@@ -227,6 +34...
2001 Jul 06
4
How to build R-1.3.0 under HP-UX 11.00
...source.o split.o
subassign.o subscript.o subset.o summary.o unique.o util.o
version.o vfonts.o xxxpr.o ../unix/libunix.a ../appl/libappl.a
../nmath/libnmath.a -L/opt/f2c/lib/ -lm -ldld -L/usr/local/li
b -ltermcap -lm
/usr/bin/ld: Unsatisfied symbols:
xdr_double (code)
xdr_string (code)
xdrstdio_create (code)
xdr_bytes (code)
xdr_int (code)
i_len (code)
d_sign (code)
collect2: ld returned 1 exit status
*** Error exit code 1
Do you know what to do? I have set FLIBS = -L/opt/f2c/lib -ln; previously
FLIBS = /opt/f2c/lib -ln and it is not good.
Best regards
Kris
PS. Sorry my english...
2001 Jul 06
4
How to build R-1.3.0 under HP-UX 11.00
...source.o split.o
subassign.o subscript.o subset.o summary.o unique.o util.o
version.o vfonts.o xxxpr.o ../unix/libunix.a ../appl/libappl.a
../nmath/libnmath.a -L/opt/f2c/lib/ -lm -ldld -L/usr/local/li
b -ltermcap -lm
/usr/bin/ld: Unsatisfied symbols:
xdr_double (code)
xdr_string (code)
xdrstdio_create (code)
xdr_bytes (code)
xdr_int (code)
i_len (code)
d_sign (code)
collect2: ld returned 1 exit status
*** Error exit code 1
Do you know what to do? I have set FLIBS = -L/opt/f2c/lib -ln; previously
FLIBS = /opt/f2c/lib -ln and it is not good.
Best regards
Kris
PS. Sorry my english...
2001 Jul 09
0
ODP: Re: How to build R-1.3.0 under HP-UX 11.00
...ipt.o subset.o summary.o unique.o util.o
> version.o vfonts.o xxxpr.o ../unix/libunix.a ../appl/libappl.a
> ../nmath/libnmath.a -L/opt/f2c/lib/ -lm -ldld -L/usr/local/li
> b -ltermcap -lm
> /usr/bin/ld: Unsatisfied symbols:
> xdr_double (code)
> xdr_string (code)
> xdrstdio_create (code)
> xdr_bytes (code)
> xdr_int (code)
> i_len (code)
> d_sign (code)
> collect2: ld returned 1 exit status
> *** Error exit code 1
>
> Do you know what to do? I have set FLIBS = -L/opt/f2c/lib -ln; previously
> FLIBS = /opt/f2c/lib -ln and it is not good...
2009 Aug 12
1
[PATCH libguestfs] fish: don't read freed memory
...17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Wed, 12 Aug 2009 14:44:14 +0200
Subject: [PATCH libguestfs] fish: don't read freed memory
* fish/rc.c (rc_remote): Close file handle only *after* xdr_destroy,
because that latter may flush its file handle (implicated via
xdrstdio_create).
---
fish/rc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/fish/rc.c b/fish/rc.c
index e88716c..57f1c36 100644
--- a/fish/rc.c
+++ b/fish/rc.c
@@ -235,8 +235,8 @@ rc_remote (int pid, const char *cmd, int argc, char *argv[],
if (!xdr_guestfish_hello (&x...
2016 Nov 09
0
[PATCH v2 5/6] New API: yara_scan
...eserialise_yara_detection_list (guestfs_h *g, FILE *fp,
+ struct guestfs_yara_detection_list *detections)
+{
+ XDR xdr;
+ int ret = 0;
+ uint32_t index = 0;
+ struct stat statbuf;
+
+ ret = fstat (fileno(fp), &statbuf);
+ if (ret == -1)
+ return -1;
+
+ xdrstdio_create (&xdr, fp, XDR_DECODE);
+
+ for (index = 0; xdr_getpos (&xdr) < statbuf.st_size; index++) {
+ if (index == detections->len) {
+ detections->len = 2 * detections->len;
+ detections->val = safe_realloc (g, detections->val,
+...
2017 Apr 06
0
[PATCH v6 6/7] New API: yara_scan
...eserialise_yara_detection_list (guestfs_h *g, FILE *fp,
+ struct guestfs_yara_detection_list *detections)
+{
+ XDR xdr;
+ int ret = 0;
+ uint32_t index = 0;
+ struct stat statbuf;
+
+ ret = fstat (fileno(fp), &statbuf);
+ if (ret == -1)
+ return -1;
+
+ xdrstdio_create (&xdr, fp, XDR_DECODE);
+
+ for (index = 0; xdr_getpos (&xdr) < statbuf.st_size; index++) {
+ if (index == detections->len) {
+ detections->len = 2 * detections->len;
+ detections->val = safe_realloc (g, detections->val,
+...
2017 Apr 04
0
[PATCH v5 6/7] New API: yara_scan
...eserialise_yara_detection_list (guestfs_h *g, FILE *fp,
+ struct guestfs_yara_detection_list *detections)
+{
+ XDR xdr;
+ int ret = 0;
+ uint32_t index = 0;
+ struct stat statbuf;
+
+ ret = fstat (fileno(fp), &statbuf);
+ if (ret == -1)
+ return -1;
+
+ xdrstdio_create (&xdr, fp, XDR_DECODE);
+
+ for (index = 0; xdr_getpos (&xdr) < statbuf.st_size; index++) {
+ if (index == detections->len) {
+ detections->len = 2 * detections->len;
+ detections->val = safe_realloc (g, detections->val,
+...
2017 Apr 23
0
[PATCH v7 6/7] New API: yara_scan
...s_h *g, FILE *fp,
+ struct guestfs_yara_detection_list *detections)
+{
+ XDR xdr;
+ int r = 0;
+ uint32_t index = 0;
+ struct stat statbuf;
+
+ r = fstat (fileno(fp), &statbuf);
+ if (r == -1) {
+ perrorf (g, "fstat");
+ return -1;
+ }
+
+ xdrstdio_create (&xdr, fp, XDR_DECODE);
+
+ for (index = 0; xdr_getpos (&xdr) < statbuf.st_size; index++) {
+ if (index == detections->len) {
+ detections->len = 2 * detections->len;
+ detections->val = safe_realloc (g, detections->val,
+...
2016 Jun 13
0
[PATCH v8 2/3] New API: filesystem_walk
...se_dirent_list (guestfs_h *g, FILE *fp,
+ struct guestfs_tsk_dirent_list *dirents)
+{
+ XDR xdr;
+ bool_t ret = 0;
+ int statret = 0;
+ uint32_t index = 0;
+ struct stat statbuf;
+
+ statret = fstat (fileno(fp), &statbuf);
+ if (statret == -1)
+ return -1;
+
+ xdrstdio_create (&xdr, fp, XDR_DECODE);
+
+ for (index = 0; xdr_getpos (&xdr) < statbuf.st_size; index++) {
+ if (index == dirents->len) {
+ dirents->len = 2 * dirents->len;
+ dirents->val = safe_realloc (g, dirents->val,
+ dirents->len...
2017 Apr 23
11
[PATCH v7 0/7] Feature: Yara file scanning
v7:
- Fixes according to comments
- Rebase on top of 1.37.12
Matteo Cafasso (7):
daemon: expose file upload logic
appliance: add yara dependency
New API: yara_load
New API: yara_destroy
New API: internal_yara_scan
New API: yara_scan
yara_scan: added API tests
appliance/packagelist.in | 4 +
configure.ac | 1 +
daemon/Makefile.am
2009 Dec 16
2
What is the fastest way to see what are in an RData file?
Currently, I load the RData file then ls() and str(). But loading the file
takes too long if the file is big. Most of the time, I only interested what
the variables are in the the file and the attributes of the variables (like
if it is a data.frame, matrix, what are the colnames/rownames, etc.)
I'm wondering if there is any facility in R to help me avoid loading the
whole file.
2017 Apr 06
14
[PATCH v6 0/7] Feature: Yara file scanning
v6:
- use new test functions
- fix yara_detection struct field names
- revert yara_load function to initial version
With Pino we were exploring the idea of allowing Users to load multiple
rule files with subsequent calls to yara_load API.
https://www.redhat.com/archives/libguestfs/2016-November/msg00119.html
It turns out impractical due to YARA API limitations. It is possible
to load multiple
2016 Jun 12
6
[PATCH v7 0/5] New API: filesystem_walk
v7:
- iterate over output file instead of reading it into memory
Instead of reading the whole output file in memory and iterating over
the resulting buffer, use XDR primitives to directly iterate over
the file itself.
This should reduce the API memory consumption.
Patch ready for review. Code available at:
https://github.com/noxdafox/libguestfs/tree/filesystem_walk
Matteo Cafasso
2016 Jun 15
4
[PATCH v9 0/3] New API: filesystem_walk
v9:
- add missing files: java/Makefile.inc,
java/com/redhat/et/libguestfs/.gitignore,
gobject/Makefile.inc
- reserve space in tsk_dirent struct for future usage
- use int instead of bool_t type
- improve API documentation
Matteo Cafasso (3):
New API: internal_filesystem_walk
New API: filesystem_walk
lib: Added filesystem_walk command tests
daemon/Makefile.am
2016 Dec 18
6
[PATCH v3 0/6] Feature: Yara file scanning
v3:
- allow to load multiple rule files
- added optional namespace parameter to yara_load
- move destructor logic in yara module
- use generic file upload logic
- use generic temporary path function
Matteo Cafasso (6):
appliance: add yara dependency
New API: yara_load
New API: yara_destroy
New API: internal_yara_scan
New API: yara_scan
yara_scan: added API tests
2016 Jun 13
7
[PATCH v8 0/3] New API: filesystem_walk
v8:
- rebase on master
- bump version to 1.33.37
- squash commits 1, 2, 3
Kept original commits messages when squashing them.
Matteo Cafasso (3):
New API: internal_filesystem_walk
New API: filesystem_walk
lib: Added filesystem_walk command tests
daemon/Makefile.am | 4 +-
daemon/tsk.c | 249 ++++++++++++++++++++++++++++++++++++++
2016 Nov 02
8
[PATCH 0/6] Feature: Yara file scanning
Yara is a rule based scanning engine aimed to help malware analysts in finding and classifying interesting samples.
https://github.com/VirusTotal/yara
This series adds Yara support to Libguestfs allowing to upload sets of rules and scanning files against them.
Currently provided APIs:
- yara_load: loads a set of rules
- yara_destroy: free resources allocated by loaded rules
- yara_scan:
2017 Feb 19
9
[PATCH v3 0/7] Feature: Yara file scanning
Rebase patches on top of 1.35.25.
No changes since last series.
Matteo Cafasso (7):
daemon: expose file upload logic
appliance: add yara dependency
New API: yara_load
New API: yara_destroy
New API: internal_yara_scan
New API: yara_scan
yara_scan: added API tests
appliance/packagelist.in | 4 +
configure.ac | 1 +
daemon/Makefile.am
2017 Apr 25
8
[PATCH v9 0/7] Feature: Yara file scanning
v9:
- fixes according to comments
Matteo Cafasso (7):
daemon: expose file upload logic
appliance: add yara dependency
New API: yara_load
New API: yara_destroy
New API: internal_yara_scan
New API: yara_scan
yara_scan: added API tests
appliance/packagelist.in | 4 +
configure.ac | 1 +
daemon/Makefile.am | 4 +-