Sponsored Content
Top Forums Programming which head file for major and minor function? Post 302320000 by konvalo on Tuesday 26th of May 2009 09:00:59 PM
Old 05-26-2009
Quote:
Originally Posted by otheus
This is OS-specific. To help others answer your question, please specify the OS (and version). In Linux 2.6, these are defined in linux/kdev_t.h, but are MAJOR(dev) and MINOR(dev).
My OS is Solaris 10,which head file the major and minor function defined?
 

9 More Discussions You Might Find Interesting

1. Programming

Device Major/Minor numbers

To further my fledgling knowledge of C, I am re-writing some of the Unix command set. My current command is an ls-style command. All works well, except for device files. How do I get the major/minor numbers for the dev files? I see from the stat struct there are st_rdev and st_dev members. Do... (1 Reply)
Discussion started by: zazzybob
1 Replies

2. Solaris

major & minor number

Hi Can anyone tell me what is major number and minor number in the mknod command. Also what these numbers mean. I have gone through the man pages but still I couldn't understand. Regards (3 Replies)
Discussion started by: RajaRC
3 Replies

3. Shell Programming and Scripting

sort major.minor.release_build_x

would like to order this input based on major.minor.release AND build number Label abc_def_0.0.3_build_999 2008/08/01 'Created by me.' Label abc_def_0.0.9_build_1000 2008/08/01 'Created by me.' Label abc_def_9.0.9_build_10001 2008/08/01 'Created by me.' Label abc_def_10.9.100_build_2... (4 Replies)
Discussion started by: gurpal2000
4 Replies

4. Solaris

Help with Major and minor number

Hi Does anyone know what the major and minor numbers are in Solaris? (2 Replies)
Discussion started by: wisdom
2 Replies

5. AIX

how do I change major-minor numbers of disk devices

Good evening ... does anyone of you know how to change major/minor numbers of disk devices ? I had to migrate from raid1 to raid5 and this messed up my ASM cluster - I know which devices should have which IDs to match the content - but I have no idea how to change it. Any help would be... (2 Replies)
Discussion started by: zxmaus
2 Replies

6. AIX

Difference between Major and Minor in AIX

Difference between Major and Minor in AIX (5 Replies)
Discussion started by: AIXlearner
5 Replies

7. Shell Programming and Scripting

How to filter out major and minor?

Hi, I have line like this : proj_name/module/trunk/module_1_0 where the first "1" refers to major version and second "0" refers to minor version. any AWK or command like that so that I can filter out the major and minor ? like major= command | input line minor= command |... (4 Replies)
Discussion started by: bhaskar_m
4 Replies

8. Solaris

Major and Minor number of Virtual File System

Hi friends, Please let me know if there is any way to find out Major and Minor numbers of virtual file system like below: /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K 0% /system/contract proc 0K 0K ... (8 Replies)
Discussion started by: nitj
8 Replies

9. Shell Programming and Scripting

Filtering my major and minor values

I want to remove all rows with a minor repeating count less than 30% compared to the major repeating count from my table. The values of a col(starting col 2) can assume is A,T,G,C and N. Each row has at least 2 values and at most 4 repeating values(out of ATGC). N is considered a missing value... (12 Replies)
Discussion started by: newbie83
12 Replies
XmButtonBox(3X) 														   XmButtonBox(3X)

NAME
The Button Box widget SYNOPSIS
#include <Xm/ButtonBox.h> DESCRIPTION
The Button Box widget manages children (usually buttons) in a single row or single column layout. The Button Box maintains equal spacing between its children at all times and attempts to adjust its height and width as necessary so that all children will fit. If this is not possible, due to parent or application programmer constraints, the Button Box will resize its chil- dren as necessary to fit within the available space. Note: in what follows, major direction refers to the direction of orientation, and minor direction refers to the perpendicular direction. Normal Resources Name Class Type Initial Value equalSize EqualSize Boolean False fillOption FillOption unsigned char XmFillNone marginHeight Margin VerticalDimension 0 marginWidth Margin HorizontalDimension 0 orientation Orientation unsigned char XmHORIZONTAL All resource names begin with XmN and all resource class names begin with XmC. equalSize Specifies whether the children are to be maintained with equal sized heights and widths. The chosen height and width for the children is found by asking each child for its preferred size and taking the largest value in each direction. fillOption Specifies how to use any extra space left over once all children have been sized according to either their preference or equalSize. There are four options: XmFillNone No automatic filling is performed. Center the children in the minor direction and place the children with equal padding between them in the major direction. XmFillMinor Place the children with equal padding between them in the major direction, but force all the children to take on the Button Box minor dimension as their minor direction. XmFillMajor Center the children in the minor direction, but expand all the children in their major direction so that there is no padding between them. Expand the children such that their relative sizes remain constant. XmFillAll This option combines the placement actions and sizing actions of XmFillMinor and XmFillMajor. Regardless of the fill mode, the ButtonBox widget will always leave the specified margin between its edge and the nearest child. A new String to fillOption resource converter has been registered to convert the following strings to fill options: "none", "major", "minor", "all." This resource can therefore be set in an application defaults file. marginHeight marginWidth Specifies the number of pixels to use as a margin around the entire group of children. The marginHeight value applies to both the top and bottom margins, while the marginWidth applies to the left and right margins. orientation Specifies whether children are to be placed in a row or a column. The orientation may be either XmHORIZONTAL or XmVERTICAL. If the orienta- tion is XmHORIZONTAL, the children are placed in a row with the major dimension being width and the minor dimension being height. If the value is XmVERTICAL, the children are placed in a column with the major dimension being height and the minor dimension being width. The default value is XmHORIZONTAL. Convenience Routines XmCreateButtonBox XmCreateButtonBox( Widget parent, /* Widget id of parent for new ButtonBox */ String name, /* Name of the created widget */ ArgList args, /* argument list */ Cardinal num_args /* number of items in argument list */ ) Translations and Actions: The Button Box manager inherits all of its translations and actions from its superclass. COPYRIGHT
Copyright (c) 1992 by Integrated Computer Solutions, Inc. XmButtonBox(3X)
All times are GMT -4. The time now is 11:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy