File: common

package info (click to toggle)
libtpms 0.9.2-3.1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,576 kB
  • sloc: ansic: 113,969; makefile: 726; sh: 335; cpp: 125
file content (13 lines) | stat: -rw-r--r-- 184 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13

# Get the size of a file in bytes
#
# @1: filename
function get_filesize()
{
	if [[ "$(uname -s)" =~ (Linux|CYGWIN_NT-) ]]; then
		stat -c%s $1
	else
		# OpenBSD
		stat -f%z $1
	fi
}