* syscall_cp @ 2016-01-29 22:40 Max Ruttenberg 2016-01-29 22:45 ` syscall_cp Nathan McSween 2016-01-29 22:50 ` syscall_cp Josiah Worcester 0 siblings, 2 replies; 5+ messages in thread From: Max Ruttenberg @ 2016-01-29 22:40 UTC (permalink / raw) To: musl [-- Attachment #1: Type: text/plain, Size: 187 bytes --] What is syscall_cp and what is it supposed to do that syscall isn't? -- Max Ruttenberg, Member of the Technical Staff Emu *Technology* 1400 E Angela Blvd, Unit 101 South Bend, IN 46617 [-- Attachment #2: Type: text/html, Size: 788 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: syscall_cp 2016-01-29 22:40 syscall_cp Max Ruttenberg @ 2016-01-29 22:45 ` Nathan McSween 2016-01-29 22:50 ` syscall_cp Josiah Worcester 1 sibling, 0 replies; 5+ messages in thread From: Nathan McSween @ 2016-01-29 22:45 UTC (permalink / raw) To: musl [-- Attachment #1: Type: text/plain, Size: 318 bytes --] cp is "cancellation point" On Fri, Jan 29, 2016, 2:41 PM Max Ruttenberg <mruttenberg@emutechnology.com> wrote: > What is syscall_cp and what is it supposed to do that syscall isn't? > > > -- > Max Ruttenberg, > Member of the Technical Staff > Emu *Technology* > 1400 E Angela Blvd, Unit 101 > South Bend, IN 46617 > [-- Attachment #2: Type: text/html, Size: 1156 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: syscall_cp 2016-01-29 22:40 syscall_cp Max Ruttenberg 2016-01-29 22:45 ` syscall_cp Nathan McSween @ 2016-01-29 22:50 ` Josiah Worcester 2016-01-29 23:03 ` syscall_cp Max Ruttenberg 1 sibling, 1 reply; 5+ messages in thread From: Josiah Worcester @ 2016-01-29 22:50 UTC (permalink / raw) To: musl [-- Attachment #1: Type: text/plain, Size: 774 bytes --] syscall_cp does largely the same thing as syscall. However, it also checks for a current cancellation request, and exports some symbols (before and after the syscall call) which are used in the thread cancellation implementation. It makes it so the cancellation handler can know whether or not the cancellation request happened during or after a syscall. (if during, it needs to cancel the thread, if after, then it needs to continue executing until the next cancellation point.) On Fri, Jan 29, 2016 at 2:41 PM Max Ruttenberg < mruttenberg@emutechnology.com> wrote: > What is syscall_cp and what is it supposed to do that syscall isn't? > > > -- > Max Ruttenberg, > Member of the Technical Staff > Emu *Technology* > 1400 E Angela Blvd, Unit 101 > South Bend, IN 46617 > [-- Attachment #2: Type: text/html, Size: 1602 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: syscall_cp 2016-01-29 22:50 ` syscall_cp Josiah Worcester @ 2016-01-29 23:03 ` Max Ruttenberg 2016-01-29 23:16 ` syscall_cp Rich Felker 0 siblings, 1 reply; 5+ messages in thread From: Max Ruttenberg @ 2016-01-29 23:03 UTC (permalink / raw) To: musl [-- Attachment #1: Type: text/plain, Size: 1023 bytes --] and syscall_ret ?? On Fri, Jan 29, 2016 at 5:50 PM, Josiah Worcester <josiahw@gmail.com> wrote: > syscall_cp does largely the same thing as syscall. However, it also checks > for a current cancellation request, and exports some symbols (before and > after the syscall call) which are used in the thread cancellation > implementation. It makes it so the cancellation handler can know whether or > not the cancellation request happened during or after a syscall. (if > during, it needs to cancel the thread, if after, then it needs to continue > executing until the next cancellation point.) > > On Fri, Jan 29, 2016 at 2:41 PM Max Ruttenberg < > mruttenberg@emutechnology.com> wrote: > >> What is syscall_cp and what is it supposed to do that syscall isn't? >> >> >> -- >> Max Ruttenberg, >> Member of the Technical Staff >> Emu *Technology* >> 1400 E Angela Blvd, Unit 101 >> South Bend, IN 46617 >> > -- Max Ruttenberg, Member of the Technical Staff Emu *Technology* 1400 E Angela Blvd, Unit 101 South Bend, IN 46617 [-- Attachment #2: Type: text/html, Size: 2749 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: syscall_cp 2016-01-29 23:03 ` syscall_cp Max Ruttenberg @ 2016-01-29 23:16 ` Rich Felker 0 siblings, 0 replies; 5+ messages in thread From: Rich Felker @ 2016-01-29 23:16 UTC (permalink / raw) To: musl On Fri, Jan 29, 2016 at 06:03:54PM -0500, Max Ruttenberg wrote: > and syscall_ret ?? It's a shortcut to avoid duplicating the errno update code in every syscall wrapper. Instead they all just tail call to __syscall_ret which returns -1 and sets errno if the return value was an error code, and otherwise just passes through the return value. BTW could you please reply inline-with/below quoted text on the list rather than top-posting? Top-posting makes it hard to follow the flow of conversation. Rich > On Fri, Jan 29, 2016 at 5:50 PM, Josiah Worcester <josiahw@gmail.com> wrote: > > > syscall_cp does largely the same thing as syscall. However, it also checks > > for a current cancellation request, and exports some symbols (before and > > after the syscall call) which are used in the thread cancellation > > implementation. It makes it so the cancellation handler can know whether or > > not the cancellation request happened during or after a syscall. (if > > during, it needs to cancel the thread, if after, then it needs to continue > > executing until the next cancellation point.) > > > > On Fri, Jan 29, 2016 at 2:41 PM Max Ruttenberg < > > mruttenberg@emutechnology.com> wrote: > > > >> What is syscall_cp and what is it supposed to do that syscall isn't? > >> > >> > >> -- > >> Max Ruttenberg, > >> Member of the Technical Staff > >> Emu *Technology* > >> 1400 E Angela Blvd, Unit 101 > >> South Bend, IN 46617 > >> > > > > > -- > Max Ruttenberg, > Member of the Technical Staff > Emu *Technology* > 1400 E Angela Blvd, Unit 101 > South Bend, IN 46617 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-01-29 23:16 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-01-29 22:40 syscall_cp Max Ruttenberg 2016-01-29 22:45 ` syscall_cp Nathan McSween 2016-01-29 22:50 ` syscall_cp Josiah Worcester 2016-01-29 23:03 ` syscall_cp Max Ruttenberg 2016-01-29 23:16 ` syscall_cp Rich Felker
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/musl/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).