Subversion Repositories HelenOS

Rev

Rev 4491 | Rev 4547 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4491 Rev 4492
Line 79... Line 79...
79
/** Number of preset files */
79
/** Number of preset files */
80
static int filc = 0;
80
static int filc = 0;
81
/** Preset files vector */
81
/** Preset files vector */
82
static char **filv = NULL;
82
static char **filv = NULL;
83
/** Buffer holding all preset files */
83
/** Buffer holding all preset files */
84
static inode_t *fil_buf = NULL;
84
static fdi_node_t *fil_buf = NULL;
85
 
85
 
86
static elf_info_t prog_info;
86
static elf_info_t prog_info;
87
static elf_info_t interp_info;
87
static elf_info_t interp_info;
88
 
88
 
89
static bool is_dyn_linked;
89
static bool is_dyn_linked;
Line 240... Line 240...
240
        ipc_answer_0(callid, EINVAL);
240
        ipc_answer_0(callid, EINVAL);
241
        ipc_answer_0(rid, EINVAL);
241
        ipc_answer_0(rid, EINVAL);
242
        return;
242
        return;
243
    }
243
    }
244
   
244
   
245
    if ((buf_size % sizeof(inode_t)) != 0) {
245
    if ((buf_size % sizeof(fdi_node_t)) != 0) {
246
        ipc_answer_0(callid, EINVAL);
246
        ipc_answer_0(callid, EINVAL);
247
        ipc_answer_0(rid, EINVAL);
247
        ipc_answer_0(rid, EINVAL);
248
        return;
248
        return;
249
    }
249
    }
250
   
250
   
Line 265... Line 265...
265
        return;
265
        return;
266
    }
266
    }
267
   
267
   
268
    ipc_data_write_finalize(callid, fil_buf, buf_size);
268
    ipc_data_write_finalize(callid, fil_buf, buf_size);
269
   
269
   
270
    int count = buf_size / sizeof(inode_t);
270
    int count = buf_size / sizeof(fdi_node_t);
271
   
271
   
272
    /* Allocate filvv */
272
    /* Allocate filvv */
273
    filv = malloc((count + 1) * sizeof(inode_t *));
273
    filv = malloc((count + 1) * sizeof(fdi_node_t *));
274
   
274
   
275
    if (filv == NULL) {
275
    if (filv == NULL) {
276
        free(fil_buf);
276
        free(fil_buf);
277
        ipc_answer_0(rid, ENOMEM);
277
        ipc_answer_0(rid, ENOMEM);
278
        return;
278
        return;