43 lines
814 B
C
43 lines
814 B
C
/* usual BSD style copyright here */
|
|
/* Written by Julian Elischer (julian@dialix.oz.au)*/
|
|
/*
|
|
* $Id: devfsext.h,v 1.12 1996/04/03 00:01:40 gpalmer Exp $
|
|
*/
|
|
|
|
#ifndef _SYS_DEVFSECT_H_
|
|
#define _SYS_DEVFSECT_H_ 1
|
|
|
|
void *devfs_add_devswf(void *devsw,
|
|
int minor,
|
|
int chrblk,
|
|
uid_t uid,
|
|
gid_t gid,
|
|
int perms,
|
|
char *fmt,
|
|
...) ;
|
|
|
|
void *devfs_link(void *original, /* the result of a previous dev_link */
|
|
char *fmt, /* or dev_add operation */
|
|
...);
|
|
|
|
/* remove the device the cookie represents */
|
|
void devfs_remove_dev(void *devnmp);
|
|
|
|
#define DV_CHR 0
|
|
#define DV_BLK 1
|
|
#define DV_DEV 2
|
|
|
|
/* XXX */
|
|
#define UID_ROOT 0
|
|
#define UID_BIN 3
|
|
#define UID_UUCP 66
|
|
|
|
/* XXX */
|
|
#define GID_WHEEL 0
|
|
#define GID_KMEM 2
|
|
#define GID_OPERATOR 5
|
|
#define GID_BIN 7
|
|
#define GID_DIALER 68
|
|
|
|
#endif /*_SYS_DEVFSECT_H_*/
|