File: samples

package info (click to toggle)
lsof 4.93.2%2Bdfsg-1.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 5,936 kB
  • sloc: ansic: 75,924; sh: 12,859; makefile: 1,686; perl: 1,146; awk: 214
file content (26 lines) | stat: -rw-r--r-- 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
char *
print_off(lf, ty)
	struct lfile *lf;		/* file whose size is to be printed */
	int ty;				/* format type: 0 == 0t<decimal>
					 *		1 == 0x<hexadecimal> */
{
	static buf[128];

	if (!ty)
	    (void) sprintf(buf, SzOffFmt_0t, lf->off);
	else 
	    (void) sprintf(buf, SzOffFmt_x, lf->off);
	return(buf);

}


char *
print_sz(lf)
	struct lfile *lf;		/* file whose size is to be printed */
{
	static buf[128];

	(void) sprintf(buf, SzOffFmt_d, lf->sz);
	return(buf);
}