Ignore:
Timestamp:
Nov 10, 2005, 9:41:13 PM (18 years ago)
Author:
Sam Hocevar
Message:
  • absolute shitloads of 64 bit fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/net/include/fileman.hpp

    r4 r17  
    2020
    2121    nfs_client *next;
    22     long size_to_read; 
    23     long size;
     22    int32_t size_to_read; 
     23    int32_t size;
    2424    nfs_client(net_socket *sock, int file_fd, nfs_client *next);
    2525    int send_read();     // flushes as much of size_to_read as possible
     
    3333    net_socket *sock;
    3434    void r_close(char *reason);
    35     long size;   // server tells us the size of the file when we open it
     35    int32_t size;   // server tells us the size of the file when we open it
    3636    int open_local;
    3737    remote_file *next;
     
    4040    int unbuffered_read(void *buffer, size_t count);
    4141    int unbuffered_write(void *buf, size_t count) { return 0; } // not supported
    42     long unbuffered_tell();
    43     long unbuffered_seek(long offset);
    44     long file_size() { return size; }
     42    int32_t unbuffered_tell();
     43    int32_t unbuffered_seek(int32_t offset);
     44    int32_t file_size() { return size; }
    4545    int open_failure() { return sock==NULL; }   
    4646    ~remote_file();
     
    6464
    6565  int rf_open_file(char *&filename, char *mode);
    66   long rf_tell(int fd);
    67   long rf_seek(int fd, long offset);
     66  int32_t rf_tell(int fd);
     67  int32_t rf_seek(int fd, int32_t offset);
    6868  int rf_read(int fd, void *buffer, size_t count);
    6969  int rf_close(int fd);
    70   long rf_file_size(int fd);
     70  int32_t rf_file_size(int fd);
    7171  void set_default_fs(net_address *def) { default_fs=def->copy(); }
    7272  ~file_manager() { if (default_fs) delete default_fs; }
Note: See TracChangeset for help on using the changeset viewer.