summaryrefslogtreecommitdiff
path: root/sys/src/9/port/sysfile.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-10-23 15:54:30 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-10-23 15:54:30 +0000
commit5b5f69513adcb9939e4ebd93bf8adfbfdc08fcf1 (patch)
tree8da11e3faf969e99fb49878c8618af4e872dc87d /sys/src/9/port/sysfile.c
parent118063142163382a1b21f205e982c818fecb4f09 (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.c6
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;