source: trunk/minix/commands/i386/mtools-3.9.7/subdir.c@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 418 bytes
Line 
1#include "sysincludes.h"
2#include "msdos.h"
3#include "mtools.h"
4#include "vfat.h"
5#include "file.h"
6#include "buffer.h"
7
8/*
9 * Find the directory and load a new dir_chain[]. A null directory
10 * is OK. Returns a 1 on error.
11 */
12
13
14void bufferize(Stream_t **Dir)
15{
16 Stream_t *BDir;
17
18 if(!*Dir)
19 return;
20 BDir = buf_init(*Dir, 64*16384, 512, MDIR_SIZE);
21 if(!BDir){
22 FREE(Dir);
23 *Dir = NULL;
24 } else
25 *Dir = BDir;
26}
Note: See TracBrowser for help on using the repository browser.