Micro template library A library for building device drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

255 lines
16 KiB

  1. \hypertarget{namespacetesting_1_1internal_1_1posix}{}\section{testing\+:\+:internal\+:\+:posix Namespace Reference}
  2. \label{namespacetesting_1_1internal_1_1posix}\index{testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  3. \subsection*{Typedefs}
  4. \begin{DoxyCompactItemize}
  5. \item
  6. typedef struct stat \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a8eb9f08d3af29941c2d2a964cfff3ecb}{Stat\+Struct}}
  7. \end{DoxyCompactItemize}
  8. \subsection*{Functions}
  9. \begin{DoxyCompactItemize}
  10. \item
  11. int \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a3117b067e1f942a2031e666953120ccc}{File\+No}} (F\+I\+LE $\ast$file)
  12. \item
  13. int \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a16ebe936b3a8ea462a94191635aedc27}{Is\+A\+T\+TY}} (int fd)
  14. \item
  15. int \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a2b87b7ff647a128614daf50667eb9304}{Stat}} (const char $\ast$path, \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a8eb9f08d3af29941c2d2a964cfff3ecb}{Stat\+Struct}} $\ast$buf)
  16. \item
  17. int \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a1ef2385a7f8e4c706054da35967e76bd}{Str\+Case\+Cmp}} (const char $\ast$s1, const char $\ast$s2)
  18. \item
  19. char $\ast$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a8e352884793a65ae8be144676f1a9136}{Str\+Dup}} (const char $\ast$src)
  20. \item
  21. int \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_acbad5d4ea5b73fd1765f5f760642932a}{Rm\+Dir}} (const char $\ast$dir)
  22. \item
  23. bool \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_af0d04ed5baeed28353fa38742748a421}{Is\+Dir}} (const \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a8eb9f08d3af29941c2d2a964cfff3ecb}{Stat\+Struct}} \&st)
  24. \item
  25. const char $\ast$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a36fca815713332e5c6dc92c98b6b2574}{Str\+N\+Cpy}} (char $\ast$dest, const char $\ast$src, size\+\_\+t n)
  26. \item
  27. int \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a1ddc8a4fc6bb21da372307485591a212}{Ch\+Dir}} (const char $\ast$dir)
  28. \item
  29. F\+I\+LE $\ast$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a4042201dcc4932641d484e7ddf94de7d}{F\+Open}} (const char $\ast$path, const char $\ast$mode)
  30. \item
  31. F\+I\+LE $\ast$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a9ef6d089cdae03f9d9e0e6d379c40703}{F\+Reopen}} (const char $\ast$path, const char $\ast$mode, F\+I\+LE $\ast$stream)
  32. \item
  33. F\+I\+LE $\ast$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_af7c268eba32d5a718b36b6b3801302e0}{F\+D\+Open}} (int fd, const char $\ast$mode)
  34. \item
  35. int \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_af4beeaaa8d62916d5e3b644a1ddfbd6b}{F\+Close}} (F\+I\+LE $\ast$fp)
  36. \item
  37. int \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a3c6ab13e581a56f1b02f3eb7536c97fd}{Read}} (int fd, void $\ast$buf, unsigned int count)
  38. \item
  39. int \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_af4acf9f78d55f815a18b43786511abef}{Write}} (int fd, const void $\ast$buf, unsigned int count)
  40. \item
  41. int \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a15e5b8f2a535ef1b2529b85b861e4846}{Close}} (int fd)
  42. \item
  43. const char $\ast$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a4b77b14af6f4d18f83d303b98e9349c4}{Str\+Error}} (int errnum)
  44. \item
  45. const char $\ast$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a1d5e3da5a27eed25986859fa83cafe95}{Get\+Env}} (const char $\ast$name)
  46. \item
  47. void \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a69b8278c59359dd6a6f941b4643db9fb}{Abort}} ()
  48. \end{DoxyCompactItemize}
  49. \subsection{Typedef Documentation}
  50. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a8eb9f08d3af29941c2d2a964cfff3ecb}\label{namespacetesting_1_1internal_1_1posix_a8eb9f08d3af29941c2d2a964cfff3ecb}}
  51. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Stat\+Struct@{Stat\+Struct}}
  52. \index{Stat\+Struct@{Stat\+Struct}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  53. \subsubsection{\texorpdfstring{Stat\+Struct}{StatStruct}}
  54. {\footnotesize\ttfamily typedef struct stat \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a8eb9f08d3af29941c2d2a964cfff3ecb}{testing\+::internal\+::posix\+::\+Stat\+Struct}}}
  55. Definition at line 2320 of file gtest.\+h.
  56. \subsection{Function Documentation}
  57. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a69b8278c59359dd6a6f941b4643db9fb}\label{namespacetesting_1_1internal_1_1posix_a69b8278c59359dd6a6f941b4643db9fb}}
  58. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Abort@{Abort}}
  59. \index{Abort@{Abort}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  60. \subsubsection{\texorpdfstring{Abort()}{Abort()}}
  61. {\footnotesize\ttfamily void testing\+::internal\+::posix\+::\+Abort (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  62. Definition at line 2392 of file gtest.\+h.
  63. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a1ddc8a4fc6bb21da372307485591a212}\label{namespacetesting_1_1internal_1_1posix_a1ddc8a4fc6bb21da372307485591a212}}
  64. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Ch\+Dir@{Ch\+Dir}}
  65. \index{Ch\+Dir@{Ch\+Dir}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  66. \subsubsection{\texorpdfstring{Ch\+Dir()}{ChDir()}}
  67. {\footnotesize\ttfamily int testing\+::internal\+::posix\+::\+Ch\+Dir (\begin{DoxyParamCaption}\item[{const char $\ast$}]{dir }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  68. Definition at line 2347 of file gtest.\+h.
  69. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a15e5b8f2a535ef1b2529b85b861e4846}\label{namespacetesting_1_1internal_1_1posix_a15e5b8f2a535ef1b2529b85b861e4846}}
  70. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Close@{Close}}
  71. \index{Close@{Close}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  72. \subsubsection{\texorpdfstring{Close()}{Close()}}
  73. {\footnotesize\ttfamily int testing\+::internal\+::posix\+::\+Close (\begin{DoxyParamCaption}\item[{int}]{fd }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  74. Definition at line 2366 of file gtest.\+h.
  75. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_af4beeaaa8d62916d5e3b644a1ddfbd6b}\label{namespacetesting_1_1internal_1_1posix_af4beeaaa8d62916d5e3b644a1ddfbd6b}}
  76. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!F\+Close@{F\+Close}}
  77. \index{F\+Close@{F\+Close}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  78. \subsubsection{\texorpdfstring{F\+Close()}{FClose()}}
  79. {\footnotesize\ttfamily int testing\+::internal\+::posix\+::\+F\+Close (\begin{DoxyParamCaption}\item[{F\+I\+LE $\ast$}]{fp }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  80. Definition at line 2358 of file gtest.\+h.
  81. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_af7c268eba32d5a718b36b6b3801302e0}\label{namespacetesting_1_1internal_1_1posix_af7c268eba32d5a718b36b6b3801302e0}}
  82. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!F\+D\+Open@{F\+D\+Open}}
  83. \index{F\+D\+Open@{F\+D\+Open}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  84. \subsubsection{\texorpdfstring{F\+D\+Open()}{FDOpen()}}
  85. {\footnotesize\ttfamily F\+I\+LE$\ast$ testing\+::internal\+::posix\+::\+F\+D\+Open (\begin{DoxyParamCaption}\item[{int}]{fd, }\item[{const char $\ast$}]{mode }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  86. Definition at line 2356 of file gtest.\+h.
  87. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a3117b067e1f942a2031e666953120ccc}\label{namespacetesting_1_1internal_1_1posix_a3117b067e1f942a2031e666953120ccc}}
  88. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!File\+No@{File\+No}}
  89. \index{File\+No@{File\+No}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  90. \subsubsection{\texorpdfstring{File\+No()}{FileNo()}}
  91. {\footnotesize\ttfamily int testing\+::internal\+::posix\+::\+File\+No (\begin{DoxyParamCaption}\item[{F\+I\+LE $\ast$}]{file }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  92. Definition at line 2322 of file gtest.\+h.
  93. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a4042201dcc4932641d484e7ddf94de7d}\label{namespacetesting_1_1internal_1_1posix_a4042201dcc4932641d484e7ddf94de7d}}
  94. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!F\+Open@{F\+Open}}
  95. \index{F\+Open@{F\+Open}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  96. \subsubsection{\texorpdfstring{F\+Open()}{FOpen()}}
  97. {\footnotesize\ttfamily F\+I\+LE$\ast$ testing\+::internal\+::posix\+::\+F\+Open (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path, }\item[{const char $\ast$}]{mode }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  98. Definition at line 2349 of file gtest.\+h.
  99. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a9ef6d089cdae03f9d9e0e6d379c40703}\label{namespacetesting_1_1internal_1_1posix_a9ef6d089cdae03f9d9e0e6d379c40703}}
  100. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!F\+Reopen@{F\+Reopen}}
  101. \index{F\+Reopen@{F\+Reopen}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  102. \subsubsection{\texorpdfstring{F\+Reopen()}{FReopen()}}
  103. {\footnotesize\ttfamily F\+I\+LE$\ast$ testing\+::internal\+::posix\+::\+F\+Reopen (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path, }\item[{const char $\ast$}]{mode, }\item[{F\+I\+LE $\ast$}]{stream }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  104. Definition at line 2353 of file gtest.\+h.
  105. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a1d5e3da5a27eed25986859fa83cafe95}\label{namespacetesting_1_1internal_1_1posix_a1d5e3da5a27eed25986859fa83cafe95}}
  106. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Get\+Env@{Get\+Env}}
  107. \index{Get\+Env@{Get\+Env}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  108. \subsubsection{\texorpdfstring{Get\+Env()}{GetEnv()}}
  109. {\footnotesize\ttfamily const char$\ast$ testing\+::internal\+::posix\+::\+Get\+Env (\begin{DoxyParamCaption}\item[{const char $\ast$}]{name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  110. Definition at line 2369 of file gtest.\+h.
  111. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a16ebe936b3a8ea462a94191635aedc27}\label{namespacetesting_1_1internal_1_1posix_a16ebe936b3a8ea462a94191635aedc27}}
  112. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Is\+A\+T\+TY@{Is\+A\+T\+TY}}
  113. \index{Is\+A\+T\+TY@{Is\+A\+T\+TY}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  114. \subsubsection{\texorpdfstring{Is\+A\+T\+T\+Y()}{IsATTY()}}
  115. {\footnotesize\ttfamily int testing\+::internal\+::posix\+::\+Is\+A\+T\+TY (\begin{DoxyParamCaption}\item[{int}]{fd }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  116. Definition at line 2323 of file gtest.\+h.
  117. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_af0d04ed5baeed28353fa38742748a421}\label{namespacetesting_1_1internal_1_1posix_af0d04ed5baeed28353fa38742748a421}}
  118. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Is\+Dir@{Is\+Dir}}
  119. \index{Is\+Dir@{Is\+Dir}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  120. \subsubsection{\texorpdfstring{Is\+Dir()}{IsDir()}}
  121. {\footnotesize\ttfamily bool testing\+::internal\+::posix\+::\+Is\+Dir (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a8eb9f08d3af29941c2d2a964cfff3ecb}{Stat\+Struct}} \&}]{st }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  122. Definition at line 2330 of file gtest.\+h.
  123. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a3c6ab13e581a56f1b02f3eb7536c97fd}\label{namespacetesting_1_1internal_1_1posix_a3c6ab13e581a56f1b02f3eb7536c97fd}}
  124. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Read@{Read}}
  125. \index{Read@{Read}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  126. \subsubsection{\texorpdfstring{Read()}{Read()}}
  127. {\footnotesize\ttfamily int testing\+::internal\+::posix\+::\+Read (\begin{DoxyParamCaption}\item[{int}]{fd, }\item[{void $\ast$}]{buf, }\item[{unsigned int}]{count }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  128. Definition at line 2360 of file gtest.\+h.
  129. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_acbad5d4ea5b73fd1765f5f760642932a}\label{namespacetesting_1_1internal_1_1posix_acbad5d4ea5b73fd1765f5f760642932a}}
  130. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Rm\+Dir@{Rm\+Dir}}
  131. \index{Rm\+Dir@{Rm\+Dir}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  132. \subsubsection{\texorpdfstring{Rm\+Dir()}{RmDir()}}
  133. {\footnotesize\ttfamily int testing\+::internal\+::posix\+::\+Rm\+Dir (\begin{DoxyParamCaption}\item[{const char $\ast$}]{dir }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  134. Definition at line 2329 of file gtest.\+h.
  135. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a2b87b7ff647a128614daf50667eb9304}\label{namespacetesting_1_1internal_1_1posix_a2b87b7ff647a128614daf50667eb9304}}
  136. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Stat@{Stat}}
  137. \index{Stat@{Stat}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  138. \subsubsection{\texorpdfstring{Stat()}{Stat()}}
  139. {\footnotesize\ttfamily int testing\+::internal\+::posix\+::\+Stat (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path, }\item[{\mbox{\hyperlink{namespacetesting_1_1internal_1_1posix_a8eb9f08d3af29941c2d2a964cfff3ecb}{Stat\+Struct}} $\ast$}]{buf }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  140. Definition at line 2324 of file gtest.\+h.
  141. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a1ef2385a7f8e4c706054da35967e76bd}\label{namespacetesting_1_1internal_1_1posix_a1ef2385a7f8e4c706054da35967e76bd}}
  142. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Str\+Case\+Cmp@{Str\+Case\+Cmp}}
  143. \index{Str\+Case\+Cmp@{Str\+Case\+Cmp}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  144. \subsubsection{\texorpdfstring{Str\+Case\+Cmp()}{StrCaseCmp()}}
  145. {\footnotesize\ttfamily int testing\+::internal\+::posix\+::\+Str\+Case\+Cmp (\begin{DoxyParamCaption}\item[{const char $\ast$}]{s1, }\item[{const char $\ast$}]{s2 }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  146. Definition at line 2325 of file gtest.\+h.
  147. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a8e352884793a65ae8be144676f1a9136}\label{namespacetesting_1_1internal_1_1posix_a8e352884793a65ae8be144676f1a9136}}
  148. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Str\+Dup@{Str\+Dup}}
  149. \index{Str\+Dup@{Str\+Dup}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  150. \subsubsection{\texorpdfstring{Str\+Dup()}{StrDup()}}
  151. {\footnotesize\ttfamily char$\ast$ testing\+::internal\+::posix\+::\+Str\+Dup (\begin{DoxyParamCaption}\item[{const char $\ast$}]{src }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  152. Definition at line 2328 of file gtest.\+h.
  153. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a4b77b14af6f4d18f83d303b98e9349c4}\label{namespacetesting_1_1internal_1_1posix_a4b77b14af6f4d18f83d303b98e9349c4}}
  154. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Str\+Error@{Str\+Error}}
  155. \index{Str\+Error@{Str\+Error}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  156. \subsubsection{\texorpdfstring{Str\+Error()}{StrError()}}
  157. {\footnotesize\ttfamily const char$\ast$ testing\+::internal\+::posix\+::\+Str\+Error (\begin{DoxyParamCaption}\item[{int}]{errnum }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  158. Definition at line 2367 of file gtest.\+h.
  159. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_a36fca815713332e5c6dc92c98b6b2574}\label{namespacetesting_1_1internal_1_1posix_a36fca815713332e5c6dc92c98b6b2574}}
  160. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Str\+N\+Cpy@{Str\+N\+Cpy}}
  161. \index{Str\+N\+Cpy@{Str\+N\+Cpy}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  162. \subsubsection{\texorpdfstring{Str\+N\+Cpy()}{StrNCpy()}}
  163. {\footnotesize\ttfamily const char$\ast$ testing\+::internal\+::posix\+::\+Str\+N\+Cpy (\begin{DoxyParamCaption}\item[{char $\ast$}]{dest, }\item[{const char $\ast$}]{src, }\item[{size\+\_\+t}]{n }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  164. Definition at line 2338 of file gtest.\+h.
  165. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1posix_af4acf9f78d55f815a18b43786511abef}\label{namespacetesting_1_1internal_1_1posix_af4acf9f78d55f815a18b43786511abef}}
  166. \index{testing\+::internal\+::posix@{testing\+::internal\+::posix}!Write@{Write}}
  167. \index{Write@{Write}!testing\+::internal\+::posix@{testing\+::internal\+::posix}}
  168. \subsubsection{\texorpdfstring{Write()}{Write()}}
  169. {\footnotesize\ttfamily int testing\+::internal\+::posix\+::\+Write (\begin{DoxyParamCaption}\item[{int}]{fd, }\item[{const void $\ast$}]{buf, }\item[{unsigned int}]{count }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  170. Definition at line 2363 of file gtest.\+h.