Profile cover photo
Profile photo
Eric Zhiqiang Ma
139 followers
139 followers
About
Communities and Collections
View all
Posts

Post has shared content
Add a comment...

Post has attachment
Add a comment...

Post has shared content
I didn't ever think that Bjarne is so aggressive, but he's kind of right. Do you agree?
#cpp #c
Photo
Add a comment...

Post has attachment
Add a comment...

Post has attachment

Post has attachment
Tired of figuring out which file to update for grub2 and wrote a script.
Add a comment...

Post has attachment
It is common for programs to write to files in filesystems on disks. However, what if the disk was almost full when your program writes to the filesystem on a disk? For systems software and mission critical programs, it is a better or must-to-do practice to check the available filesystem space before actually writing to files. On POSIX OSes, we have the statvfs POSIX API to get filesystem statistics (On Linux, you may use the Linux specific statfs, but POSIX APIs are better for portability). In this post, we will introduce a C function and a C++ example to use the statvfs API to get the available filesystem space.
Add a comment...

Post has attachment

Post has attachment

Post has attachment
Eric Zhiqiang Ma commented on a post on Blogger.
Awesome advancement!
Add a comment...
Wait while more posts are being loaded