Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7613873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:15:35+00:00 2026-05-31T02:15:35+00:00

On Linux. I want to build a buffer of files. A new file is

  • 0

On Linux.

I want to build a buffer of files. A new file is saved every 30 minutes . But the total number of files allowed are ‘n’.

so when ‘n+1’th file is created, the oldest one has to be deleted.

I found stuff like ‘dirent.h’ and ‘struct stat’ that can help access directory, list all files and get its properties.

struct stat does not however the give time of creation, but just – last modified,last accessed, time of last status changed http://pubs.opengroup.org/onlinepubs/7908799/xsh/sysstat.h.html

Please Help.

P.S: boost is not available right now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:15:36+00:00Added an answer on May 31, 2026 at 2:15 am

    On Linux there is no such thing as file creation time saved with file in file system(s) metadata. There is something close to it, but not the same: inode modification time (this is the st_ctime member of struct stat). From stat man page:

    The field st_ctime is changed by writing or by setting inode
    information (i.e., owner, group group,link count, mode, etc.).

    As long as you do not modify these properties and you do not write (more than zero bytes) to a file(s) – the st_ctime is your “file creation time”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to build a new desktop environment for linux like KDE or GNOME,
I want to build a very simple GUI based application in linux, c++. Which
I want to build a shared library. GNU/Linux is the development and target platform.
I want to build my program with LSB C++ Compiler from the Linux Standard
I have Jenkins installed in Linux and I want to run the build(s) under
I want to be able to build a war file and deploy it in
I want to build a static hello world from C using arm-linux-gnueabi-gcc as opposed
In linux. I want to build an autoclicker that will have an enable/disable function
I want to build a custom linux live cd with only the absolutely essential
I want to configure my autotools build so header/data files only get installed when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.