27.1.2 Printing entries from passwd

We are meant to call these function after a call to mbfl_system_passwd_read().

Function: mbfl_system_passwd_print_entries

Print to stdout the entries of passwd, one per line. The format of each line is:

name='root' passwd='x' uid=0 gid=0 gecos='' dir='/root' \
shell='/bin/bash'
Function: mbfl_system_passwd_print_entries_as_xml

Print to stdout the entries of passwd, one per line, in XML format. The format of each line is:

<entry name='root' passwd='x' uid='0' gid='0' gecos='' \
dir='/root' shell='/bin/bash'/>
Function: mbfl_system_passwd_print_entries_as_json

Print to stdout the entries of passwd, one per line, in JSON format. The format of each line is:

"entry": { "name": "root", "passwd": "x", "uid": 0, "gid": 0, \
"gecos": "", "dir": "/root", "shell": "/bin/bash" }

This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.