zsyscall_windows.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. //go:build windows
  2. // Code generated by 'go generate' using "github.com/Microsoft/go-winio/tools/mkwinsyscall"; DO NOT EDIT.
  3. package winio
  4. import (
  5. "syscall"
  6. "unsafe"
  7. "golang.org/x/sys/windows"
  8. )
  9. var _ unsafe.Pointer
  10. // Do the interface allocations only once for common
  11. // Errno values.
  12. const (
  13. errnoERROR_IO_PENDING = 997
  14. )
  15. var (
  16. errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING)
  17. errERROR_EINVAL error = syscall.EINVAL
  18. )
  19. // errnoErr returns common boxed Errno values, to prevent
  20. // allocations at runtime.
  21. func errnoErr(e syscall.Errno) error {
  22. switch e {
  23. case 0:
  24. return errERROR_EINVAL
  25. case errnoERROR_IO_PENDING:
  26. return errERROR_IO_PENDING
  27. }
  28. // TODO: add more here, after collecting data on the common
  29. // error values see on Windows. (perhaps when running
  30. // all.bat?)
  31. return e
  32. }
  33. var (
  34. modadvapi32 = windows.NewLazySystemDLL("advapi32.dll")
  35. modkernel32 = windows.NewLazySystemDLL("kernel32.dll")
  36. modntdll = windows.NewLazySystemDLL("ntdll.dll")
  37. modws2_32 = windows.NewLazySystemDLL("ws2_32.dll")
  38. procAdjustTokenPrivileges = modadvapi32.NewProc("AdjustTokenPrivileges")
  39. procConvertSecurityDescriptorToStringSecurityDescriptorW = modadvapi32.NewProc("ConvertSecurityDescriptorToStringSecurityDescriptorW")
  40. procConvertSidToStringSidW = modadvapi32.NewProc("ConvertSidToStringSidW")
  41. procConvertStringSecurityDescriptorToSecurityDescriptorW = modadvapi32.NewProc("ConvertStringSecurityDescriptorToSecurityDescriptorW")
  42. procConvertStringSidToSidW = modadvapi32.NewProc("ConvertStringSidToSidW")
  43. procGetSecurityDescriptorLength = modadvapi32.NewProc("GetSecurityDescriptorLength")
  44. procImpersonateSelf = modadvapi32.NewProc("ImpersonateSelf")
  45. procLookupAccountNameW = modadvapi32.NewProc("LookupAccountNameW")
  46. procLookupAccountSidW = modadvapi32.NewProc("LookupAccountSidW")
  47. procLookupPrivilegeDisplayNameW = modadvapi32.NewProc("LookupPrivilegeDisplayNameW")
  48. procLookupPrivilegeNameW = modadvapi32.NewProc("LookupPrivilegeNameW")
  49. procLookupPrivilegeValueW = modadvapi32.NewProc("LookupPrivilegeValueW")
  50. procOpenThreadToken = modadvapi32.NewProc("OpenThreadToken")
  51. procRevertToSelf = modadvapi32.NewProc("RevertToSelf")
  52. procBackupRead = modkernel32.NewProc("BackupRead")
  53. procBackupWrite = modkernel32.NewProc("BackupWrite")
  54. procCancelIoEx = modkernel32.NewProc("CancelIoEx")
  55. procConnectNamedPipe = modkernel32.NewProc("ConnectNamedPipe")
  56. procCreateIoCompletionPort = modkernel32.NewProc("CreateIoCompletionPort")
  57. procCreateNamedPipeW = modkernel32.NewProc("CreateNamedPipeW")
  58. procGetCurrentThread = modkernel32.NewProc("GetCurrentThread")
  59. procGetNamedPipeHandleStateW = modkernel32.NewProc("GetNamedPipeHandleStateW")
  60. procGetNamedPipeInfo = modkernel32.NewProc("GetNamedPipeInfo")
  61. procGetQueuedCompletionStatus = modkernel32.NewProc("GetQueuedCompletionStatus")
  62. procLocalAlloc = modkernel32.NewProc("LocalAlloc")
  63. procLocalFree = modkernel32.NewProc("LocalFree")
  64. procSetFileCompletionNotificationModes = modkernel32.NewProc("SetFileCompletionNotificationModes")
  65. procNtCreateNamedPipeFile = modntdll.NewProc("NtCreateNamedPipeFile")
  66. procRtlDefaultNpAcl = modntdll.NewProc("RtlDefaultNpAcl")
  67. procRtlDosPathNameToNtPathName_U = modntdll.NewProc("RtlDosPathNameToNtPathName_U")
  68. procRtlNtStatusToDosErrorNoTeb = modntdll.NewProc("RtlNtStatusToDosErrorNoTeb")
  69. procWSAGetOverlappedResult = modws2_32.NewProc("WSAGetOverlappedResult")
  70. )
  71. func adjustTokenPrivileges(token windows.Token, releaseAll bool, input *byte, outputSize uint32, output *byte, requiredSize *uint32) (success bool, err error) {
  72. var _p0 uint32
  73. if releaseAll {
  74. _p0 = 1
  75. }
  76. r0, _, e1 := syscall.Syscall6(procAdjustTokenPrivileges.Addr(), 6, uintptr(token), uintptr(_p0), uintptr(unsafe.Pointer(input)), uintptr(outputSize), uintptr(unsafe.Pointer(output)), uintptr(unsafe.Pointer(requiredSize)))
  77. success = r0 != 0
  78. if true {
  79. err = errnoErr(e1)
  80. }
  81. return
  82. }
  83. func convertSecurityDescriptorToStringSecurityDescriptor(sd *byte, revision uint32, secInfo uint32, sddl **uint16, sddlSize *uint32) (err error) {
  84. r1, _, e1 := syscall.Syscall6(procConvertSecurityDescriptorToStringSecurityDescriptorW.Addr(), 5, uintptr(unsafe.Pointer(sd)), uintptr(revision), uintptr(secInfo), uintptr(unsafe.Pointer(sddl)), uintptr(unsafe.Pointer(sddlSize)), 0)
  85. if r1 == 0 {
  86. err = errnoErr(e1)
  87. }
  88. return
  89. }
  90. func convertSidToStringSid(sid *byte, str **uint16) (err error) {
  91. r1, _, e1 := syscall.Syscall(procConvertSidToStringSidW.Addr(), 2, uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(str)), 0)
  92. if r1 == 0 {
  93. err = errnoErr(e1)
  94. }
  95. return
  96. }
  97. func convertStringSecurityDescriptorToSecurityDescriptor(str string, revision uint32, sd *uintptr, size *uint32) (err error) {
  98. var _p0 *uint16
  99. _p0, err = syscall.UTF16PtrFromString(str)
  100. if err != nil {
  101. return
  102. }
  103. return _convertStringSecurityDescriptorToSecurityDescriptor(_p0, revision, sd, size)
  104. }
  105. func _convertStringSecurityDescriptorToSecurityDescriptor(str *uint16, revision uint32, sd *uintptr, size *uint32) (err error) {
  106. r1, _, e1 := syscall.Syscall6(procConvertStringSecurityDescriptorToSecurityDescriptorW.Addr(), 4, uintptr(unsafe.Pointer(str)), uintptr(revision), uintptr(unsafe.Pointer(sd)), uintptr(unsafe.Pointer(size)), 0, 0)
  107. if r1 == 0 {
  108. err = errnoErr(e1)
  109. }
  110. return
  111. }
  112. func convertStringSidToSid(str *uint16, sid **byte) (err error) {
  113. r1, _, e1 := syscall.Syscall(procConvertStringSidToSidW.Addr(), 2, uintptr(unsafe.Pointer(str)), uintptr(unsafe.Pointer(sid)), 0)
  114. if r1 == 0 {
  115. err = errnoErr(e1)
  116. }
  117. return
  118. }
  119. func getSecurityDescriptorLength(sd uintptr) (len uint32) {
  120. r0, _, _ := syscall.Syscall(procGetSecurityDescriptorLength.Addr(), 1, uintptr(sd), 0, 0)
  121. len = uint32(r0)
  122. return
  123. }
  124. func impersonateSelf(level uint32) (err error) {
  125. r1, _, e1 := syscall.Syscall(procImpersonateSelf.Addr(), 1, uintptr(level), 0, 0)
  126. if r1 == 0 {
  127. err = errnoErr(e1)
  128. }
  129. return
  130. }
  131. func lookupAccountName(systemName *uint16, accountName string, sid *byte, sidSize *uint32, refDomain *uint16, refDomainSize *uint32, sidNameUse *uint32) (err error) {
  132. var _p0 *uint16
  133. _p0, err = syscall.UTF16PtrFromString(accountName)
  134. if err != nil {
  135. return
  136. }
  137. return _lookupAccountName(systemName, _p0, sid, sidSize, refDomain, refDomainSize, sidNameUse)
  138. }
  139. func _lookupAccountName(systemName *uint16, accountName *uint16, sid *byte, sidSize *uint32, refDomain *uint16, refDomainSize *uint32, sidNameUse *uint32) (err error) {
  140. r1, _, e1 := syscall.Syscall9(procLookupAccountNameW.Addr(), 7, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(accountName)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(sidSize)), uintptr(unsafe.Pointer(refDomain)), uintptr(unsafe.Pointer(refDomainSize)), uintptr(unsafe.Pointer(sidNameUse)), 0, 0)
  141. if r1 == 0 {
  142. err = errnoErr(e1)
  143. }
  144. return
  145. }
  146. func lookupAccountSid(systemName *uint16, sid *byte, name *uint16, nameSize *uint32, refDomain *uint16, refDomainSize *uint32, sidNameUse *uint32) (err error) {
  147. r1, _, e1 := syscall.Syscall9(procLookupAccountSidW.Addr(), 7, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(sid)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(nameSize)), uintptr(unsafe.Pointer(refDomain)), uintptr(unsafe.Pointer(refDomainSize)), uintptr(unsafe.Pointer(sidNameUse)), 0, 0)
  148. if r1 == 0 {
  149. err = errnoErr(e1)
  150. }
  151. return
  152. }
  153. func lookupPrivilegeDisplayName(systemName string, name *uint16, buffer *uint16, size *uint32, languageId *uint32) (err error) {
  154. var _p0 *uint16
  155. _p0, err = syscall.UTF16PtrFromString(systemName)
  156. if err != nil {
  157. return
  158. }
  159. return _lookupPrivilegeDisplayName(_p0, name, buffer, size, languageId)
  160. }
  161. func _lookupPrivilegeDisplayName(systemName *uint16, name *uint16, buffer *uint16, size *uint32, languageId *uint32) (err error) {
  162. r1, _, e1 := syscall.Syscall6(procLookupPrivilegeDisplayNameW.Addr(), 5, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(buffer)), uintptr(unsafe.Pointer(size)), uintptr(unsafe.Pointer(languageId)), 0)
  163. if r1 == 0 {
  164. err = errnoErr(e1)
  165. }
  166. return
  167. }
  168. func lookupPrivilegeName(systemName string, luid *uint64, buffer *uint16, size *uint32) (err error) {
  169. var _p0 *uint16
  170. _p0, err = syscall.UTF16PtrFromString(systemName)
  171. if err != nil {
  172. return
  173. }
  174. return _lookupPrivilegeName(_p0, luid, buffer, size)
  175. }
  176. func _lookupPrivilegeName(systemName *uint16, luid *uint64, buffer *uint16, size *uint32) (err error) {
  177. r1, _, e1 := syscall.Syscall6(procLookupPrivilegeNameW.Addr(), 4, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(luid)), uintptr(unsafe.Pointer(buffer)), uintptr(unsafe.Pointer(size)), 0, 0)
  178. if r1 == 0 {
  179. err = errnoErr(e1)
  180. }
  181. return
  182. }
  183. func lookupPrivilegeValue(systemName string, name string, luid *uint64) (err error) {
  184. var _p0 *uint16
  185. _p0, err = syscall.UTF16PtrFromString(systemName)
  186. if err != nil {
  187. return
  188. }
  189. var _p1 *uint16
  190. _p1, err = syscall.UTF16PtrFromString(name)
  191. if err != nil {
  192. return
  193. }
  194. return _lookupPrivilegeValue(_p0, _p1, luid)
  195. }
  196. func _lookupPrivilegeValue(systemName *uint16, name *uint16, luid *uint64) (err error) {
  197. r1, _, e1 := syscall.Syscall(procLookupPrivilegeValueW.Addr(), 3, uintptr(unsafe.Pointer(systemName)), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(luid)))
  198. if r1 == 0 {
  199. err = errnoErr(e1)
  200. }
  201. return
  202. }
  203. func openThreadToken(thread syscall.Handle, accessMask uint32, openAsSelf bool, token *windows.Token) (err error) {
  204. var _p0 uint32
  205. if openAsSelf {
  206. _p0 = 1
  207. }
  208. r1, _, e1 := syscall.Syscall6(procOpenThreadToken.Addr(), 4, uintptr(thread), uintptr(accessMask), uintptr(_p0), uintptr(unsafe.Pointer(token)), 0, 0)
  209. if r1 == 0 {
  210. err = errnoErr(e1)
  211. }
  212. return
  213. }
  214. func revertToSelf() (err error) {
  215. r1, _, e1 := syscall.Syscall(procRevertToSelf.Addr(), 0, 0, 0, 0)
  216. if r1 == 0 {
  217. err = errnoErr(e1)
  218. }
  219. return
  220. }
  221. func backupRead(h syscall.Handle, b []byte, bytesRead *uint32, abort bool, processSecurity bool, context *uintptr) (err error) {
  222. var _p0 *byte
  223. if len(b) > 0 {
  224. _p0 = &b[0]
  225. }
  226. var _p1 uint32
  227. if abort {
  228. _p1 = 1
  229. }
  230. var _p2 uint32
  231. if processSecurity {
  232. _p2 = 1
  233. }
  234. r1, _, e1 := syscall.Syscall9(procBackupRead.Addr(), 7, uintptr(h), uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(unsafe.Pointer(bytesRead)), uintptr(_p1), uintptr(_p2), uintptr(unsafe.Pointer(context)), 0, 0)
  235. if r1 == 0 {
  236. err = errnoErr(e1)
  237. }
  238. return
  239. }
  240. func backupWrite(h syscall.Handle, b []byte, bytesWritten *uint32, abort bool, processSecurity bool, context *uintptr) (err error) {
  241. var _p0 *byte
  242. if len(b) > 0 {
  243. _p0 = &b[0]
  244. }
  245. var _p1 uint32
  246. if abort {
  247. _p1 = 1
  248. }
  249. var _p2 uint32
  250. if processSecurity {
  251. _p2 = 1
  252. }
  253. r1, _, e1 := syscall.Syscall9(procBackupWrite.Addr(), 7, uintptr(h), uintptr(unsafe.Pointer(_p0)), uintptr(len(b)), uintptr(unsafe.Pointer(bytesWritten)), uintptr(_p1), uintptr(_p2), uintptr(unsafe.Pointer(context)), 0, 0)
  254. if r1 == 0 {
  255. err = errnoErr(e1)
  256. }
  257. return
  258. }
  259. func cancelIoEx(file syscall.Handle, o *syscall.Overlapped) (err error) {
  260. r1, _, e1 := syscall.Syscall(procCancelIoEx.Addr(), 2, uintptr(file), uintptr(unsafe.Pointer(o)), 0)
  261. if r1 == 0 {
  262. err = errnoErr(e1)
  263. }
  264. return
  265. }
  266. func connectNamedPipe(pipe syscall.Handle, o *syscall.Overlapped) (err error) {
  267. r1, _, e1 := syscall.Syscall(procConnectNamedPipe.Addr(), 2, uintptr(pipe), uintptr(unsafe.Pointer(o)), 0)
  268. if r1 == 0 {
  269. err = errnoErr(e1)
  270. }
  271. return
  272. }
  273. func createIoCompletionPort(file syscall.Handle, port syscall.Handle, key uintptr, threadCount uint32) (newport syscall.Handle, err error) {
  274. r0, _, e1 := syscall.Syscall6(procCreateIoCompletionPort.Addr(), 4, uintptr(file), uintptr(port), uintptr(key), uintptr(threadCount), 0, 0)
  275. newport = syscall.Handle(r0)
  276. if newport == 0 {
  277. err = errnoErr(e1)
  278. }
  279. return
  280. }
  281. func createNamedPipe(name string, flags uint32, pipeMode uint32, maxInstances uint32, outSize uint32, inSize uint32, defaultTimeout uint32, sa *syscall.SecurityAttributes) (handle syscall.Handle, err error) {
  282. var _p0 *uint16
  283. _p0, err = syscall.UTF16PtrFromString(name)
  284. if err != nil {
  285. return
  286. }
  287. return _createNamedPipe(_p0, flags, pipeMode, maxInstances, outSize, inSize, defaultTimeout, sa)
  288. }
  289. func _createNamedPipe(name *uint16, flags uint32, pipeMode uint32, maxInstances uint32, outSize uint32, inSize uint32, defaultTimeout uint32, sa *syscall.SecurityAttributes) (handle syscall.Handle, err error) {
  290. r0, _, e1 := syscall.Syscall9(procCreateNamedPipeW.Addr(), 8, uintptr(unsafe.Pointer(name)), uintptr(flags), uintptr(pipeMode), uintptr(maxInstances), uintptr(outSize), uintptr(inSize), uintptr(defaultTimeout), uintptr(unsafe.Pointer(sa)), 0)
  291. handle = syscall.Handle(r0)
  292. if handle == syscall.InvalidHandle {
  293. err = errnoErr(e1)
  294. }
  295. return
  296. }
  297. func getCurrentThread() (h syscall.Handle) {
  298. r0, _, _ := syscall.Syscall(procGetCurrentThread.Addr(), 0, 0, 0, 0)
  299. h = syscall.Handle(r0)
  300. return
  301. }
  302. func getNamedPipeHandleState(pipe syscall.Handle, state *uint32, curInstances *uint32, maxCollectionCount *uint32, collectDataTimeout *uint32, userName *uint16, maxUserNameSize uint32) (err error) {
  303. r1, _, e1 := syscall.Syscall9(procGetNamedPipeHandleStateW.Addr(), 7, uintptr(pipe), uintptr(unsafe.Pointer(state)), uintptr(unsafe.Pointer(curInstances)), uintptr(unsafe.Pointer(maxCollectionCount)), uintptr(unsafe.Pointer(collectDataTimeout)), uintptr(unsafe.Pointer(userName)), uintptr(maxUserNameSize), 0, 0)
  304. if r1 == 0 {
  305. err = errnoErr(e1)
  306. }
  307. return
  308. }
  309. func getNamedPipeInfo(pipe syscall.Handle, flags *uint32, outSize *uint32, inSize *uint32, maxInstances *uint32) (err error) {
  310. r1, _, e1 := syscall.Syscall6(procGetNamedPipeInfo.Addr(), 5, uintptr(pipe), uintptr(unsafe.Pointer(flags)), uintptr(unsafe.Pointer(outSize)), uintptr(unsafe.Pointer(inSize)), uintptr(unsafe.Pointer(maxInstances)), 0)
  311. if r1 == 0 {
  312. err = errnoErr(e1)
  313. }
  314. return
  315. }
  316. func getQueuedCompletionStatus(port syscall.Handle, bytes *uint32, key *uintptr, o **ioOperation, timeout uint32) (err error) {
  317. r1, _, e1 := syscall.Syscall6(procGetQueuedCompletionStatus.Addr(), 5, uintptr(port), uintptr(unsafe.Pointer(bytes)), uintptr(unsafe.Pointer(key)), uintptr(unsafe.Pointer(o)), uintptr(timeout), 0)
  318. if r1 == 0 {
  319. err = errnoErr(e1)
  320. }
  321. return
  322. }
  323. func localAlloc(uFlags uint32, length uint32) (ptr uintptr) {
  324. r0, _, _ := syscall.Syscall(procLocalAlloc.Addr(), 2, uintptr(uFlags), uintptr(length), 0)
  325. ptr = uintptr(r0)
  326. return
  327. }
  328. func localFree(mem uintptr) {
  329. syscall.Syscall(procLocalFree.Addr(), 1, uintptr(mem), 0, 0)
  330. return
  331. }
  332. func setFileCompletionNotificationModes(h syscall.Handle, flags uint8) (err error) {
  333. r1, _, e1 := syscall.Syscall(procSetFileCompletionNotificationModes.Addr(), 2, uintptr(h), uintptr(flags), 0)
  334. if r1 == 0 {
  335. err = errnoErr(e1)
  336. }
  337. return
  338. }
  339. func ntCreateNamedPipeFile(pipe *syscall.Handle, access uint32, oa *objectAttributes, iosb *ioStatusBlock, share uint32, disposition uint32, options uint32, typ uint32, readMode uint32, completionMode uint32, maxInstances uint32, inboundQuota uint32, outputQuota uint32, timeout *int64) (status ntStatus) {
  340. r0, _, _ := syscall.Syscall15(procNtCreateNamedPipeFile.Addr(), 14, uintptr(unsafe.Pointer(pipe)), uintptr(access), uintptr(unsafe.Pointer(oa)), uintptr(unsafe.Pointer(iosb)), uintptr(share), uintptr(disposition), uintptr(options), uintptr(typ), uintptr(readMode), uintptr(completionMode), uintptr(maxInstances), uintptr(inboundQuota), uintptr(outputQuota), uintptr(unsafe.Pointer(timeout)), 0)
  341. status = ntStatus(r0)
  342. return
  343. }
  344. func rtlDefaultNpAcl(dacl *uintptr) (status ntStatus) {
  345. r0, _, _ := syscall.Syscall(procRtlDefaultNpAcl.Addr(), 1, uintptr(unsafe.Pointer(dacl)), 0, 0)
  346. status = ntStatus(r0)
  347. return
  348. }
  349. func rtlDosPathNameToNtPathName(name *uint16, ntName *unicodeString, filePart uintptr, reserved uintptr) (status ntStatus) {
  350. r0, _, _ := syscall.Syscall6(procRtlDosPathNameToNtPathName_U.Addr(), 4, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(ntName)), uintptr(filePart), uintptr(reserved), 0, 0)
  351. status = ntStatus(r0)
  352. return
  353. }
  354. func rtlNtStatusToDosError(status ntStatus) (winerr error) {
  355. r0, _, _ := syscall.Syscall(procRtlNtStatusToDosErrorNoTeb.Addr(), 1, uintptr(status), 0, 0)
  356. if r0 != 0 {
  357. winerr = syscall.Errno(r0)
  358. }
  359. return
  360. }
  361. func wsaGetOverlappedResult(h syscall.Handle, o *syscall.Overlapped, bytes *uint32, wait bool, flags *uint32) (err error) {
  362. var _p0 uint32
  363. if wait {
  364. _p0 = 1
  365. }
  366. r1, _, e1 := syscall.Syscall6(procWSAGetOverlappedResult.Addr(), 5, uintptr(h), uintptr(unsafe.Pointer(o)), uintptr(unsafe.Pointer(bytes)), uintptr(_p0), uintptr(unsafe.Pointer(flags)), 0)
  367. if r1 == 0 {
  368. err = errnoErr(e1)
  369. }
  370. return
  371. }