Changeset fafb8e5 in mainline for uspace/srv/vfs/vfs_ipc.c


Ignore:
Timestamp:
2019-02-06T13:25:12Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
95a47b0
Parents:
eb13ef8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-02 14:10:59)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-06 13:25:12)
Message:

Mechanically lowercase IPC_SET_*/IPC_GET_*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ipc.c

    reb13ef8 rfafb8e5  
    3737static void vfs_in_clone(ipc_call_t *req)
    3838{
    39         int oldfd = IPC_GET_ARG1(req);
    40         int newfd = IPC_GET_ARG2(req);
    41         bool desc = IPC_GET_ARG3(req);
     39        int oldfd = ipc_get_arg1(req);
     40        int newfd = ipc_get_arg2(req);
     41        bool desc = ipc_get_arg3(req);
    4242
    4343        int outfd = -1;
     
    4848static void vfs_in_fsprobe(ipc_call_t *req)
    4949{
    50         service_id_t service_id = (service_id_t) IPC_GET_ARG1(req);
     50        service_id_t service_id = (service_id_t) ipc_get_arg1(req);
    5151        char *fs_name = NULL;
    5252        vfs_fs_probe_info_t info;
     
    113113static void vfs_in_mount(ipc_call_t *req)
    114114{
    115         int mpfd = IPC_GET_ARG1(req);
     115        int mpfd = ipc_get_arg1(req);
    116116
    117117        /*
     
    120120         * in the request.
    121121         */
    122         service_id_t service_id = (service_id_t) IPC_GET_ARG2(req);
    123 
    124         unsigned int flags = (unsigned int) IPC_GET_ARG3(req);
    125         unsigned int instance = IPC_GET_ARG4(req);
     122        service_id_t service_id = (service_id_t) ipc_get_arg2(req);
     123
     124        unsigned int flags = (unsigned int) ipc_get_arg3(req);
     125        unsigned int instance = ipc_get_arg4(req);
    126126
    127127        char *opts = NULL;
     
    159159static void vfs_in_open(ipc_call_t *req)
    160160{
    161         int fd = IPC_GET_ARG1(req);
    162         int mode = IPC_GET_ARG2(req);
     161        int fd = ipc_get_arg1(req);
     162        int mode = ipc_get_arg2(req);
    163163
    164164        errno_t rc = vfs_op_open(fd, mode);
     
    168168static void vfs_in_put(ipc_call_t *req)
    169169{
    170         int fd = IPC_GET_ARG1(req);
     170        int fd = ipc_get_arg1(req);
    171171        errno_t rc = vfs_op_put(fd);
    172172        async_answer_0(req, rc);
     
    175175static void vfs_in_read(ipc_call_t *req)
    176176{
    177         int fd = IPC_GET_ARG1(req);
    178         aoff64_t pos = MERGE_LOUP32(IPC_GET_ARG2(req),
    179             IPC_GET_ARG3(req));
     177        int fd = ipc_get_arg1(req);
     178        aoff64_t pos = MERGE_LOUP32(ipc_get_arg2(req),
     179            ipc_get_arg3(req));
    180180
    181181        size_t bytes = 0;
     
    192192        errno_t rc;
    193193
    194         basefd = IPC_GET_ARG1(req);
     194        basefd = ipc_get_arg1(req);
    195195
    196196        /* Retrieve the old path. */
     
    230230static void vfs_in_resize(ipc_call_t *req)
    231231{
    232         int fd = IPC_GET_ARG1(req);
    233         int64_t size = MERGE_LOUP32(IPC_GET_ARG2(req), IPC_GET_ARG3(req));
     232        int fd = ipc_get_arg1(req);
     233        int64_t size = MERGE_LOUP32(ipc_get_arg2(req), ipc_get_arg3(req));
    234234        errno_t rc = vfs_op_resize(fd, size);
    235235        async_answer_0(req, rc);
     
    238238static void vfs_in_stat(ipc_call_t *req)
    239239{
    240         int fd = IPC_GET_ARG1(req);
     240        int fd = ipc_get_arg1(req);
    241241        errno_t rc = vfs_op_stat(fd);
    242242        async_answer_0(req, rc);
     
    245245static void vfs_in_statfs(ipc_call_t *req)
    246246{
    247         int fd = (int) IPC_GET_ARG1(req);
     247        int fd = (int) ipc_get_arg1(req);
    248248
    249249        errno_t rc = vfs_op_statfs(fd);
     
    253253static void vfs_in_sync(ipc_call_t *req)
    254254{
    255         int fd = IPC_GET_ARG1(req);
     255        int fd = ipc_get_arg1(req);
    256256        errno_t rc = vfs_op_sync(fd);
    257257        async_answer_0(req, rc);
     
    260260static void vfs_in_unlink(ipc_call_t *req)
    261261{
    262         int parentfd = IPC_GET_ARG1(req);
    263         int expectfd = IPC_GET_ARG2(req);
     262        int parentfd = ipc_get_arg1(req);
     263        int expectfd = ipc_get_arg2(req);
    264264
    265265        char *path;
     
    273273static void vfs_in_unmount(ipc_call_t *req)
    274274{
    275         int mpfd = IPC_GET_ARG1(req);
     275        int mpfd = ipc_get_arg1(req);
    276276        errno_t rc = vfs_op_unmount(mpfd);
    277277        async_answer_0(req, rc);
     
    280280static void vfs_in_wait_handle(ipc_call_t *req)
    281281{
    282         bool high_fd = IPC_GET_ARG1(req);
     282        bool high_fd = ipc_get_arg1(req);
    283283        int fd = -1;
    284284        errno_t rc = vfs_op_wait_handle(high_fd, &fd);
     
    292292         * For defined flags, see <ipc/vfs.h>.
    293293         */
    294         int parentfd = IPC_GET_ARG1(req);
    295         int flags = IPC_GET_ARG2(req);
     294        int parentfd = ipc_get_arg1(req);
     295        int flags = ipc_get_arg2(req);
    296296
    297297        int fd = 0;
     
    307307static void vfs_in_write(ipc_call_t *req)
    308308{
    309         int fd = IPC_GET_ARG1(req);
    310         aoff64_t pos = MERGE_LOUP32(IPC_GET_ARG2(req),
    311             IPC_GET_ARG3(req));
     309        int fd = ipc_get_arg1(req);
     310        aoff64_t pos = MERGE_LOUP32(ipc_get_arg2(req),
     311            ipc_get_arg3(req));
    312312
    313313        size_t bytes = 0;
     
    330330                async_get_call(&call);
    331331
    332                 if (!IPC_GET_IMETHOD(&call)) {
     332                if (!ipc_get_imethod(&call)) {
    333333                        async_answer_0(&call, EOK);
    334334                        break;
    335335                }
    336336
    337                 switch (IPC_GET_IMETHOD(&call)) {
     337                switch (ipc_get_imethod(&call)) {
    338338                case VFS_IN_CLONE:
    339339                        vfs_in_clone(&call);
Note: See TracChangeset for help on using the changeset viewer.