delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/11/13/14:18:57

From: corinna DOT vinschen AT cityweb DOT de (Corinna Vinschen)
Subject: New file `sysmacros.h'
13 Nov 1998 14:18:57 -0800 :
Message-ID: <364C9A40.C8C14458.cygnus.cygwin32.developers@cityweb.de>
Mime-Version: 1.0
To: cygwin32-developers AT cygnus DOT com

Hi,

As mentioned in `gnu-win32 AT cygnus DOT com', it's important
to have defines for `major', `minor' and `makedev' to
compile the package file-3.XX.

So it would be nice, to have the file `sys/sysmacros.h'
in the includes, as in Linux and others.

Regards,
Corinna

---- snip ----
#ifndef _SYS_SYSMACROS_H
#define _SYS_SYSMACROS_H

#define major(dev) (((unsigned) (dev))>>8)
#define minor(dev) ((dev)&0xff)
#define makedev(major,minor) (((major)<<8)|(minor))

#endif /* _SYS_SYSMACROS_H */


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019