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 initialize() Constraint initialize()
Name
Constraint initialize - Constraint class method to initialize a child object or widget's constraint record.
Synopsis
typedef void (*XtInitProc)(Widget, Widget, ArgList, Cardinal *);
Widget request;
Widget init;
ArgList args;
Cardinal *num_args;
Inputs
request Specifies the newly created child widget or object instance with its constraint record resource values set as requested by the
argument list, the resource database, and the constraint defaults.
init Specifies the same widget or object with its constraint record fields as modified by any superclass Constraint initialize() meth-
ods.
args Specifies the argument list that was passed to XtCreateWidget().
num_args Specifies the number of entries in the argument list.
Description
The Constraint initialize() method is registered on the initialize field of the Constraint class part structure, and is called by XtCre-
ateWidget() when a child of the constraint widget is created. The Constraint initialize() method performs the same sort of initializations
on the constraint record of a widget that the normal (Object, RectObj, or Core) initialize() method performs on the widget instance struc-
ture.
The request and init arguments specify the child widget that is being created. The constraints field of the request widget points to a
copy of the constraint record as it was after all of the constraint resources were initialized from the argument list, the resource data-
base, or the resource list defaults. The constraints field of the init widget points to the actual constraints record of the widget, and
has been further initialized by the Constraint initialize() method of any Constraint superclasses of the parent widget. All modifications
should be made to the init constraints record; the request argument exists so that the widget class can determine which field of the con-
straints record have been modified by superclass Constraint initialize() methods.
The Constraint initialize() method is chained in superclass-to-subclass order, and cannot be inherited. If nothing in the constraint
structure needs initialization, the Constraint class part initialize field should be NULL.
The args and num_args arguments were added to this method in Release 4.
See initialize(4) for an explanation of the things that an initialize procedure should do. See XtCreateWidget(1) for full details of the
widget creation process.
Example
The following procedure is the Constraint initialize() method, slightly modified, of the Athena Form widget class. Note how it obtains the
constraint record and the parent form widget from the supplied child widget. Note also that it provides "dynamic defaults" for two of its
constraint resources: if dx or dy is equal to some default value (i.e., if it was not explicitly specified), then it will be replaced by
the value of the XtNdefaultSpacing resource from the Form widget itself.
Note that this procedure (and most other initialize() procedures in existence) has named its init argument new. "new" is a reserved word
in C++, and your programs will be more portable if you avoid using it in your C code.
/* ARGSUSED */
static void ConstraintInitialize(request, new, args, num_args)
Widget request, new;
ArgList args;
Cardinal *num_args;
{
FormConstraints form = (FormConstraints)new->core.constraints;
FormWidget fw = (FormWidget)new->core.parent;
form->form.virtual_width = (int) new->core.width;
form->form.virtual_height = (int) new->core.height;
if (form->form.dx == default_value)
form->form.dx = fw->form.default_spacing;
if (form->form.dy == default_value)
form->form.dy = fw->form.default_spacing;
form->form.deferred_resize = False;
}
See Also
XtCreateWidget(1),
Constraint(3), Core(3),
Constraint destroy(4), initialize(4), Constraint set_values(4).
Xt - Intrinsics Methods Constraint initialize()