Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

S_ISVTX (sticky bit constant) name explanation

Why S_ISVTX from /usr/src/linux-headers-X.X.X-X/include/uapi/linux/stat.h is called S_ISVTX? What stands for the letters in the name?

like image 362
user619271 Avatar asked Nov 15 '25 14:11

user619271


1 Answers

Quite right. It's from old days, where the TEXT-segment of executables in that special directory would not get freed at once, but kept as long as memory resources permitted it. Applications would start faster. This behavior is obsolete by now, never used in linux as far as I know, and now it is used for access modifications. (See IEEE Std 1003.1-2017, 4.3)

So it is "SaVe TeXt-segments".

like image 96
Lars Düsing Avatar answered Nov 17 '25 10:11

Lars Düsing



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!