vsta

Check-in [71009589f8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Set errno for failed lookup of a named stat field.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:71009589f8ec563c392981c630e6189c53307b28d4df13b6d10b8afef6b27e3c
User & Date: vandys 2001-12-19 22:20:29
Context
2001-12-21
14:39
More fallout of conversion to CVS. check-in: 1f93436817 user: vandys tags: master, trunk
2001-12-19
22:20
Set errno for failed lookup of a named stat field. check-in: 71009589f8 user: vandys tags: master, trunk
22:16
Add indications in stat() of rootdir as to name filesystem is registered under, and name of its block device. check-in: 13583a6ca9 user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to vsta/src/lib/stat.c.

79
80
81
82
83
84
85

86
87
88
89
90
91
92
	}

	/*
	 * Hunt for named field
	 */
	p = __fieldval(statbuf, field);
	if (p == 0) {

		return(0);
	}

	/*
	 * Make it a null-terminated string
	 */
	q = strchr(p, '\n');







>







79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
	}

	/*
	 * Hunt for named field
	 */
	p = __fieldval(statbuf, field);
	if (p == 0) {
		(void)__seterr(ESRCH);
		return(0);
	}

	/*
	 * Make it a null-terminated string
	 */
	q = strchr(p, '\n');