10 More Discussions You Might Find Interesting
1. Programming
I have a collection of format strings for sscanf, such as
"%02d%*1s%02d%*1s%02d"
to read in certain formatted strings, such as dates, times, etc.
I wonder if there is a way to use them in printf without some changes? The example above would not work - at least I can't think of any ways to... (4 Replies)
Discussion started by: migurus
4 Replies
2. Emergency UNIX and Linux Support
I have a LUN (From HP-Storage VA7110) that is claimed on 2 servers, but is in used in one of the VG on Server-1 .
Now I want to shut Server-1 and re-use that LUN on server-2 .
Server-1
Path-1 : /dev/rdsk/c4t0d1
Path-2: /dev/rdsk/c6t0d1
Server-2
Path-1: /dev/rdsk/c5t0d1
Path-2:... (8 Replies)
Discussion started by: Shirishlnx
8 Replies
3. Solaris
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
4. AIX
HI All,
I would like to know is it compulsory to keep major number of shared VG's on cluster nodes to be same..?
I have come across a situation where on one node major number of shared vg is the major number of altinst_rootvg on other node..how to overcome this situation..?
shan (3 Replies)
Discussion started by: to_bsr
3 Replies
5. Shell Programming and Scripting
Hi.
I have these two variables:
My objective here is to reuse that $file_name variable again and again by resetting the $cv value.
for example, if i reissue the cv="$(print 'CV01')" command, thus $file_name is now should be "CP99978_CV01.TXT", not "CP99978_CV01.TXT" anymore.
How I'm... (7 Replies)
Discussion started by: aimy
7 Replies
6. Solaris
Hi
Does anyone know what the major and minor numbers are in Solaris? (2 Replies)
Discussion started by: wisdom
2 Replies
7. Linux
hi
can you all help me to develop anything in unix that could be reused.
any module or application could be helpful (0 Replies)
Discussion started by: infyanurag
0 Replies
8. HP-UX
Hello, I have 2 hp-ux both running 11.23, I have move one of a harddisk from "UNIX A" to "UNIX B", so how can I read back the data in "UNIX B"?
Thanks (5 Replies)
Discussion started by: zetadhell
5 Replies
9. UNIX for Advanced & Expert Users
Does anyone know of a password reuse utility for Solaris 7 or 8? Security people are telling me that I need one.
Thanks (1 Reply)
Discussion started by: rtoba
1 Replies
10. Solaris
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
MAKEDEV(3) BSD Library Functions Manual MAKEDEV(3)
NAME
makedev, major, minor -- device number conversion
SYNOPSIS
#include <sys/types.h>
dev_t
makedev(int major, int minor);
int
major(dev_t dev);
int
minor(dev_t dev);
DESCRIPTION
The makedev() macro allows a unique device number to be generated based on its major and minor number. The major() and minor() macros can be
used to obtain the original numbers from the device number dev.
In previous implementations of FreeBSD all block and character devices were uniquely identified by a pair of major and minor numbers. The
major number referred to a certain device class (e.g. disks, TTYs) while the minor number identified an instance within the device class.
Later versions of FreeBSD automatically generate a unique device number for each character device visible in /dev/. These numbers are not
divided in device classes.
On FreeBSD these macros are only used by utilities that need to exchange numbers with other operating systems that may use different encod-
ings for dev_t, but also applications that present these numbers to the user in a more conventional way.
RETURN VALUES
The major() macro returns a device major number that has a value between 0 and 255. The minor() macro returns a device minor number whose
value can span the complete range of an int.
SEE ALSO
mknod(2), devname(3), devfs(5)
BSD
September 28, 2008 BSD