Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

types(5) [v7 man page]

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 Also
       dbx(1), lseek(2), time(3), fs(5)

								       RISC								  types(5)
Man Page

15 More Discussions You Might Find Interesting

1. HP-UX

MC ServiceGaurd

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)
Discussion started by: jwbrown
10 Replies

2. Filesystems, Disks and Memory

associated file types

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)
Discussion started by: nhk_srd
8 Replies

3. Shell Programming and Scripting

find multiple file types and tar

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)
Discussion started by: manthasirisha
9 Replies

4. Cybersecurity

terminal capture

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)
Discussion started by: krishonv_2
8 Replies

5. Shell Programming and Scripting

grep, awk, typeset in a shell script..

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)
Discussion started by: nick_25
7 Replies

6. What is on Your Mind?

What Types of Food Do You Like The Most?

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)
Discussion started by: Neo
27 Replies

7. Programming

Compute upper and lower limit of data types.

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)
Discussion started by: zius_oram
7 Replies

8. Shell Programming and Scripting

Remove two types of files from a directory

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)
Discussion started by: ch33ry
9 Replies

9. Shell Programming and Scripting

Copying all directories while ignoring certain filetypes

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)
Discussion started by: pasc
8 Replies

10. Homework & Coursework Questions

Help with using different types of GREP

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)
Discussion started by: SilvarHawke
11 Replies

11. Shell Programming and Scripting

Bash enumerated types

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)
Discussion started by: kristinu
9 Replies

12. Shell Programming and Scripting

Help when using Typeset in AIX Korn Shell

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)
Discussion started by: zzavilz
9 Replies

13. Shell Programming and Scripting

ksh "typeset -i" and Empty Parameters

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)
Discussion started by: Matt Miller
13 Replies

14. Shell Programming and Scripting

List file types

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)
Discussion started by: adrianvas12
12 Replies

15. Shell Programming and Scripting

Copying specific file types to specific folders

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)
Discussion started by: Mr_Keystrokes
8 Replies