/[dynamips]/upstream/dynamips-0.2.7-RC3/utils.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/dynamips-0.2.7-RC3/utils.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.6-RC2/utils.h revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC upstream/dynamips-0.2.6-RC3/utils.h revision 4 by dpavlin, Sat Oct 6 16:06:49 2007 UTC
# Line 293  int m_signal_unblock(int sig); Line 293  int m_signal_unblock(int sig);
293  /* Set non-blocking mode on a file descriptor */  /* Set non-blocking mode on a file descriptor */
294  int m_fd_set_non_block(int fd);  int m_fd_set_non_block(int fd);
295    
296    /* Map a memory zone from a file */
297    u_char *memzone_map_file(int fd,size_t len);
298    
299    /* Map a memory zone from a file, with copy-on-write (COW) */
300    u_char *memzone_map_cow_file(int fd,size_t len);
301    
302    /* Create a file to serve as a memory zone */
303    int memzone_create_file(char *filename,size_t len,u_char **ptr);
304    
305    /* Open a file to serve as a COW memory zone */
306    int memzone_open_cow_file(char *filename,size_t len,u_char **ptr);
307    
308    /* Open a file and map it in memory */
309    int memzone_open_file(char *filename,u_char **ptr,off_t *fsize);
310    
311    /* Compute NVRAM checksum */
312    m_uint16_t nvram_cksum(m_uint16_t *ptr,size_t count);
313    
314  #endif  #endif

Legend:
Removed from v.3  
changed lines
  Added in v.4

  ViewVC Help
Powered by ViewVC 1.1.26