9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hey guys,
Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries.
However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies
2. Solaris
Am trying to install a account script in oracle 8i and I keep getting ORA-00001: unique constraint violated as the screen shot below shows so am wondering how do i fix this i have posted the full code that is the issue.
i hope some one can help me, thanks a lot
http://www.livve.com/sqlbug.jpg... (2 Replies)
Discussion started by: Wpgn
2 Replies
3. UNIX for Advanced & Expert Users
Hello there,
I hope that I am posting in the right section here, please advise if I posted wrong.
I currently try to change passwords in our Active Directory Envoirenment via LDAP on Linux since the users in question do not have access to a windows-machine and we want to keep it that way. ... (0 Replies)
Discussion started by: henryford
0 Replies
4. Shell Programming and Scripting
hi,
how to I do this?
i="4.000"
if ; then
echo "smaller"
fi
how do I convert the "4.000" to 4?
Thanks! (4 Replies)
Discussion started by: h0ujun
4 Replies
5. Shell Programming and Scripting
here in the below code just a space between 'Info' and '(' is showing that the patter doesnt match...
echo "CREATE TABLE Info (" | grep -i "CREATE TABLE Info (" | wc | awk -F' ' '{print $1}'
1
echo "CREATE TABLE Info (" | grep -i "CREATE TABLE Info (" | wc | awk -F' ' '{print $1}'
0
... (9 Replies)
Discussion started by: vivek d r
9 Replies
6. Shell Programming and Scripting
Hi I have 100 files in my directory.
Please help me how to do in Unix or any other scriptin lanuages.
I want to replace all occurances of "goutham" to goutham_ind ONLY if the file contains the word "goutham" with the word "engineer";
for eg----test1 is a file contains the following inf;
goutham... (6 Replies)
Discussion started by: nandugo1
6 Replies
7. Shell Programming and Scripting
Hi!
I got an strange trouble executing a stored procedures that goes inserting line by line on a table. I mus integrate it with perl for an specific task... the hole process is controlled by e Perl script that:
Load a text file calling sqlldr.
Call a stored procedure that process the... (2 Replies)
Discussion started by: jparra
2 Replies
8. UNIX for Dummies Questions & Answers
Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
Discussion started by: vishwamitra
1 Replies
9. Shell Programming and Scripting
Hi guys,
I have been making a simple script for looking for anagram solutions in a word list (a file of 22k or so words).
At the moment it funtions like so:
User enters an 8 character string (whatever letters you want to find anagrams of, or solve rather)
The script moves all the words... (2 Replies)
Discussion started by: Donthommo
2 Replies
Constraint destroy() Constraint destroy()
Name
Constraint destroy - Constraint class method for freeing resources associated with a child's constraint record.
Synopsis
typedef void (*XtWidgetProc)(Widget);
Widget w;
Inputs
w Specifies the widget being destroyed.
Description
The Constraint destroy() method is registered on the destroy field of the Constraint class part structure (which is not the same as the
destroy field of the Object or Core class part structure). It is called by XtDestroyWidget() when the child of a constraint widget is
destroyed, and should deallocate any memory or resources associated with the part of the constraint record of w that is owned by the class.
It should not deallocate the constraint record itself.
This method is similar to the Object destroy() method. The Constraint destroy() methods of a widget class and its superclasses are called
in subclass-to-superclass order, starting at the class of the parent of w, and ending at the Constraint class. Therefore, the Constraint
destroy() method should deallocate only memory and resources associated with the part of the constraint record specific to its class, and
not the memory or resources allocated by any of its superclasses.
The Constraint destroy() method is chained, and so cannot be inherited. If a constraint widget does not need to deallocate any memory or
resources associated with its constraint part structure, the destroy field in its Constraint class part record can be NULL.
See destroy(4) for more information about what should be freed and what should not. See XtDestroyWidget(1) for details on the widget and
object destruction process.
Example
The following procedure is the Constraint destroy() method of the Xaw Tree widget. Note that it uses a macro (defined below) to cast the
specified widget's constraint field appropriately, and calls XtParent() on the specified widget to obtain the Tree widget itself.
This procedure is a somewhat unusual example, because it does not directly call XtFree(), XtReleaseGC(), or similar functions on fields of
the constraint record. The constraint records of the Tree class are linked in a tree structure, and this procedure is used to remove a
node from that tree. This might have been more appropriate in the delete_child() method instead.
static void ConstraintDestroy (w)
Widget w;
{
TreeConstraints tc = TREE_CONSTRAINT(w);
TreeWidget tw = (TreeWidget) XtParent(w);
int i;
/*
* Remove the widget from its parent's sub-nodes list and
* make all this widget's sub-nodes sub-nodes of the parent.
*/
if (tw->tree.tree_root == w) {
if (tc->tree.n_children > 0)
tw->tree.tree_root = tc->tree.children[0];
else
tw->tree.tree_root = NULL;
}
delete_node (tc->tree.parent, (Widget) w);
for (i = 0; i< tc->tree.n_children; i++)
insert_node (tc->tree.parent, tc->tree.children[i]);
layout_tree ((TreeWidget) (w->core.parent), FALSE);
}
The useful TREE_CONSTRAINTS macro is defined as follows:
#define TREE_CONSTRAINT(w) ((TreeConstraints)((w)->core.constraints))
See Also
XtDestroyWidget(1),
Constraint(3), Core(3).
Xt - Intrinsics Methods Constraint destroy()