thoughts on coalescing functions under libbb

Robert P. J. Day rpjday at mindspring.com
Tue Mar 28 20:02:20 UTC 2006


  given a few free minutes, i scanned the contents of libbb/ and put
together the following restructuring of at least *some* of the
contents, where related functions are collected into the same source
file.  obviously, there are infinitely many ways to do this, this is
just what i came up with on the spur of the moment (there's still lots
in libbb that hasn't been incorporated here):


* error_msgs.c
	default_error_retval (??)
	error_msg()
	error_msg_and_die()
	herror_msg()
	herror_msg_and_die()
	perror_msg()
	perror_nomsg()
	perror_nomsg_and_die()
	verror_msg()
	vherror_msg()
	vperror_msg()
* file_dir_ops.c
	copy_file()
	is_directory()
	make_directory()
	remove_file()
	xstat()
* file_io.c
	full_read()
	full_write()
	safe_read()
	safe_write()
	fgets_str()
* llist.c
	llist_add_to()		/* llist_prepend() */
	llist_add_to_end()	/* llist_append() */
	llist_free()
	llist_free_one()
* md5.c
* messages.c
* modes.c
	mode_string()
	parse_mode()
* mtab.c
	path_mtab_file[]
	erase_mtab()
* net_ops.c
	INET_resolve()
	INET_rresolve()
	INET6_resolve()
	INET6_rresolve()
	xgethostbyname()
	xgethostbymane2()
	create_icmp_socket()
	create_icmp6_socket()
	lookup_port()
	lookup_host()
	xconnect()
* password_ops.c
	correct_password()
	obscure()
	pwd_to_spwd()
	pw_encrypt()
* pathnames.c
	concat_path_file()
	concat_subpath_file()
	get_last_path_component()
	simplify_path()
* sha1.c
* string_ops.c
	chomp()
	last_char_is()
	skip_whitespace()
	safe_strncpy()
	safe_strtol()
	trim()



rday



More information about the busybox mailing list