10 More Discussions You Might Find Interesting
1. Red Hat
Hi Experts,
I am using Cygwin and Xming server to bring back the display from Linux to a Windows machine.
I am following the below steps :-
1. Close down all X Servers
2. Run XMing – XLaunch
3. Select Multiple
4. Select Start no clients
5. Tick No Access Control box
6. Click Finish... (7 Replies)
Discussion started by: oopsalion
7 Replies
2. Shell Programming and Scripting
Hi All;
I m working on a script and came across an issue ,to explain it briefly here is the sample code
echo $HOSTNAME|while read IN; do var=`echo $IN|awk -F "-" '{print $2}'`; export var; echo $var; done
now I get the value of $var but when it is out of the while loop
it does not return... (3 Replies)
Discussion started by: maverick_here
3 Replies
3. Solaris
Hi,
can anyone tell me the difference between the below two examples:
Eg-1:
# name=bravo
# echo $bravo
what would be the o/p
Eg-2:
# name1=jhonny
# export name1
# echo $name1
what would be the o/p
If the o/p's of both examples are the same then what is the use of the cmd export... (3 Replies)
Discussion started by: rahul_11d
3 Replies
4. Shell Programming and Scripting
Can someone help me out to export awk output to excel file in different rows? Plzzzz its urgent...:( (4 Replies)
Discussion started by: goutam_igate
4 Replies
5. Solaris
I have a sun box i can connect to using exceed in broadcast or query mode.
I have been using passive mode to call up just a few apps, xcalc for example.
How do i get the solaris 9 user login screen using passive mode? is it dtlogin or something that im should run frmo the shell? (0 Replies)
Discussion started by: BG_JrAdmin
0 Replies
6. Windows & DOS: Issues & Discussions
Hey all,
I have teh job of exporting all the information for around 500 e-mail addresses from exchange into something like a excel sheet.
I was pretty quiet one afternoon last week (and bore) so I added them to my adddresses book then exported them to excel. But I now have a problem, it does... (0 Replies)
Discussion started by: woofie
0 Replies
7. Windows & DOS: Issues & Discussions
My friend's boss has asked me to help update a customer database. They have a limited amount of space and have asked if I can do this from my home computer.
She is working on a Unix system with a program called Accuterm. My understanding is that this program is a dedicated program for the... (0 Replies)
Discussion started by: clearchoice
0 Replies
8. UNIX for Dummies Questions & Answers
how do I export my display from my unix box to my pc
basically what is the syntax for export DISPLAY (2 Replies)
Discussion started by: csaunders
2 Replies
9. UNIX for Dummies Questions & Answers
Greetings All, I was wanting some info seeing i am a ms geek looking to go into UNIX if i want to query a UNIX box for info regarding printers, LPDs and such source how would i go about this !!!!
All comments that would point me in the right direction would be most useful.
Cheers (1 Reply)
Discussion started by: seekerO
1 Replies
10. UNIX for Advanced & Expert Users
How do I export a directory ?
I am trying to link the directory from another machine. (2 Replies)
Discussion started by: brv
2 Replies
Exporting Topologies to XML.(3) Hardware Locality (hwloc) Exporting Topologies to XML.(3)
NAME
Exporting Topologies to XML. -
Functions
int hwloc_topology_export_xml (hwloc_topology_t topology, const char *xmlpath)
int hwloc_topology_export_xmlbuffer (hwloc_topology_t topology, char **xmlbuffer, int *buflen)
void hwloc_free_xmlbuffer (hwloc_topology_t topology, char *xmlbuffer)
void hwloc_topology_set_userdata_export_callback (hwloc_topology_t topology, void(*export_cb)(void *reserved, hwloc_topology_t topology,
hwloc_obj_t obj))
int hwloc_export_obj_userdata (void *reserved, hwloc_topology_t topology, hwloc_obj_t obj, const char *name, const void *buffer, size_t
length)
int hwloc_export_obj_userdata_base64 (void *reserved, hwloc_topology_t topology, hwloc_obj_t obj, const char *name, const void *buffer,
size_t length)
void hwloc_topology_set_userdata_import_callback (hwloc_topology_t topology, void(*import_cb)(hwloc_topology_t topology, hwloc_obj_t obj,
const char *name, const void *buffer, size_t length))
Detailed Description
Function Documentation
int hwloc_export_obj_userdata (void *reserved, hwloc_topology_ttopology, hwloc_obj_tobj, const char *name, const void *buffer, size_tlength)
Export some object userdata to XML. This function may only be called from within the export() callback passed to
hwloc_topology_set_userdata_export_callback(). It may be invoked one of multiple times to export some userdata to XML. The buffer content
of length length is stored with optional name name.
When importing this XML file, the import() callback (if set) will be called exactly as many times as hwloc_export_obj_userdata() was called
during export(). It will receive the corresponding name, buffer and length arguments.
reserved, topology and obj must be the first three parameters that were given to the export callback.
Only printable characters may be exported to XML string attributes. If a non-printable character is passed in name or buffer, the function
returns -1 with errno set to EINVAL.
If exporting binary data, the application should first encode into printable characters only (or use hwloc_export_obj_userdata_base64()).
It should also take care of portability issues if the export may be reimported on a different architecture.
int hwloc_export_obj_userdata_base64 (void *reserved, hwloc_topology_ttopology, hwloc_obj_tobj, const char *name, const void *buffer,
size_tlength)
Encode and export some object userdata to XML. This function is similar to hwloc_export_obj_userdata() but it encodes the input buffer into
printable characters before exporting. On import, decoding is automatically performed before the data is given to the import() callback if
any.
This function may only be called from within the export() callback passed to hwloc_topology_set_userdata_export_callback().
The function does not take care of portability issues if the export may be reimported on a different architecture.
void hwloc_free_xmlbuffer (hwloc_topology_ttopology, char *xmlbuffer)
Free a buffer allocated by hwloc_topology_export_xmlbuffer()
int hwloc_topology_export_xml (hwloc_topology_ttopology, const char *xmlpath)
Export the topology into an XML file. This file may be loaded later through hwloc_topology_set_xml().
Returns:
-1 if a failure occured.
Note:
See also hwloc_topology_set_userdata_export_callback() for exporting application-specific userdata.
Only printable characters may be exported to XML string attributes. Any other character, especially any non-ASCII character, will be
silently dropped.
int hwloc_topology_export_xmlbuffer (hwloc_topology_ttopology, char **xmlbuffer, int *buflen)
Export the topology into a newly-allocated XML memory buffer. xmlbuffer is allocated by the callee and should be freed with
hwloc_free_xmlbuffer() later in the caller.
This memory buffer may be loaded later through hwloc_topology_set_xmlbuffer().
Returns:
-1 if a failure occured.
Note:
See also hwloc_topology_set_userdata_export_callback() for exporting application-specific userdata.
Only printable characters may be exported to XML string attributes. Any other character, especially any non-ASCII character, will be
silently dropped.
void hwloc_topology_set_userdata_export_callback (hwloc_topology_ttopology, void(*)(void *reserved, hwloc_topology_t topology, hwloc_obj_t
obj)export_cb)
Set the application-specific callback for exporting userdata. The object userdata pointer is not exported to XML by default because hwloc
does not know what it contains.
This function lets applications set export_cb to a callback function that converts this opaque userdata into an exportable string.
export_cb is invoked during XML export for each object whose userdata pointer is not NULL. The callback should use
hwloc_export_obj_userdata() or hwloc_export_obj_userdata_base64() to actually export something to XML (possibly multiple times per object).
export_cb may be set to NULL if userdata should not be exported to XML.
void hwloc_topology_set_userdata_import_callback (hwloc_topology_ttopology, void(*)(hwloc_topology_t topology, hwloc_obj_t obj, const char
*name, const void *buffer, size_t length)import_cb)
Set the application-specific callback for importing userdata. On XML import, userdata is ignored by default because hwloc does not know how
to store it in memory.
This function lets applications set import_cb to a callback function that will get the XML-stored userdata and store it in the object as
expected by the application.
import_cb is called during hwloc_topology_load() as many times as hwloc_export_obj_userdata() was called during export. The topology is not
entirely setup yet. Object attributes are ready to consult, but links between objects are not.
import_cb may be NULL if userdata should be ignored during import.
Note:
buffer contains length characters followed by a null byte ('