toolbox/doc
Allison Karlitskaya d4213c2358 Support leaking additional file descriptors to the container
This mirrors the --preserve-fds option of Podman.

Converting an unsigned 'uint', which is what Podman uses for its
--preserve-fds option, to a string is surprisingly annoying.
strconv.Itoa [1] takes a signed 'int', which would require a cast, and
there's no unsigned counterpart.  There's strconv.FormatUint [2] which
takes an unsigned 'uint64', which is better, but would still require a
cast.

So, fmt.Sprint [3] it is, if the cast is to be avoided.  It's more
expensive than the other two functions, but there's no need to worry
unless it's proven to be a performance bottle neck.

Some changes by Debarshi Ray.

[1] https://pkg.go.dev/strconv#Itoa

[2] https://pkg.go.dev/strconv#FormatUint

[3] https://pkg.go.dev/fmt#Sprint

https://github.com/containers/toolbox/issues/1066

Signed-off-by: Allison Karlitskaya <allison.karlitskaya@redhat.com>
2022-11-14 22:28:27 +01:00
..
meson.build build: Replace join_paths with the / operator 2022-10-21 17:24:03 +02:00
toolbox-create.1.md doc/toolbox-create: Mention the file format accepted by --authfile 2022-09-07 17:02:56 +02:00
toolbox-enter.1.md doc: Highlight that --distro has to be used with --release 2022-01-13 22:20:43 +01:00
toolbox-help.1.md doc: Update to match current state & extend docs 2021-05-24 17:15:50 +02:00
toolbox-init-container.1.md doc/toolbox-init-container: Style fixes 2021-06-26 13:16:42 +02:00
toolbox-list.1.md doc/toolbox-list: Drop a reference to buildah 2021-06-26 03:49:48 +02:00
toolbox-rm.1.md doc: Refer to a newer Fedora release in the examples 2021-12-10 03:03:54 +01:00
toolbox-rmi.1.md doc: Refer to a newer Fedora release in the examples 2021-12-10 03:03:54 +01:00
toolbox-run.1.md Support leaking additional file descriptors to the container 2022-11-14 22:28:27 +01:00
toolbox.1.md doc/toolbox: Add section about supported distribution images 2022-01-13 22:20:47 +01:00
toolbox.conf.5.md doc: Document the configuration file 2021-12-17 13:23:37 +01:00