[Enforced to uninstall Fedora] Intellectual Property, Brain Copying and Convert-Slum War in Vietnam business
by Pham Dac Khanh - Gmail
Dear who are concerned,
Criminal political economic network of Vietnam “common properties” government enforced to uninstall Fedora software downloaded from oversea mirrors site and threated If you want to marketing Fedora in oversea location, you have to “down knees”.
Satellite using in commercial communication is popular. One of Vietnam “common properties” government perpetrators, Minister of Defense and their subsidiary corporations, used satellite mind control weapons in Vietnam business to control the consumers and to grow their revenue. See more here <http://wordpressblog.dakha.com> http://wordpressblog.dakha.com .
I currently do not have a nationality. I am a victim of Convert-Slum war on political business from 2003 till now. Chairman of Vietnam “common properties” government - Nguyen Minh Triet usually threaten to me by satellite mind control weapon that the business is provided for their exclusive party, political economic wing and china refugees in past. Further, I am a victim of Intellectual Property robbing ( brain copying and brain reading) by satellite mind control weapon, a massive destroying weapon. They read my brain and <http://www.bloglines.com/blog/khanhpham65?id=12> secret business of selling plan. They erased my brain, English skills and knowledge self-learned. Perpetrators tracked my brain each word for re-valuing as perpetrator said <http://www.bloglines.com/blog/khanhpham65?id=4> the tuition of them are not enough and wanted to collect additional tax in oversea. Vietnam “common properties” government used a lot of open sources and illegal cracked software in business but no organization cost their using, profit and future profit. They copied brain data of CEO, Economic Leader, Specialist, etc to set-up to brain’s their wings. See <http://tinyurl.com/n4y74z> U.S secret never told and <http://tinyurl.com/kjzycv> Fortune Profit of PC OS & Anti Virus captured by Vietnam oversea spies. With satellite massive destroying weapons, Vietnam government has been making hidden <http://www.bloglines.com/blog/khanhpham65?id=10> criminal political economic strategy in wired and wireless network. Vietnam governors have been taking bribes daily. They have been spending bribes to launder in business entities, banks, financial capital, oversea investment and their relative oversea education such car, housing and re-investment. In addition, I was enforced to carry heroin and money laundering for their Vietnam “common properties” government, nation bank and commercial banks. Please see the attached file for statistic of <http://www.unodc.org/pdf/WDR_2004/volume_2.pdf> drug cultivation and production.
I have been attacking (torturing, harassing, simulating politic economic, sex rape, mind-controlled family treating conflict and business & financial terrorizing). Perpetrators modified the facts of my memory and brain erasing. Perpetrators usually used the animations and voices of U.S well-known people, economic people and politicians during torture and harassing by satellite mind control weapon (television & radio media hacking and dream manipulation), satellite microwave weapon, and directed energy weapon. I was jailed at home and the mind was jailed. I have been not belonging perpetrators government as bellow story. I have been remaining company owner business but perpetrators attempted to terrorize all incomes and end inheritance-blooding marrying relationship. Perpetrators attempted to abuse (paint bad and will notify these backing to) many powerful people including politicians of the moving next countries of perpetrators thought. I am attempting to find and save persuade evidences and I wonder that obtained evidences above are unsure persuade evidences. I attempted to record ultra low/ high frequencies around and sent to Investigation for decoding. Perpetrators attempted to torture me to out of energy and bio-energy of my brain to stop finding brainwave recording equipments. I hope you will help to find the evidences of perpetrators international criminals network. Perpetrators controlled my family to move out of current city for treating to isolate me from where my story and evidences occurred. Following is more information of my story in brief and full.
Under many years tortured and violated in Vietnam business by satellite mind control and satellite microwave weapon of "Common Properties" Vietcombank and Public's Securities in Vietnam, I could not live like a human. Perpetrators erased my English skills by satellite brain erasing weapon. Because perpetrators did not want me to use English, I had to give up my class in an English Center and gave up studying at home. In 2008, perpetrators used above weapons to enforce me leave some classes that I was studying. Perpetrators tortured and harassed for bribes everyday. Perpetrators attempted to terrorize my finance and business for dropping me down to be out of money step by step and will join their criminals network. I want to tell the torture and violation for bribes in brief as following:-
MY STORY IN BRIEF
- 9/2002: Established food trading company. Business is alright.
- 2003: Open wider to trading more products. My company opened an account at Vietcombank to make a payment for oversea partners. Vietcombank is possessed of “Common Properties” Government in Vietnam. For that, under-table money for them is certain and non-stop at this level. By “tricks of requesting under-table money”, staffs of Vietcombank requested more under-table money. I also gave money to them but they did not stop at this. What they want are my good-selling products and making profitable for my company. They wanted to eat “all”: money, business and brain data later. After, they purposely harassed my girlfriend in trouble for requesting more money. My girlfriend and I argued together for that. And my girlfriend said “Vietnam country is that: harassing for bribes, pestering for bribes. And do not like them”. She broke-up with me for that harassing action. I was shocked. I was extremely up-set and told the truth to Tuoi Tre newspaper and Thanh Nien newspaper via internet but no any sound responded from them. In disorder status, I did not care that newspapers are from “Common Properties” Party. After I knew that newspapers made a cover of tricking Vietnamese.
- In the middle of 2003, I was received many notifies of killing by under-cover faces to rob my business. My brain was read by them at that time. I was monitored by under-cover faces or organized gang stalking of Vietcombank.
- In 2004 to 2009, Vietcombank and their devil hands continuously warned to kill me, brutally torture and sometimes enforced to leave Vietnam. They knew everything about me such as mind, facts in past, memory, plan to do as study abroad, feelings, everything including control my behavior, moto and what to say. Vietcombank’s devil hands are many people of “Common Properties” Public’s Securities. Weapons they used are Satellite Mind Control weapon and Satellite Microwave weapon. These weapon used for warfare. They used satellite microwave weapon to shoot my brain till to be crazy and closing death. They, “Common Properties” Vietcombank and Public’s Securities, are bloodthirsty and brutal devils. They are criminals against to humanity.
Strait Times Singapore: <http://www.straitstimes.com/vgn-ext-templating/v/index.jsp?vgnextoid=fa83...> Here’s a tip: Things in Vietnam work if the price is right
Comment of a Vietnamese in oversea:
As a Vietnamese living overseas, I feel ashamed of the corruption in Vietnam. I do hope Singaporeans who come to do business in Vietnam will set up good examples for local government official and people there. I feel much more ashamed by saying so when Vietnam has to need outside people to help them clean themselves… “What makes the situation worse is that corruption in Vietnam is not discussed openly because of tight state censorship”. Vietnam Communist Government disgraces their people!
Posted by: Danchimviet07 at Mon Sep 17 10:02:55 SGT 2007
The Japan Times: <http://search.japantimes.co.jp/cgi-bin/nn20080806a7.html> Four bribes to Vietnam official tied to PCI exec
According to Public Opinion, people fingered bribes in ODA are “Common Properties” Government Chairman Nguyen Minh Triet, “Common Properties” Secretary Le Thanh Hai of their HCMC, “Common Properties” Huynh Ngoc Sy, “Common Properties” Le Qua, Son-in-law of Secretary “Common Properties” Party Nong Duc Manh.
The Financial Times: <http://www.ft.com/cms/s/0/57d45a62-3a84-11de-8a2d-00144feabdc0.html> Gifts of Vietnamese bauxite to china valued billions U.S. dollars
Take Nguyen Tan Dung, Vietnam’s prime minister. He recently spent a week touring China, having, like Mr Sarkozy, travelled for the privilege of a hearing. He brought with him gifts of Vietnamese bauxite, the main raw material for aluminium, humbly beseeching China for investments of up to $15bn in what are the world’s third largest reserves of the ore.
TORTURE AND VIOLATION IN BRIEF
- Weapons : Satellite Mind Control, Satellite Behavior Control, Satellite Brains Communication Network, Satellite Microwave Weapon, Satellite Laser weapon and unknown Weapon. These weapons are also called Directed Energy and Neurological Weapon.
- Methods :
a. After reading my brain, they used the persons who have similar body parts or faces to terrorize my mind, my mental sense. Slit my relationship and isolate me alone from society community.
b. Trapping plan. Then using above weapons to control and affect my mind and behavior. Making decisions in mind for me while I do not know.
c. When going out and working, they used the weapons (including V2K: voice to skull) to project into my mind for threatening sound and words such as "go away! shit!". Project many strange pictures in mind. Enforce to do next action when looking or seeing a action, otherwise bad-hearted faces appeared and threatened before. And now perps used above weapons. Perps used brains communication network to control many persons to act following their goals whereas controlled persons did not know about this. Perps did that for suppressing and torturing victims.
d. They torture in mind and do not allow to thinking. When thinking about something, they immediately torture to make a threatening sense.
e. They projected and shoot microwave (microwave weapon used in military) to my brain.
f. They used other unknown weapons to dis-appear my tongue (to make sense about why report to newspapers for the undertable-money of Vietcombank's staff) and bend round my body. They sucked out the water in my body by a unknown weapon. They sliced/incised my inside-body and sinews with brutal pain but no remaining trace.
g. Enforce to be a criminal such as selling and carrying heroin, gypsy broker for them (READ MORE ON MY BLOG).
h. Language erasing: "goodnight" to be come "good and night words" or "look night" or "god light" or something like that. Ear erasing: the same with language erasing. The sound is made by different frequencies rate. Sight erasing: when seeing anything, they threaten and project microwave and project sounds no through ears to brain for making my mind to be crazy. All doing are to make "blind" of seeing, thinking, hearing and understanding.
i. Sex violation: project sex scenes in mind and sex talking. Then enforced to fuck a gypsy but I denied. Prevented me to marry and have a child. Perps acted as criminals of killing inheritable-blooding.
j. Private: watch all private things such as toilet, bathing, reproduction organ (penis, head of penis).
k. Torture and simulate situations about business, religious and politics such as enforcing and threatening implemented by above weapons. Perps attempted to use copied motos of U.S (animations, styles of emotion and voices). politicians and well-knowing people such as Condoleezza Rice, George W. Bush, John McCain, Barrack Obama, Bill Gates and other in Defense to libel the imagines during torture and suppression. Perps injected terrorist data to my brain and made bold-thought to terrorize U.S. Attempting to enforce me to abroad after period of torture. (see daily recording <http://twitter.com/khanhpham65> http://twitter.com/khanhpham65 or <http://www.mediafire.com/?jdr5ggm2m1f> download).
l. Brutal discrimination such as all businesses, women, places and etc are reserved for their wing and favorite races because I was born in middle of Vietnam and for reported action to newspapers referring to the undertable-money/bribes/corruption of Vietcombank's staffs.
m. All my feelings, seeings and dreaming are catch by them under threatening by above weapons.
n. One of brain erasing method is when I think example: "Today I am very tired", they project a person named "Mr. Tiree" to appear in brain. And they repeat this action in long period of time.
o. They torture me 24x7.
p. They usually rouse me to do a crazy action or illegal action.
q. After each torture day, they erased my brain.
r. Their actions are likely Red Khmer criminals. In-humanity, Cruel Actions and Crimes against humanity.
s. Enforce and threaten me to go out of my country. I had to go out of Vietnam. I went to Kulalumpur (Malaysia) and I was brutally tortured in a virtual prison. Perps said I am a prisoner of C.I.A. I seldom go out of home and I was jailed in home.
- Injuries: Any pain in body will take a trip to the brain. The brain is exactly a place to contain all pains that a person feel about. I could not stand their brutal torture. Many times I thought about the death and really want to die. Injured brain and blindness. These tortures could make me to be cancer brain sickness. "Common Properties" Vietcombank and Public's Securities are inhumanity and criminals against human.
- Wishes: In future, any organization brings Vietcombank wing's devils to ICC (International Criminal Court) is a hope for Vietnam Human Being. Leading many brutal-torture years: Nguyen Phuoc Thanh – Vietcombank, Secretary “Common Properties” Le Thanh Hai, “Common Properties” Minister of Public’s Securities Le Hong Anh, Lead of "Common Properties" Securities Department in their Hcmc Nguyen Chi Thanh and others involved (Minister of Defense “Common Properties” Phung Quanh Thanh, Malaysia government and Chairman of Vietnam government “Common Properties” Nguyen Minh Triet).
Devils of “Common Properties” Vietcombank and Public’s Securities used weapons in warfare (as above) for brutally suppressing and torturing in Vietnam business. After these devils have finished torture, they brain-washed and brain-erased for forgot and no problems as they said. I daily wrote some facts that I could remember. They followed the slogan “eat all” (bribes, robbing business, eat brain: brain-erasing to set-up their data into my brain). They enforced “step by step” me to the death in life by trapping of controlling brain from satellite mind control weapon. And they connected with Malaysia Government to brutally torture inhumanity in Kula Lumpur. I was in prison in Malaysia established by “Common Properties” Vietcombank and Public’s Securities. During brutally torture, they called this is C.I.A prison and some of them came from Washington D.C. I am only a business owner in a trading company and surely not involved to any U.S policies and not came to U.S yet. After escaped and backed in Vietnam, I was daily tortured 24 hours a day and 7 days a week by behavior control & moving/motor control of satellite mind control weapon and terrorized by satellite neurological weapon. Killing victim to be death all when they set-up/ inject other brain data to my brain. And I will never be me and they removed my family love out me. They could boost up the brain and when they release I unlike a human with suspend thinking. Daily I was stood by dirty words, slandering & reviling from them and enforced to leave Vietnam for releasing the business on hand to them and their “che^ch or ta`u”, chinese who were asylum seekers in Vietnam in past. Night and day, they set-up/ injected to make “bold-thought” for affirming that Saigon is their “che^ch”. “When their sons went abroad and called ‘what relative-blooding oversea Vietnamese is!’ without ashamed. Enforced to leave Vietnam and after that said ‘what relative-blooding Vietnamese!’”. So why object Exclusive “Common Properties” Vietnam Party while they robbed and brutally suppressed Vietnamese in my country.
Please read my full story and more information in my blog (including videos and frequencies recorded): <http://wordpressblog.dakha.com/> http://wordpressblog.dakha.com.
It will be greatly appreciated for your reply on above.
Best regards,
Khanh Dac Pham
Director
Dakha Co., Ltd
Tel: (848) 38539662 New Fax: +1 (815) 366 8071 / +1 (206) 203 4719
Mobile: 84 (0) 909905651
Fax: (848) 38539673 (just death) / just added new fax: 44 (0) 151 672 0428 (just be deactivated)
Email: <mailto:khanh@dakha.com> khanh(a)dakha.com; <mailto:khanh.pham@dakha.com> khanh.pham(a)dakha.com; <mailto:phamdackhanh@gmail.com> phamdackhanh(a)gmail.com
Add1: 48 Binh Tay, P.1, Dist 6, Saigon, Vietnam.
Add2: 36 Pham Dinh Ho, P.2, Dist 6, Saigon, Vietnam.
Old add: 75 Road No 24, Ward 1, Dist 6, Saigon, Vietnam.
Blog: <blocked::http://wordpressblog.dakha.com> http://wordpressblog.dakha.com
Yahoo Id & MSN: khanhpham65
Videos: <http://www.youtube.com/khanhpham65> http://www.youtube.com/khanhpham65
Internet: ADSL is death. And I have changed to a prison adsl provider EVN with many nearby IPs attacking and hacking to my computer. The former general director of this provider was arrested because of bribing and bumming.
PLEASE KINDLY SHARE WITH ALL OF CONGRESS
15 years
enabling more syntax-checks
by Jim Meyering
The first c-set cleans up the list of excluded syntax-checks.
The second enables the sc_avoid_ctype_macros test and changes
each use of a ctype macro like isspace to c_isspace.
This makes it so such tests (often parsing-related) is locale-independent.
Otherwise, in some odd corner cases (combination of non-C locale
and perverted inputs), I suspect that libguestfs tools would mistakenly
accept surprising inputs.
>From 0ca36888c6975ffa7e03df11bf8ded42156939c7 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Thu, 24 Sep 2009 09:34:53 +0200
Subject: [PATCH libguestfs 1/2] maint: prune dead wood from list of skipped syntax-check rules
* cfg.mk (local-checks-to-skip): Remove now-passing and
no-longer-relevant rule names.
---
cfg.mk | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
diff --git a/cfg.mk b/cfg.mk
index 1d02b24..09a3231 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -27,46 +27,29 @@ url_dir_list = \
# Tests not to run as part of "make distcheck".
local-checks-to-skip = \
sc_po_check \
- changelog-check \
- check-AUTHORS \
- makefile-check \
- makefile_path_separator_check \
- patch-check \
sc_GPL_version \
- sc_always_defined_macros \
- sc_cast_of_alloca_return_value \
- sc_dd_max_sym_length \
sc_error_exit_success \
sc_file_system \
- sc_immutable_NEWS \
sc_makefile_path_separator_check \
sc_obsolete_symbols \
- sc_prohibit_S_IS_definition \
sc_prohibit_atoi_atof \
- sc_prohibit_jm_in_m4 \
sc_prohibit_quote_without_use \
sc_prohibit_quotearg_without_use \
sc_prohibit_stat_st_blocks \
sc_prohibit_strcmp_and_strncmp \
sc_prohibit_strcmp \
- sc_root_tests \
sc_space_tab \
- sc_sun_os_names \
- sc_system_h_headers \
- sc_tight_scope \
sc_two_space_separator_in_usage \
sc_error_message_uppercase \
sc_program_name \
- sc_require_test_exit_idiom \
- sc_makefile_check \
$(disable_temporarily) \
sc_useless_cpp_parens
disable_temporarily = \
+ sc_makefile_check \
sc_unmarked_diagnostics \
sc_prohibit_ctype_h \
sc_prohibit_asprintf \
- sc_m4_quote_check \
sc_avoid_ctype_macros \
sc_avoid_write
--
1.6.5.rc2.177.ga9dd6
>From 6a14f1c2502f58ff7bed8cb451f95a83f5ee920a Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)redhat.com>
Date: Thu, 24 Sep 2009 10:59:01 +0200
Subject: [PATCH libguestfs 2/2] avoid use of all ctype macros
* cfg.mk (disable_temporarily): Don't disable sc_avoid_ctype_macros.
* fish/tilde.c: Remove unnecessary inclusion of ctype.h.
* bootstrap: Add gnulib's c-ctype module to the list.
* daemon/m4/gnulib-cache.m4: Likewise.
* daemon/ext2.c: Include "c-ctype.h", not <ctype.h>.
Use c_isspace, etc, rather than isspace.
* daemon/guestfsd.c: Likewise.
* daemon/lvm.c: Likewise.
* daemon/proto.c: Likewise.
* fish/fish.c: Likewise.
* fish/tilde.c: Likewise.
* src/generator.ml: Likewise.
* src/guestfs.c: Likewise.
* examples/to-xml.c: Likewise.
* examples/Makefile.am (to_xml_CPPFLAGS): Add -I$(top_srcdir)/gnulib/lib
so inclusion of "c-ctype.h" works.
(to_xml_CPPFLAGS): Rename from to_xml_CFLAGS.
---
bootstrap | 1 +
cfg.mk | 1 -
daemon/ext2.c | 8 ++++----
daemon/guestfsd.c | 4 ++--
daemon/lvm.c | 6 +++---
daemon/m4/gnulib-cache.m4 | 3 ++-
daemon/proto.c | 4 ++--
examples/Makefile.am | 4 +++-
examples/to-xml.c | 4 ++--
fish/fish.c | 6 +++---
fish/tilde.c | 1 -
src/generator.ml | 10 +++++-----
src/guestfs.c | 4 ++--
13 files changed, 29 insertions(+), 27 deletions(-)
diff --git a/bootstrap b/bootstrap
index 1e32517..c92d1e1 100755
--- a/bootstrap
+++ b/bootstrap
@@ -58,6 +58,7 @@ gnulib_tool=$GNULIB_SRCDIR/gnulib-tool
modules='
arpa_inet
+c-ctype
closeout
gitlog-to-changelog
gnu-make
diff --git a/cfg.mk b/cfg.mk
index 09a3231..134725a 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -50,7 +50,6 @@ disable_temporarily = \
sc_unmarked_diagnostics \
sc_prohibit_ctype_h \
sc_prohibit_asprintf \
- sc_avoid_ctype_macros \
sc_avoid_write
# Avoid uses of write(2). Either switch to streams (fwrite), or use
diff --git a/daemon/ext2.c b/daemon/ext2.c
index a26891b..0021a06 100644
--- a/daemon/ext2.c
+++ b/daemon/ext2.c
@@ -21,10 +21,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <ctype.h>
#include "../src/guestfs_protocol.h"
#include "daemon.h"
+#include "c-ctype.h"
#include "actions.h"
char **
@@ -72,7 +72,7 @@ do_tune2fs_l (const char *device)
if (colon) {
*colon = '\0';
- do { colon++; } while (*colon && isspace (*colon));
+ do { colon++; } while (*colon && c_isspace (*colon));
if (add_string (&ret, &size, &alloc, p) == -1) {
free (out);
@@ -202,7 +202,7 @@ do_get_e2uuid (const char *device)
}
p += 17;
- while (*p && isspace (*p))
+ while (*p && c_isspace (*p))
p++;
if (!*p) {
reply_with_error ("malformed Filesystem UUID in the output of tune2fs -l");
@@ -212,7 +212,7 @@ do_get_e2uuid (const char *device)
/* Now 'p' hopefully points to the start of the UUID. */
q = p;
- while (*q && (isxdigit (*q) || *q == '-'))
+ while (*q && (c_isxdigit (*q) || *q == '-'))
q++;
if (!*q) {
reply_with_error ("malformed Filesystem UUID in the output of tune2fs -l");
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
index e3b8883..8c39c39 100644
--- a/daemon/guestfsd.c
+++ b/daemon/guestfsd.c
@@ -34,10 +34,10 @@
#include <sys/wait.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <ctype.h>
#include <signal.h>
#include <printf.h>
+#include "c-ctype.h"
#include "daemon.h"
static char *read_cmdline (void);
@@ -835,7 +835,7 @@ print_shell_quote (FILE *stream,
const struct printf_info *info ATTRIBUTE_UNUSED,
const void *const *args)
{
-#define SAFE(c) (isalnum((c)) || \
+#define SAFE(c) (c_isalnum((c)) || \
(c) == '/' || (c) == '-' || (c) == '_' || (c) == '.')
int i, len;
const char *str = *((const char **) (args[0]));
diff --git a/daemon/lvm.c b/daemon/lvm.c
index 742b40b..9865bb2 100644
--- a/daemon/lvm.c
+++ b/daemon/lvm.c
@@ -22,9 +22,9 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <ctype.h>
#include "daemon.h"
+#include "c-ctype.h"
#include "actions.h"
/* LVM actions. Keep an eye on liblvm, although at the time
@@ -49,12 +49,12 @@ convert_lvm_output (char *out, const char *prefix)
pend++;
}
- while (*p && isspace (*p)) /* Skip any leading whitespace. */
+ while (*p && c_isspace (*p)) /* Skip any leading whitespace. */
p++;
/* Sigh, skip trailing whitespace too. "pvs", I'm looking at you. */
len = strlen (p)-1;
- while (*p && isspace (p[len]))
+ while (*p && c_isspace (p[len]))
p[len--] = '\0';
if (!*p) { /* Empty line? Skip it. */
diff --git a/daemon/m4/gnulib-cache.m4 b/daemon/m4/gnulib-cache.m4
index bd6cf61..df69113 100644
--- a/daemon/m4/gnulib-cache.m4
+++ b/daemon/m4/gnulib-cache.m4
@@ -15,11 +15,12 @@
# Specification in the form of a command-line invocation:
-# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --with-tests --no-libtool --macro-prefix=gl hash ignore-value manywarnings warnings
+# gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --with-tests --no-libtool --macro-prefix=gl c-ctype hash ignore-value manywarnings warnings
# Specification in the form of a few gnulib-tool.m4 macro invocations:
gl_LOCAL_DIR([])
gl_MODULES([
+ c-ctype
hash
ignore-value
manywarnings
diff --git a/daemon/proto.c b/daemon/proto.c
index c22bbee..a0d3736 100644
--- a/daemon/proto.c
+++ b/daemon/proto.c
@@ -24,11 +24,11 @@
#include <string.h>
#include <unistd.h>
#include <errno.h>
-#include <ctype.h>
#include <sys/param.h> /* defines MIN */
#include <rpc/types.h>
#include <rpc/xdr.h>
+#include "c-ctype.h"
#include "ignore-value.h"
#include "daemon.h"
@@ -96,7 +96,7 @@ main_loop (int _sock)
printf (" ");
printf ("|");
for (j = i; j < MIN (i+16, len); ++j)
- if (isprint (buf[j]))
+ if (c_isprint (buf[j]))
printf ("%c", buf[j]);
else
printf (".");
diff --git a/examples/Makefile.am b/examples/Makefile.am
index fb3d656..adbb934 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -7,7 +7,9 @@ hello_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src -Wall
hello_LDADD = $(top_builddir)/src/libguestfs.la
to_xml_SOURCES = to-xml.c
-to_xml_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src -Wall
+to_xml_CPPFLAGS = \
+ -I$(top_srcdir)/gnulib/lib \
+ -I$(top_srcdir)/src -I$(top_builddir)/src -Wall
to_xml_LDADD = $(top_builddir)/src/libguestfs.la
CLEANFILES = $(noinst_PROGRAMS)
diff --git a/examples/to-xml.c b/examples/to-xml.c
index 6d0a1df..e9ea063 100644
--- a/examples/to-xml.c
+++ b/examples/to-xml.c
@@ -16,9 +16,9 @@
#include <stdint.h>
#include <inttypes.h>
#include <unistd.h>
-#include <ctype.h>
#include <guestfs.h>
+#include "c-ctype.h"
/* Note that if any API call fails, we can just exit. The
* standard error handler will have printed the error message
@@ -149,7 +149,7 @@ display_partitions (guestfs_h *g, const char *dev)
* That's a limitation of sorts of the Linux kernel. (Actually,
* we could do this if we add the kpartx program to libguestfs).
*/
- if (strncmp (dev, "/dev/sd", 7) != 0 || isdigit (dev[strlen(dev)-1])) {
+ if (strncmp (dev, "/dev/sd", 7) != 0 || c_isdigit (dev[strlen(dev)-1])) {
printf ("<vm-image dev=\"%s\"/>\n", dev);
return;
}
diff --git a/fish/fish.c b/fish/fish.c
index f8c0483..3300536 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -26,7 +26,6 @@
#include <getopt.h>
#include <signal.h>
#include <assert.h>
-#include <ctype.h>
#include <sys/types.h>
#include <sys/wait.h>
@@ -38,6 +37,7 @@
#include <guestfs.h>
#include "fish.h"
+#include "c-ctype.h"
#include "closeout.h"
#include "progname.h"
@@ -579,7 +579,7 @@ script (int prompt)
/* Skip any initial whitespace before the command. */
again:
- while (*buf && isspace (*buf))
+ while (*buf && c_isspace (*buf))
buf++;
if (!*buf) continue;
@@ -1127,7 +1127,7 @@ parse_string_list (const char *str)
* as separate fragments because we can't just copy it: we have to remove
* the \.
*/
- while (*p && (!isblank (*p) || in_quote)) {
+ while (*p && (!c_isblank (*p) || in_quote)) {
const char *end = p;
/* Check if the fragment starts with a quote */
diff --git a/fish/tilde.c b/fish/tilde.c
index 4085417..1c52d3e 100644
--- a/fish/tilde.c
+++ b/fish/tilde.c
@@ -22,7 +22,6 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <ctype.h>
#include <assert.h>
#include <pwd.h>
#include <sys/types.h>
diff --git a/src/generator.ml b/src/generator.ml
index 6f77e4b..4f03c06 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -4956,11 +4956,11 @@ and generate_daemon_actions () =
pr "#include <stdlib.h>\n";
pr "#include <string.h>\n";
pr "#include <inttypes.h>\n";
- pr "#include <ctype.h>\n";
pr "#include <rpc/types.h>\n";
pr "#include <rpc/xdr.h>\n";
pr "\n";
pr "#include \"daemon.h\"\n";
+ pr "#include \"c-ctype.h\"\n";
pr "#include \"../src/guestfs_protocol.h\"\n";
pr "#include \"actions.h\"\n";
pr "\n";
@@ -5186,7 +5186,7 @@ and generate_daemon_actions () =
pr " fprintf (stderr, \"%%s: failed: passed a NULL string\\n\", __func__);\n";
pr " return -1;\n";
pr " }\n";
- pr " if (!*str || isspace (*str)) {\n";
+ pr " if (!*str || c_isspace (*str)) {\n";
pr " fprintf (stderr, \"%%s: failed: passed a empty string or one beginning with whitespace\\n\", __func__);\n";
pr " return -1;\n";
pr " }\n";
@@ -5288,7 +5288,7 @@ and generate_daemon_actions () =
pr " pend++;\n";
pr " }\n";
pr "\n";
- pr " while (*p && isspace (*p)) /* Skip any leading whitespace. */\n";
+ pr " while (*p && c_isspace (*p)) /* Skip any leading whitespace. */\n";
pr " p++;\n";
pr "\n";
pr " if (!*p) { /* Empty line? Skip it. */\n";
@@ -6073,9 +6073,9 @@ and generate_fish_cmds () =
pr "#include <stdlib.h>\n";
pr "#include <string.h>\n";
pr "#include <inttypes.h>\n";
- pr "#include <ctype.h>\n";
pr "\n";
pr "#include <guestfs.h>\n";
+ pr "#include \"c-ctype.h\"\n";
pr "#include \"fish.h\"\n";
pr "\n";
@@ -6193,7 +6193,7 @@ and generate_fish_cmds () =
| name, FBuffer ->
pr " printf (\"%%s%s: \", indent);\n" name;
pr " for (i = 0; i < %s->%s_len; ++i)\n" typ name;
- pr " if (isprint (%s->%s[i]))\n" typ name;
+ pr " if (c_isprint (%s->%s[i]))\n" typ name;
pr " printf (\"%%s%%c\", indent, %s->%s[i]);\n" typ name;
pr " else\n";
pr " printf (\"%%s\\\\x%%02x\", indent, %s->%s[i]);\n" typ name;
diff --git a/src/guestfs.c b/src/guestfs.c
index 03089ea..e49f57a 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -25,7 +25,6 @@
#include <stdarg.h>
#include <stddef.h>
#include <unistd.h>
-#include <ctype.h>
#include <string.h>
#include <fcntl.h>
#include <time.h>
@@ -62,6 +61,7 @@
#include "guestfs.h"
#include "guestfs-internal-actions.h"
#include "guestfs_protocol.h"
+#include "c-ctype.h"
#include "ignore-value.h"
#ifdef HAVE_GETTEXT
@@ -2136,7 +2136,7 @@ recv_from_daemon (guestfs_h *g, uint32_t *size_rtn, void **buf_rtn)
printf (" ");
printf ("|");
for (j = i; j < MIN (i+16, nr); ++j)
- if (isprint ((*(char **)buf_rtn)[j]))
+ if (c_isprint ((*(char **)buf_rtn)[j]))
printf ("%c", (*(char **)buf_rtn)[j]);
else
printf (".");
--
1.6.5.rc2.177.ga9dd6
15 years
[PATCH libguestfs] maint: use spaces, not TABs for indentation
by Jim Meyering
>From 1da1502b33d50bc0614a20bc217876fcb8f05d39 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering(a)vv.meyering.net.meyering.net>
Date: Thu, 24 Sep 2009 09:24:55 +0200
Subject: [PATCH libguestfs] maint: use spaces, not TABs for indentation
"make syntax-check" was failing. This fixes it.
* HACKING: Indent with spaces, not TABs.
* configure.ac: Likewise.
* rescue/virt-rescue: Likewise.
* src/generator.ml: Likewise.
---
HACKING | 4 ++--
configure.ac | 6 +++---
rescue/virt-rescue | 2 +-
src/generator.ml | 48 ++++++++++++++++++++++++------------------------
4 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/HACKING b/HACKING
index 19c2329..bdb8287 100644
--- a/HACKING
+++ b/HACKING
@@ -84,7 +84,7 @@ df/
The virt-df tool.
edit/
- The virt-edit tool.
+ The virt-edit tool.
examples/
The examples.
@@ -126,7 +126,7 @@ regressions/
Regression tests.
rescue/
- The virt-rescue tool.
+ The virt-rescue tool.
ruby/
Ruby bindings.
diff --git a/configure.ac b/configure.ac
index 5a0bb47..403a998 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,9 +167,9 @@ if test "x$vmchannel_test" != "xno"; then
vmchannel_guestfwd=guestfwd
else
AC_MSG_RESULT([no])
- # Note that this test must be conditional on the previous
- # test failing. This is because recent qemu will throw
- # up an SDL window and hang if we try to run this test.
+ # Note that this test must be conditional on the previous
+ # test failing. This is because recent qemu will throw
+ # up an SDL window and hang if we try to run this test.
AC_MSG_CHECKING([for "-net channel" (old guestfwd) support in $QEMU])
vmchannelout=`$QEMU -net channel /dev/zero 2>&1 ||:`
echo "vmchannel test command output: $vmchannelout" >&AS_MESSAGE_LOG_FD
diff --git a/rescue/virt-rescue b/rescue/virt-rescue
index a44940d..9ad2fa4 100755
--- a/rescue/virt-rescue
+++ b/rescue/virt-rescue
@@ -111,7 +111,7 @@ Open the image read-only.
GetOptions ("help|?" => \$help,
"version" => \$version,
"connect|c=s" => \$uri,
- "ro|r" => \$readonly,
+ "ro|r" => \$readonly,
) or pod2usage (2);
pod2usage (1) if $help;
if ($version) {
diff --git a/src/generator.ml b/src/generator.ml
index 1dd8b20..6f77e4b 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -4674,8 +4674,8 @@ check_state (guestfs_h *g, const char *caller)
let needs_i =
List.exists (function
- | StringList _ | DeviceList _ -> true
- | _ -> false) (snd style) in
+ | StringList _ | DeviceList _ -> true
+ | _ -> false) (snd style) in
if needs_i then (
pr " int i;\n";
pr "\n"
@@ -4690,24 +4690,24 @@ check_state (guestfs_h *g, const char *caller)
| Dev_or_Path n
| FileIn n
| FileOut n ->
- (* guestfish doesn't support string escaping, so neither do we *)
- pr " printf (\" \\\"%%s\\\"\", %s);\n" n
+ (* guestfish doesn't support string escaping, so neither do we *)
+ pr " printf (\" \\\"%%s\\\"\", %s);\n" n
| OptString n -> (* string option *)
- pr " if (%s) printf (\" \\\"%%s\\\"\", %s);\n" n n;
- pr " else printf (\" null\");\n"
+ pr " if (%s) printf (\" \\\"%%s\\\"\", %s);\n" n n;
+ pr " else printf (\" null\");\n"
| StringList n
| DeviceList n -> (* string list *)
- pr " putchar (' ');\n";
- pr " putchar ('\"');\n";
- pr " for (i = 0; %s[i]; ++i) {\n" n;
- pr " if (i > 0) putchar (' ');\n";
- pr " fputs (%s[i], stdout);\n" n;
- pr " }\n";
- pr " putchar ('\"');\n";
+ pr " putchar (' ');\n";
+ pr " putchar ('\"');\n";
+ pr " for (i = 0; %s[i]; ++i) {\n" n;
+ pr " if (i > 0) putchar (' ');\n";
+ pr " fputs (%s[i], stdout);\n" n;
+ pr " }\n";
+ pr " putchar ('\"');\n";
| Bool n -> (* boolean *)
- pr " fputs (%s ? \" true\" : \" false\", stdout);\n" n
+ pr " fputs (%s ? \" true\" : \" false\", stdout);\n" n
| Int n -> (* int *)
- pr " printf (\" %%d\", %s);\n" n
+ pr " printf (\" %%d\", %s);\n" n
) (snd style);
pr " putchar ('\\n');\n";
pr " }\n";
@@ -4759,16 +4759,16 @@ check_state (guestfs_h *g, const char *caller)
pr " guestfs_message_header hdr;\n";
pr " guestfs_message_error err;\n";
let has_ret =
- match fst style with
- | RErr -> false
- | RConstString _ | RConstOptString _ ->
+ match fst style with
+ | RErr -> false
+ | RConstString _ | RConstOptString _ ->
failwithf "RConstString|RConstOptString cannot be used by daemon functions"
- | RInt _ | RInt64 _
- | RBool _ | RString _ | RStringList _
- | RStruct _ | RStructList _
- | RHashtable _ | RBufferOut _ ->
+ | RInt _ | RInt64 _
+ | RBool _ | RString _ | RStringList _
+ | RStruct _ | RStructList _
+ | RHashtable _ | RBufferOut _ ->
pr " struct %s_ret ret;\n" name;
- true in
+ true in
pr " int serial;\n";
pr " int r;\n";
@@ -4835,7 +4835,7 @@ check_state (guestfs_h *g, const char *caller)
pr "\n";
pr " r = guestfs___recv (g, \"%s\", &hdr, &err,\n " shortname;
if not has_ret then
- pr "NULL, NULL"
+ pr "NULL, NULL"
else
pr "(xdrproc_t) xdr_guestfs_%s_ret, (char *) &ret" shortname;
pr ");\n";
--
1.6.5.rc2.177.ga9dd6
15 years
[PATCH 0/2] Add a 'virt-rescue' command
by Richard W.M. Jones
Inspired by something Glauber asked me about today, I made a very
simple pair of patches which add a 'virt-rescue' command to
libguestfs. This uses the appliance as a "rescue appliance", so
people can boot into a disk image and repair it in an unstructured,
interactive way. (Specifically, Glauber's question was how to run
fsck interactively - with this patch you could do that).
Example session:
$ virt-rescue --ro /dev/vg_trick/F11x64
Welcome to virt-rescue, the libguestfs rescue shell.
Note: The contents of / are the rescue appliance.
You have to mount the guest's partitions under /sysroot
before you will be able to examine them.
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
><rescue> mount /dev/vg_f11x64/lv_root /sysroot
EXT4-fs (dm-0): barriers enabled
kjournald2 starting: pid 269, dev dm-0:8, commit interval 5 seconds
EXT4-fs (dm-0): internal journal on dm-0:8
EXT4-fs (dm-0): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (dm-0): mounted filesystem with ordered data mode
><rescue> ls /sysroot/
bin dev home lib64 media opt root selinux sys usr
boot etc lib lost+found mnt proc sbin srv tmp var
><rescue> exit
I'd really like to know how to get rid of that bash error message.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 75 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
15 years