gmake -j(数字の指定なし)って、とにかく突っ込めるだけジョブ突っ込んでよって意味なのか…
OpenBSD(uaa@), Ham(JG1UAA), Ingress(Lv14, RES), Japanese(Sagamihara-city, Kanagawa)
Another side: https://social.tchncs.de/@uaa
npub1rarr265r9f9j6ewp960hcm7cvz9zskc7l2ykwul57e7xa60r8css7uf890
Messages from this Mastodon account can read via mostr.pub with npub1j3un8843rpuk4rvwnd7plaknf2lce58yl6qmpkqrwt3tr5k60vfqxmlq0w
gmake -j(数字の指定なし)って、とにかく突っ込めるだけジョブ突っ込んでよって意味なのか…
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#define MAX_ARGS 16
int main(int argc, char *argv[])
{
int i, fds[MAX_ARGS];
memset(fds, ~0, sizeof(fds));
for (i = 1; i < argc && i < MAX_ARGS; i++) {
fds[i] = open(argv[i], O_RDONLY);
if (fds[i] >= 0) printf("%d\n", fds[i]);
}
for (i = 1; i < argc && i < MAX_ARGS; i++)
if (fds[i] >= 0) close(fds[i]);
return 0;
}