proc/$(ANAME): $(LIBOBJ)
$(AR) rcs $@ $^
-#proc/$(SONAME): proc/library.map
+proc/$(SONAME): proc/library.map
proc/$(SONAME): $(LIBOBJ)
$(CC) -shared -Wl,-soname,$(SONAME) -Wl,--version-script=proc/library.map -o $@ $^ -lc
}
*p = (struct pwbuf *) xmalloc(sizeof(struct pwbuf));
(*p)->uid = uid;
- if ((pw = getpwuid(uid)) == NULL)
- sprintf((*p)->name, "#%d", uid);
+ pw = getpwuid(uid);
+ if (!pw)
+ sprintf((*p)->name, "%d", uid);
else
sprintf((*p)->name, "%-." NAMELENGTH "s", pw->pw_name);
(*p)->next = NULL;
}
*g = (struct grpbuf *) malloc(sizeof(struct grpbuf));
(*g)->gid = gid;
- if ((gr = getgrgid(gid)) == NULL)
- sprintf((*g)->name, "#%d", gid);
+ gr = getgrgid(gid);
+ if (!gr)
+ sprintf((*g)->name, "%d", gid);
else
sprintf((*g)->name, "%-." NAMELENGTH "s", gr->gr_name);
(*g)->next = NULL;
net/ipv4/conf/all/accept_source_route=0
net/ipv4/icmp_echo_ignore_broadcasts =1
#net/ipv4/ip_forward=1
-#net.ipv4.tcp_ecn = 0
#net.ipv4.ip_local_port_range = 32768 61000
+# Broken routers will corrupt the window scaling and ECN
+#net.ipv4.tcp_default_win_scale = 0
+#net.ipv4.tcp_ecn = 0
+
#vm.vfs_cache_pressure = 100
#vm.laptop_mode = 0
#vm.swappiness = 60