Skip to content

Commit

Permalink
Update stdlib/src/sys/_libc.mojo
Browse files Browse the repository at this point in the history
Co-authored-by: Connor Gray <accounts@connorgray.com>
Signed-off-by: Hristo (Izo) G. <53634432+izo0x90@users.noreply.github.com>
  • Loading branch information
izo0x90 and ConnorGray authored Feb 26, 2025
1 parent aae7e43 commit 991d2b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/src/sys/_libc.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ fn pipe(fildes: UnsafePointer[c_int]) -> c_int:

@always_inline
fn close(fd: c_int) -> c_int:
"""[`close()`](https://pubs.opengroup.org/onlinepubs/9799919799/functions/close.html)
— close a file descriptor.
"""
return external_call["close", c_int](fd)


Expand Down

0 comments on commit 991d2b3

Please sign in to comment.