Module Name: src Committed By: christos Date: Mon Mar 8 17:34:30 UTC 2021
Modified Files: src/sys/fs/puffs: puffs_msgif.h Log Message: give names to the enums so we can cast by name for lint To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/sys/fs/puffs/puffs_msgif.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/fs/puffs/puffs_msgif.h diff -u src/sys/fs/puffs/puffs_msgif.h:1.85 src/sys/fs/puffs/puffs_msgif.h:1.86 --- src/sys/fs/puffs/puffs_msgif.h:1.85 Mon Sep 23 08:00:57 2019 +++ src/sys/fs/puffs/puffs_msgif.h Mon Mar 8 12:34:30 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: puffs_msgif.h,v 1.85 2019/09/23 12:00:57 christos Exp $ */ +/* $NetBSD: puffs_msgif.h,v 1.86 2021/03/08 17:34:30 christos Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Antti Kantee. All Rights Reserved. @@ -61,7 +61,7 @@ #define PUFFSOP_OPCLASS(a) ((a) & PUFFSOP_OPCMASK) #define PUFFSOP_WANTREPLY(a) (((a) & PUFFSOPFLAG_FAF) == 0) -enum { +enum puffs_vfs { PUFFS_VFS_MOUNT, PUFFS_VFS_START, PUFFS_VFS_UNMOUNT, PUFFS_VFS_ROOT, PUFFS_VFS_QUOTACTL, PUFFS_VFS_STATVFS, PUFFS_VFS_SYNC, PUFFS_VFS_VGET, PUFFS_VFS_FHTOVP, @@ -70,7 +70,7 @@ enum { }; #define PUFFS_VFS_MAX PUFFS_VFS_SUSPEND -enum { +enum puffs_vn { PUFFS_VN_LOOKUP, PUFFS_VN_CREATE, PUFFS_VN_MKNOD, PUFFS_VN_OPEN, PUFFS_VN_CLOSE, PUFFS_VN_ACCESS, PUFFS_VN_GETATTR, PUFFS_VN_SETATTR, PUFFS_VN_READ, @@ -96,7 +96,7 @@ enum { /* * These signal invalid parameters the file system returned. */ -enum { +enum puffs_err { PUFFS_ERR_ERROR, PUFFS_ERR_MAKENODE, PUFFS_ERR_LOOKUP, PUFFS_ERR_READDIR, PUFFS_ERR_READLINK, PUFFS_ERR_READ, PUFFS_ERR_WRITE,