On Sat, 17 Nov 2007 00:31:36 -0500 Ulrich Drepper <drepper@redhat.com> wrote:This setup forbids future addons to file_flags In three years, when we want to add a new indirect feature to socket() call, do we need a new indirect2() syscall ? So I suggest using : union indirect_params i = { .file_flags.flags = O_CLOEXEC, }; fd = syscall (__NR_indirect, &r, &i, sizeof (i)); Or better, you could avoid using 'union indirect_params' in user code, and only use the substructs for each function. /* define this in some include file of course */ struct file_flags { int flags; }; /* use it */ struct file_flags ff = { .flags = O_CLOEXEC}; fd = syscall (__NR_indirect, &r, &ff, sizeof(ff)); This to avoid to copy to kernel un-necessary data, and permitting futures changes. -
| Greg KH | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Greg KH | [patch 26/73] NET: Correct two mistaken skb_reset_mac_header() conversions. |
| Greg Kroah-Hartman | [PATCH 007/196] Chinese: add translation of stable_kernel_rules.txt |
| Alan Cox | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Alexey Dobriyan | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
