10-15-2016
Thanks
It is possible to introduce in the field of educational resources
10 More Discussions You Might Find Interesting
1. Linux
Hi All,
I need to update my redhatas4 kernel with kernel-2.6.9-67.0.20.EL.src.rpm.
When I run this
# rpm -ivh kernel-2.6.9-67.0.20.EL.src.rpm
warning: user brewbuilder does not exist - using root
warning: group brewbuilder does not exist - using root
warning: user brewbuilder does... (2 Replies)
Discussion started by: itik
2 Replies
2. AIX
Hi,
The apar instructions is to reboot on the ibm site. Is there's a way to update apar w/o reboot? I think I heard something before that it's possible.
Thanks in any idea you will type... (1 Reply)
Discussion started by: itik
1 Replies
3. Solaris
Hi All,
I am installing kernel Update 3.0 in my Solaris servers.
It actually installs most of the patches in this update , but for some packages it is not installing.
It is saying ...
Version of package SUNWcakr from directory SUNWcakr.us in patch 137137-09 differs from the package... (7 Replies)
Discussion started by: jegaraman
7 Replies
4. Solaris
Hi I am installeing Solaris Kernel update in my solaris Server.
The Solaris Kernel update skipps the patch 120011-14.
saying that it had already been installed.
But it is not found in /var/sadm/patch directory where all the patches will be there.
And also i could not install other... (11 Replies)
Discussion started by: jegaraman
11 Replies
5. Red Hat
1. Where do i obtain new kernels in ".rpm" format to update my RHEL5?
is it only available to RHN subscribers?
2. i downloaded latest kernel (linux-2.6.31.5.tar.bz2) from kernel.org.
#tar -xjvf linux-2.6.31.5.tar.bz2
after this i have a directory with lots of stuff in there. how do... (2 Replies)
Discussion started by: dplinux
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I'm new here. Just started playing around with kernel compilation.
I need a little bit of advice.
I'm trying to do a bash script to automatically compile a kernel package and reboot to that new kernel by default, with fallback to the old kernel.
So far, I'm getting stuck at the part... (0 Replies)
Discussion started by: tridus_08
0 Replies
7. Red Hat
Could you please help with problem with megaraid controller and Dell PowerEdge 2850, all that I can see on thi screenshot:
All drives successfuly passed verifing from LSI controllers (Ctrl+A at startup), also I tried to boot from rescue llive cd and mount all the morrored drives and check... (22 Replies)
Discussion started by: nikkadim
22 Replies
8. Red Hat
Dear all,
I have some linux servers in my prod environment. For two years i have not done any kernel updates or required patches ...should i have to this activity. My kernel version is 2.6.18-164.el5xen and linux release is release 5.4 (Tikanga).
And reboot also not done for 2 years is... (2 Replies)
Discussion started by: jegaraman
2 Replies
9. AIX
Greetings,
Does anyone know how to load AIX kernel extensions on reboot? I know that Oracle loads it's postwait kernel extension via a executable in /etc/inittab. I'm assuming this executable calls the "sysconfig" system call and loads it. What if I wrote my own? What is the proper way in AIX to... (3 Replies)
Discussion started by: jbleistein
3 Replies
10. Emergency UNIX and Linux Support
Hi guys,
thanks for your help. I recently did a yum update on my rhel6.4 server. After this update, user logins take for ever and the reboot command does not work. When I do a reboot, the server hangs. Nothing happens.
Any help with this will be appreciated.
Thank you (3 Replies)
Discussion started by: cjashu
3 Replies
LEARN ABOUT HPUX
xtoffsetof
XtOffsetOf() XtOffsetOf()
Name
XtOffsetOf - determine the byte offset of a field within a structure type.
Synopsis
Cardinal XtOffsetOf(structure_type, field_name)
Inputs
structure_type
Specifies a type that is declared as a structure.
field_name
Specifies the name of a field of the structure.
Returns
The offset in bytes of the specified field from the beginning of the specified structure.
Availability
Release 4 and later.
Description
XtOffsetOf() is a macro that expands to a constant expression that gives the offset in bytes to the specified structure member from the
beginning of the structure.
Usage
XtOffset() is usually used to determine the location of an variable within a structure when initializing a resource list. It is used by
widget writers, and anyone who needs to fetch application resources with XtGetApplicationResources(). Resource fields are defined in terms
of offsets from a base address from the beginning of a widget. Thus, a resource value can be kept up to date by the Resource Manager with-
out any knowledge of the instance structure of the widget; it uses just a relative byte offset.
XtOffsetOf() is slightly more portable than XtOffset() which performs the same function but takes a pointer type rather than a structure
type.
Example
XtOffsetOf() is used to declare a resource list for the Athena Label widget:
#define offset(field) XtOffsetOf(LabelRec, field)
static XtResource resources[] = {
{XtNforeground, XtCForeground, XtRPixel, sizeof(Pixel),
offset(label.foreground), XtRString, XtDefaultForeground},
{XtNfont, XtCFont, XtRFontStruct, sizeof(XFontStruct *),
offset(label.font),XtRString, XtDefaultFont},
.
.
Background
XtOffsetOf() is defined in terms of XtOffset() on many systems:
#ifdef offsetof
#define XtOffsetOf(s_type,field) offsetof(s_type,field)
#else
#define XtOffsetOf(s_type,field) XtOffset(s_type*,field)
#endif
See Also
XtOffset(1).
Xt - Utilities XtOffsetOf()