[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32746: stop using obsolescent setitimer API

From: Paul Eggert
Subject: bug#32746: stop using obsolescent setitimer API
Date: Sun, 16 Sep 2018 13:19:45 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

POSIX obsoleted the getitimer/setitimer API a decade ago, and now's a good time for Emacs to stop using this obsolescent API, partly to simplify other timestamp improvements that I have in mind, partly to head off any other lurking bugs like the problem I just fixed in commit 238c7cd730819ddba2dbde3c46ee36136575695b relating to a mistaken assumption about the old API.

Attached please find two proposed patches. The first simplifies Emacs proper to just use the current timer_gettime/timer_settime API instead (this is the standard replacement for the obsolescent API). The second patch affects only the MS-Windows code, modifying it to use the new API instead of the old one; I haven't tested it as I don't use MS-Windows.

Attachment: 0001-Simplify-by-not-worrying-about-setitimer.patch
Description: Text Data

Attachment: 0002-Adjust-w32-to-emulate-timer_settime-not-setitimer.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]