ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/Common/posix.hpp
(Generate patch)

Comparing Common/posix.hpp (file contents):
Revision 25 by douglas, 2008-02-09T01:39:22-08:00 vs.
Revision 26 by douglas, 2008-02-23T13:35:09-08:00

# Line 47 | Line 47 | inline int CheckError(int status)
47          \
48          return status
49  
50 + template <typename Function_, typename Arg0_>
51 + int SysCall(Function_ function, Arg0_ arg0)
52 + {
53 +        _SysCall(function(arg0));
54 + }
55 +
56   template <typename Function_, typename Arg0_, typename Arg1_>
57   int SysCall(Function_ function, Arg0_ arg0, Arg1_ arg1)
58   {
# Line 68 | Line 74 | inline int Open(const std::string &path,
74          return Open(path, flags, 0);
75   }
76  
77 + void Close(int fd);
78 +
79   size_t Read(int fd, void *buffer, size_t bytes);
80   size_t ReadMost(int fd, void *buffer, size_t bytes);
81 + size_t Write(int fd, const void *buffer, size_t bytes);
82  
83   }
84  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines