diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-10-23 15:54:30 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-10-23 15:54:30 +0000 |
commit | 5b5f69513adcb9939e4ebd93bf8adfbfdc08fcf1 (patch) | |
tree | 8da11e3faf969e99fb49878c8618af4e872dc87d /sys/src/9/port/sysfile.c | |
parent | 118063142163382a1b21f205e982c818fecb4f09 (diff) |
kernel: make growfd(), findfreefd() and newfd2() static
Diffstat (limited to 'sys/src/9/port/sysfile.c')
-rw-r--r-- | sys/src/9/port/sysfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/port/sysfile.c b/sys/src/9/port/sysfile.c index 1ead500a7..b7b0c51aa 100644 --- a/sys/src/9/port/sysfile.c +++ b/sys/src/9/port/sysfile.c @@ -21,7 +21,7 @@ unlockfgrp(Fgrp *f) pprint("warning: process exceeds %d file descriptors\n", ex); } -int +static int growfd(Fgrp *f, int fd) /* fd is always >= 0 */ { Chan **newfd, **oldfd; @@ -70,7 +70,7 @@ growfd(Fgrp *f, int fd) /* fd is always >= 0 */ /* * this assumes that the fgrp is locked */ -int +static int findfreefd(Fgrp *f, int start) { int fd; @@ -110,7 +110,7 @@ newfd(Chan *c, int mode) return fd; } -int +static int newfd2(int fd[2], Chan *c[2]) { Fgrp *f; |