Skip to content

Commit

Permalink
Add common/headers.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent 8b79bda commit e3a3cb5
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/common/developer/headers.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,25 @@
headers.h
#########

.. cpp:namespace:: Dyninst
Kludges to handle broken system includes and such...

.. code:: cpp
#if defined(os_linux)
# include "common/src/linuxHeaders.h"
#elif defined(os_freebsd)
# include "common/src/freebsdHeaders.h"
#elif defined(os_windows)
# include "common/src/ntHeaders.h"
#endif
.. cpp:enum:: readReturnValue_t

.. cpp:enumerator:: RRVsuccess
.. cpp:enumerator:: RRVnoData
.. cpp:enumerator:: RRVinsufficientData
.. cpp:enumerator:: RRVreadError
.. cpp:enumerator:: RRVerror

.. cpp:function:: template <class T> readReturnValue_t P_socketRead(PDSOCKET fd, T &it, ssize_t sz)
.. cpp:function:: template<class T> readReturnValue_t P_socketRead(PDSOCKET fd, T &it)

0 comments on commit e3a3cb5

Please sign in to comment.