TYPES(5) File Formats Manual TYPES(5)NAME
types - primitive system data types
SYNOPSIS
#include <sys/types.h>
DESCRIPTION
The data types defined in the include file are used in UNIX system code; some data of these types are accessible to user code:
The form daddr_t is used for disk addresses except in an i-node on disk, see filsys(5). Times are encoded in seconds since 00:00:00 GMT,
January 1, 1970. The major and minor parts of a device code specify kind and unit number of a device and are installation-dependent. Off-
sets are measured in bytes from the beginning of a file. The label_t variables are used to save the processor state while another process
is running.
SEE ALSO filsys(5), time(2), lseek(2), adb(1)TYPES(5)
Check Out this Related Man Page
types(5) File Formats Manual types(5)Name
types - primitive system data types
Syntax
#include <sys/types.h>
Description
The data defined in the include file are used in UNIX system code. Some data of these are accessible to user code:
#ifndef _TYPES_
#define _TYPES_
/* major part of a device */
#define major(x) ((int)(((unsigned)(x)>>8)&0377))
/* minor part of a device */
#define minor(x) ((int)((x)&0377))
/* make a device number */
#define makedev(x,y) ((dev_t)(((x)<<8) | (y)))
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef unsigned short ushort; /* sys III compat */
#ifdef mips
typedef struct _physadr { int r[1]; } *physadr;
typedef struct label_t {
int val[12];
} label_t;
#endif
typedef struct _quad { long val[2]; } quad;
typedef long daddr_t;
typedef char * caddr_t;
typedef u_long ino_t;
typedef long swblk_t;
typedef int size_t;
typedef int time_t;
typedef short dev_t;
typedef int off_t;
typedef struct fd_set { int fds_bits[1]; } fd_set;
#endif
The form daddr_t is used for disk addresses except in an i-node on disk. For further information, see Times are encoded in seconds since
00:00:00 GMT, January 1, 1970. The major and minor parts of a device code specify kind and unit number of a device and are installation-
dependent. Offsets are measured in bytes from the beginning of a file. The label_t variables are used to save the processor state while
another process is running.
See Alsodbx(1), lseek(2), time(3), fs(5)
RISC types(5)
I was just asked if I had any experience with MC ServiceGuard with HP-UX, when I used HP I didn't use it but I am curious about it and would like to see about learning it (it seems lots of HP jobs want experience with it.) Also is this a HP product or is it used on other types of *nix. Thanks for... (10 Replies)
I have a file of type .for extension .In a guui based unix environment like solaris if I double click on that file a specific program designed by me has to run which takes this file as the parameter and exceutes the program.
Can anyone help me? (8 Replies)
There are these ksh files and config files that are written and updated on a daily basis.
All I want to do is write a script that finds both these types of files and archive them on a daily basis, to help in restoring in times of system outages and so on. Particulary I'm interested in .ksh ,... (9 Replies)
Hi Unix Experts,
Since I am in childhood stage of Unix, I need to know a solution for the following:
When I logon from a Remote terminal ( say /dev/pts/0) ,
I should be able to view the work done by the Remote user on the Unix machine when I log on as a root.
eg : if the remote user types... (8 Replies)
For e.g I have a file named "relation" which has three coloums i.e
JOHN MARY JACK
PETE ALISIA JONNY
TONY JACKIE VICTOR
If I do
grep -w 'JOHN' relation | awk '{print""$1" is husband of "$2" & father of "$3""}'
It gives out
JOHN i husband of MARY & father of JACK (which is desired... (7 Replies)
On another simple topic, multiple choice answers OK ( you can pick more than one or suggest others - we will add your suggestions to the poll ).
What Types of Food Do You Like The Most? (27 Replies)
hello all,
am stuck with ?. how to compute limits of char, int, float. i have done it simply displaying values from <limits.h> but i wan to calculate it.. its absolutley not a homework.
thank you. (7 Replies)
Hi All,
i need to move two types of files from a directory.
I have used the below command to find the files from the directory..
SOURCE_DIR="some directory path"
TARGET_DIR="Target Dir"
Datestamp=Date_format
find $SOURCE_DIR \( -name "*.log" -o -name "*.out" ) - exec ls -1 {} \;
now i... (9 Replies)
I want to write a script that copys over a complete folder including the dirs to another
location.
However in the process I want to ignore several filetypse that SHOULD NOT get copied over.
I know Global Ignore is capable of make the copy command ignore one file type, however
I don't know how... (8 Replies)
1. The problem statement, all variables and given/known data:
Hey there, I'm brand new to using Unix as I just started a course on it in my University, and I currently working through a worksheet which focuses on the many commands and methods of GREP (I'm working through the terminal command... (11 Replies)
I have a variable, vbLevel and want to assign it to one of several values which are "none", "low", "medium", "high".
Then I want to do something like
if ; then
...
fi (9 Replies)
Guys, please help! I am currently using an AIX server however whenever I tried to use the typeset -F3, the variable is resulting with a "#".
In the given example below, I declared x to be a decimal holding 3 decimal places = 1.455. However whenever I tried to echo the $x, the resulting value... (9 Replies)
I'm getting different behaviors for "typeset -i" on different systems. In one case unset parameters are 0, and in another case they're empty. Is one of these behaviors correct, or is the behavior here unspecified?
First system:
$ typeset -i x
$ print $x
0
$ print ${.sh.version}
Version M... (13 Replies)
Hello everyone - I have a task of listing files from a directory together with their type.
I tried using
ls -l | file -b
or different versions of that but that did not work.
I will need this to be in a C shell script that will list the file name, size and type from a directory.
I can do... (12 Replies)
I am trying to write a script that cycles through a folder containing many folders and when inside each one it's supposed to copy all the .fna.gz files to a folder elsewhere if the file and the respective folder have the same name.
for fldr in /home/playground/genomes/* ; do
find .... (8 Replies)