9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hii...
i am a biginner....and i have linux source code ,downloaded from some website ,a compressed file on windows and dont know how do compile them..... (4 Replies)
Discussion started by: M K Raju
4 Replies
2. Linux
I need the source code of fedora.
plz plz plz help me........... (1 Reply)
Discussion started by: neh
1 Replies
3. Shell Programming and Scripting
Hi,
I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory.
finally {
if (null != hibernateSession && hibernateSession.isOpen()) {
//hibernateSession.close();
}
}
It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies
4. Shell Programming and Scripting
Unix is written in C. From where u can see the source code of unix or linux (1 Reply)
Discussion started by: pritish.sas
1 Replies
5. Linux
Hello Everyone,
I've been programming using C for somtime, and now I want to involve myself in Linux OS. I've decided to study the details of the Fedora code,but I don't know where I can download it.Any suggestions as how to study the code and about X window are also helpful.
Thanks in advance. (3 Replies)
Discussion started by: enoch99
3 Replies
6. Shell Programming and Scripting
Can somebody give me the link to get the source code of BASH? (1 Reply)
Discussion started by: bhargava
1 Replies
7. Programming
Hi all,
I want to know how ls was implemented in linux.;
How to view the source code? filename/sitename...?
thanks (1 Reply)
Discussion started by: linuxer_rh
1 Replies
8. Programming
i am looking for vmstat source code or a listing of the kernel symbols that vmstat uses in the knlist subroutine. Interested in getting vmstat stats from a c program using knlist subroutine, but i dont know what the names of the kernel symbols are that i need to access.
thanks in advance::) (2 Replies)
Discussion started by: briansmith40
2 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I'm wondering if anyone out there have experience using the SCCS source code in Unix? If so, can you recommend a good (user friendly) SCCS book for beginner users.
Thanks! (3 Replies)
Discussion started by: Mary
3 Replies
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)