Changeset 99272a3 in mainline for uspace/lib/libc/generic


Ignore:
Timestamp:
2009-06-04T10:12:23Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c8b9f88
Parents:
301ff30
Message:

inode_t → fdi_node_t

Location:
uspace/lib/libc/generic
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/io/io.c

    r301ff30 r99272a3  
    145145}
    146146
    147 FILE *fopen_node(inode_t *node, const char *mode)
     147FILE *fopen_node(fdi_node_t *node, const char *mode)
    148148{
    149149        int flags;
     
    354354}
    355355
    356 void fnode(FILE *stream, inode_t *node)
     356void fnode(FILE *stream, fdi_node_t *node)
    357357{
    358358        if (stream->fd >= 0) {
  • uspace/lib/libc/generic/loader.c

    r301ff30 r99272a3  
    206206 *
    207207 */
    208 int loader_set_files(loader_t *ldr, inode_t *const files[])
     208int loader_set_files(loader_t *ldr, fdi_node_t *const files[])
    209209{
    210210        /*
     
    212212         * compute size of the buffer needed.
    213213         */
    214         inode_t *const *ap = files;
     214        fdi_node_t *const *ap = files;
    215215        size_t count = 0;
    216216        while (*ap != NULL) {
     
    219219        }
    220220       
    221         inode_t *files_buf = (inode_t *) malloc(count * sizeof(inode_t));
     221        fdi_node_t *files_buf;
     222        files_buf = (fdi_node_t *) malloc(count * sizeof(fdi_node_t));
    222223        if (files_buf == NULL)
    223224                return ENOMEM;
     
    232233        aid_t req = async_send_0(ldr->phone_id, LOADER_SET_FILES, &answer);
    233234        ipcarg_t rc = ipc_data_write_start(ldr->phone_id, (void *) files_buf,
    234             count * sizeof(inode_t));
     235            count * sizeof(fdi_node_t));
    235236        if (rc != EOK) {
    236237                async_wait_for(req, NULL);
  • uspace/lib/libc/generic/task.c

    r301ff30 r99272a3  
    101101       
    102102        /* Send default files */
    103         inode_t *files[4];
    104         inode_t stdin_node;
    105         inode_t stdout_node;
    106         inode_t stderr_node;
     103        fdi_node_t *files[4];
     104        fdi_node_t stdin_node;
     105        fdi_node_t stdout_node;
     106        fdi_node_t stderr_node;
    107107       
    108108        if ((stdin != NULL) && (stdin != &stdin_null)) {
  • uspace/lib/libc/generic/vfs/vfs.c

    r301ff30 r99272a3  
    224224}
    225225
    226 int open_node(inode_t *node, int oflag)
     226int open_node(fdi_node_t *node, int oflag)
    227227{
    228228        futex_down(&vfs_phone_futex);
     
    333333}
    334334
    335 void fd_node(int fildes, inode_t *node)
     335void fd_node(int fildes, fdi_node_t *node)
    336336{
    337337        futex_down(&vfs_phone_futex);
Note: See TracChangeset for help on using the changeset viewer.