Subversion Repositories shark

Rev

Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/*
22
 * Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
23
 * This file is part of the GNU C Library.
24
 *
25
 * Copyright (C) 1999 Massimiliano Giorgi
26
 *
27
 * This program is free software; you can redistribute it and/or modify
28
 * it under the terms of the GNU General Public License as published by
29
 * the Free Software Foundation; either version 2 of the License, or
30
 * (at your option) any later version.
31
 *
32
 * This program is distributed in the hope that it will be useful,
33
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
 * GNU General Public License for more details.
36
 *
37
 * You should have received a copy of the GNU General Public License
38
 * along with this program; if not, write to the Free Software
39
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
40
 *
41
 */
42
 
43
/*
44
 * CVS :        $Id: sysmacro.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
45
 *
46
 * File:        sysmacro.h
47
 * Revision:    $Revision: 1.1.1.1 $
48
 * Last update: $Date: 2002-03-29 14:12:51 $
49
 */
50
 
51
#ifndef _FS_SYSMACRO_H
52
#define _FS_SYSMACRO_H
53
 
54
/* For compatibility we provide alternative names.
55
 
56
   The problem here is that compilers other than GCC probably don't
57
   have the `long long' type and so `dev_t' is actually an array.  */
58
#define major(dev) ((int)(((unsigned int) (dev) >> 8) & 0xff))
59
#define minor(dev) ((int)((dev) & 0xff))
60
#define makedev(major, minor) (((major) << 8) | (minor))
61
 
62
#endif