Changeset 123

Show
Ignore:
Timestamp:
03/22/07 06:00:38
Author:
kunxi
Message:

Remove the COMMON_FP flag in read_flags for io_fread_list_local.
Add rw_compound after io_fseek, since the latter modify read.test.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/io_fread_list_local.upc

    r79 r123  
    11/* 
    22 * Copyright (C) 2006 Abdullah Kayi 
    3  * Copyright (C) 2006 Kun Xi 
    43 * Copyright (C) 2006 The George Washington University 
    54 * All rights reserved. 
     
    3736static upc_file_t* fd = NULL; 
    3837 
    39 static int flag_read[] = {  UPC_RDONLY | UPC_INDIVIDUAL_FP,  
    40                                 UPC_RDONLY | UPC_COMMON_FP }; 
     38static int flag_read[] = {  UPC_RDONLY | UPC_INDIVIDUAL_FP };  
    4139static int flag_write[] ={  UPC_WRONLY | UPC_INDIVIDUAL_FP,  
    4240                                UPC_WRONLY | UPC_COMMON_FP }; 
     
    9290{ 
    9391        struct upc_local_memvec memvec_read[] = { 
    94                 { &buffer[0], 10 }, 
    95                 { &buffer[30+MYTHREAD], 16 } 
     92                { buffer, 10 }, 
     93                { buffer+30+MYTHREAD, 16 } 
    9694        }; 
    9795 
     
    154152                /* Now, we are going to launch upc_fread */ 
    155153 
    156 //              ret = upc_all_fread_list_local(fd, 1, &memvec, 1, &filevec, sync); 
    157154                ret = upc_all_fread_list_local(fd, sizeof(memvec)/sizeof(memvec[0]), &memvec, 
    158155                                sizeof(filevec)/sizeof(filevec[0]), &filevec, sync); 
  • src/units

    r121 r123  
    33io_fclose 
    44io_fseek 
     5io_rw_compound 
    56io_fset_size 
    67io_fget_size