Print this page
7127  remove -Wno-missing-braces from Makefile.uts


 508 
 509 static int
 510 bootfs_pathconf(vnode_t *vp, int cmd, ulong_t *valp, cred_t *cr,
 511     caller_context_t *ct)
 512 {
 513         int ret;
 514 
 515         switch (cmd) {
 516         case _PC_TIMESTAMP_RESOLUTION:
 517                 *valp = 1L;
 518                 ret = 0;
 519                 break;
 520         default:
 521                 ret = fs_pathconf(vp, cmd, valp, cr, ct);
 522         }
 523 
 524         return (ret);
 525 }
 526 
 527 const fs_operation_def_t bootfs_vnodeops_template[] = {
 528         VOPNAME_OPEN,           { .vop_open = bootfs_open },
 529         VOPNAME_CLOSE,          { .vop_close = bootfs_close },
 530         VOPNAME_READ,           { .vop_read = bootfs_read },
 531         VOPNAME_IOCTL,          { .vop_ioctl = bootfs_ioctl },
 532         VOPNAME_GETATTR,        { .vop_getattr = bootfs_getattr },
 533         VOPNAME_ACCESS,         { .vop_access = bootfs_access },
 534         VOPNAME_LOOKUP,         { .vop_lookup = bootfs_lookup },
 535         VOPNAME_READDIR,        { .vop_readdir = bootfs_readdir },
 536         VOPNAME_INACTIVE,       { .vop_inactive = bootfs_inactive },
 537         VOPNAME_RWLOCK,         { .vop_rwlock = bootfs_rwlock },
 538         VOPNAME_RWUNLOCK,       { .vop_rwunlock = bootfs_rwunlock },
 539         VOPNAME_SEEK,           { .vop_seek = bootfs_seek },
 540         VOPNAME_GETPAGE,        { .vop_getpage = bootfs_getpage },
 541         VOPNAME_MAP,            { .vop_map = bootfs_map },
 542         VOPNAME_ADDMAP,         { .vop_addmap = bootfs_addmap },
 543         VOPNAME_DELMAP,         { .vop_delmap = bootfs_delmap },
 544         VOPNAME_PATHCONF,       { .vop_pathconf = bootfs_pathconf },
 545         VOPNAME_VNEVENT,        { .vop_vnevent = fs_vnevent_nosupport },
 546         NULL,                   NULL
 547 };


 508 
 509 static int
 510 bootfs_pathconf(vnode_t *vp, int cmd, ulong_t *valp, cred_t *cr,
 511     caller_context_t *ct)
 512 {
 513         int ret;
 514 
 515         switch (cmd) {
 516         case _PC_TIMESTAMP_RESOLUTION:
 517                 *valp = 1L;
 518                 ret = 0;
 519                 break;
 520         default:
 521                 ret = fs_pathconf(vp, cmd, valp, cr, ct);
 522         }
 523 
 524         return (ret);
 525 }
 526 
 527 const fs_operation_def_t bootfs_vnodeops_template[] = {
 528         { VOPNAME_OPEN,         { .vop_open = bootfs_open } },
 529         { VOPNAME_CLOSE,        { .vop_close = bootfs_close } },
 530         { VOPNAME_READ,         { .vop_read = bootfs_read } },
 531         { VOPNAME_IOCTL,        { .vop_ioctl = bootfs_ioctl } },
 532         { VOPNAME_GETATTR,      { .vop_getattr = bootfs_getattr } },
 533         { VOPNAME_ACCESS,       { .vop_access = bootfs_access } },
 534         { VOPNAME_LOOKUP,       { .vop_lookup = bootfs_lookup } },
 535         { VOPNAME_READDIR,      { .vop_readdir = bootfs_readdir } },
 536         { VOPNAME_INACTIVE,     { .vop_inactive = bootfs_inactive } },
 537         { VOPNAME_RWLOCK,       { .vop_rwlock = bootfs_rwlock } },
 538         { VOPNAME_RWUNLOCK,     { .vop_rwunlock = bootfs_rwunlock } },
 539         { VOPNAME_SEEK,         { .vop_seek = bootfs_seek } },
 540         { VOPNAME_GETPAGE,      { .vop_getpage = bootfs_getpage } },
 541         { VOPNAME_MAP,          { .vop_map = bootfs_map } },
 542         { VOPNAME_ADDMAP,       { .vop_addmap = bootfs_addmap } },
 543         { VOPNAME_DELMAP,       { .vop_delmap = bootfs_delmap } },
 544         { VOPNAME_PATHCONF,     { .vop_pathconf = bootfs_pathconf } },
 545         { VOPNAME_VNEVENT,      { .vop_vnevent = fs_vnevent_nosupport } },
 546         { NULL,                 { NULL } }
 547 };