diff options
| author | Krzesimir Nowak <qdlacz@gmail.com> | 2025-05-18 15:25:17 +0200 |
|---|---|---|
| committer | Krzesimir Nowak <qdlacz@gmail.com> | 2025-05-18 15:25:17 +0200 |
| commit | 3519cecb7c59d0e803369464e555c0c38f9b1268 (patch) | |
| tree | cb9cfca3a2e7a8f71868e0f54102e29b7d444ef9 /core/sys/linux | |
| parent | 306d3a16c4935dbb0f68735de01773800d1bad87 (diff) | |
Formatting fixes
Diffstat (limited to 'core/sys/linux')
| -rw-r--r-- | core/sys/linux/wrappers.odin | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/sys/linux/wrappers.odin b/core/sys/linux/wrappers.odin index d93928364..53eb80f86 100644 --- a/core/sys/linux/wrappers.odin +++ b/core/sys/linux/wrappers.odin @@ -62,15 +62,15 @@ This procedure extracts a directory entry from `buf` at the offset `offs`. in `buf`. The procedure only iterates as much data as loaded in the buffer and does not automatically make a request for the buffer to be refilled. -**Inputs**: -- `buf` - byte buffer with data from `getdents()` -- `offs` - offset to the next possible directory entry in `buf` +Inputs: +- buf: A byte buffer with data from `getdents()` +- offs: An offset to the next possible directory entry in `buf` -**Returns**: -- A pointer to a directory entry in `buf`, or `nil`. -- A bool value denoting if a valid directory entry is returned. +Returns: +- A pointer to a directory entry in `buf`, or `nil` +- A bool value denoting if a valid directory entry is returned -**Example**: +Example: import "core:fmt" import "core:sys/linux" @@ -110,10 +110,10 @@ Obtain the name of dirent as a string. The lifetime of the returned string is bound to the lifetime of the provided dirent structure. -**Inputs**: -- `dirent` - directory entry +Inputs: +- dirent: A directory entry -**Returns**: +Returns: - A name of the entry */ dirent_name :: proc "contextless" (dirent: ^Dirent) -> string #no_bounds_check { |