Displaying 6 results from an estimated 6 matches for "print_title".
2012 Nov 14
1
Notes on compiling libguestfs 1.19.59 on Debian 7 (Wheezy) beta
In no particular order. Some of these need further investigation.
----------------------------------------------------------------------
I had to patch libguestfs not to use febootstrap-supermin-helper
--copy-kernel option. See attachment #1. This could be avoided by
providing a newer febootstrap in Wheezy.
I had to patch libguestfs to make it not use the (not working)
virtio-scsi in old
2005 Jan 05
1
3.0.x and AIX 5.3
...t;struct var" to "struct
cgi_var". 3.0.10 and 3.0.11pre1 compile successfully on 5.3 after this
change.
Bill
-------------- next part --------------
--- cgi.orig.c 2005-01-05 17:03:29.000000000 -0500
+++ cgi.aix.c 2005-01-05 17:04:03.000000000 -0500
@@ -30,12 +30,12 @@
extern void print_title(char *fmt, ...);
#endif
-struct var {
+struct cgi_var {
char *name;
char *value;
};
-static struct var variables[MAX_VARIABLES];
+static struct cgi_var variables[MAX_VARIABLES];
static int num_variables;
static int content_length;
static int request_post;
2017 Dec 12
2
[PATCH] df: Handle block sizes smaller than 1024 bytes (RHBZ#1525241).
Thanks: Mykola Ivanets
---
df/output.c | 26 ++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/df/output.c b/df/output.c
index eed7f384d..18f76b155 100644
--- a/df/output.c
+++ b/df/output.c
@@ -80,6 +80,22 @@ print_title (void)
}
}
+/* scale (n, 4096, 1024) ==> n * 4
+ * scale (n, 512, 1024) ==> n / 2
+ */
+static uintmax_t
+scale (uintmax_t n, uintmax_t from, uintmax_t to)
+{
+ if (from >= to) {
+ uintmax_t multiplier = from / to;
+ return n * multiplier;
+ }
+ else {
+ uintmax_t diviso...
2004 Nov 09
1
RODBC bug or doc error in sqlFetch on xls files (PR#7354)
...<NA>
3 C:\\Documents and Settings\\bgunter\\My Documents\\LRPdatacln <NA>
TABLE_NAME TABLE_TYPE REMARKS
1 'Success Rates$' TABLE <NA>
2 'Success Rates$'Print_Area TABLE <NA>
3 'Success Rates$'Print_Titles TABLE <NA>
## The following give errors, although
## according to p.16 of manual, this should work:
> dat<-sqlFetch(z,"Success Rates")
Error in odbcTableExists(channel, sqtable) :
Success Rates : table not found on channel
## This only seemed to work ...
&...
2009 Jul 15
0
[PATCH] Make Perl strings translatable
...l b/df/virt-df.pl
index 0ccc7a8..4cac896 100755
--- a/df/virt-df.pl
+++ b/df/virt-df.pl
@@ -28,6 +28,7 @@ use Getopt::Long;
use Data::Dumper;
use File::Temp qw/tempdir/;
use XML::Writer;
+use Locale::TextDomain 'libguestfs';
=encoding utf8
@@ -254,21 +255,21 @@ sub print_stat
sub print_title
{
- my @cols = ("Virtual Machine", "Filesystem");
+ my @cols = (__"Virtual Machine", __"Filesystem");
if (!$inodes) {
if (!$human) {
- push @cols, "1K-blocks";
+ push @cols, __"1K-blocks";
} else {
- push @cols,...
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...ri);
} else {
- $conn = Sys::Virt->new (readonly => 1);
+ $conn = Sys::Virt->new (readonly => 1);
}
my @doms = $conn->list_defined_domains ();
@@ -162,10 +162,10 @@ if (@ARGV == 0) {
my @domnames = map { $_->get_name () } @doms;
if (@domnames) {
- print_title ();
- foreach (@domnames) {
- do_df ($_);
- }
+ print_title ();
+ foreach (@domnames) {
+ do_df ($_);
+ }
}
} else {
print_title ();
@@ -177,9 +177,9 @@ sub do_df
my $g;
if ($uri) {
- $g = open_guest (\@_, address => $uri);
+ $g =...