Changeset 9c4cf0d in mainline for uspace/lib/c/generic/vfs/inbox.c


Ignore:
Timestamp:
2017-04-02T11:24:06Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
151f1cc
Parents:
b19e892
Message:

Rename close() to vfs_put()

This is motivated mainly by the fact that a file handle does not
necessarily correspond to an open file and close() was no longer the
the opposite operation to open().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/inbox.c

    rb19e892 r9c4cf0d  
    11
    22#include <vfs/inbox.h>
     3#include <vfs/vfs.h>
    34
    45#include <adt/list.h>
     
    126127                int original = inbox_set(entries[i].name, entries[i].file);
    127128                if (original >= 0) {
    128                         close(original);
     129                        vfs_put(original);
    129130                }
    130131        }
Note: See TracChangeset for help on using the changeset viewer.