003 File Manager
Current Path:
/usr/src/usr.bin/top
usr
/
src
/
usr.bin
/
top
/
📁
..
📄
Makefile
(194 B)
📄
Makefile.depend
(352 B)
📄
commands.c
(11.93 KB)
📄
commands.h
(1004 B)
📄
display.c
(27.41 KB)
📄
display.h
(1.25 KB)
📄
layout.h
(999 B)
📄
loadavg.h
(735 B)
📄
machine.c
(41.25 KB)
📄
machine.h
(2.5 KB)
📄
screen.c
(6.49 KB)
📄
screen.h
(1.05 KB)
📄
top.1
(13 KB)
📄
top.c
(27.25 KB)
📄
top.h
(1.65 KB)
📄
username.c
(3.36 KB)
📄
username.h
(974 B)
📄
utils.c
(7.64 KB)
📄
utils.h
(654 B)
Editing: username.h
/* * This program may be freely redistributed, * but this entire comment MUST remain intact. * * Copyright (c) 1984, 1989, William LeFebvre, Rice University * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University * Copyright (c) 2016, Randy Westlund * * $FreeBSD$ */ #ifndef USERNAME_H #define USERNAME_H #include <stdbool.h> int enter_user(int uid, char *name, bool wecare); int get_user(int uid); void init_hash(void); char *username(int uid); int userid(char *username); /* * "Table_size" defines the size of the hash tables used to map uid to * username. The number of users in /etc/passwd CANNOT be greater than * this number. If the error message "table overflow: too many users" * is printed by top, then "Table_size" needs to be increased. Things will * work best if the number is a prime number that is about twice the number * of lines in /etc/passwd. */ #define Table_size 20011 #endif /* USERNAME_H */
Upload File
Create Folder