mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
- Expand redbean UNIX module - Expand redbean documentation - Ensure Lua copyright is embedded in binary - Increase the PATH_MAX limit especially on NT - Use column major sorting for linenoise completions - Fix some suboptimalities in redbean's new UNIX API - Figured out right flags for Multics newline in raw mode
29 lines
1.2 KiB
C
29 lines
1.2 KiB
C
#if 0
|
|
/*─────────────────────────────────────────────────────────────────╗
|
|
│ To the extent possible under law, Justine Tunney has waived │
|
|
│ all copyright and related or neighboring rights to this file, │
|
|
│ as it is written in the following disclaimers: │
|
|
│ • http://unlicense.org/ │
|
|
│ • http://creativecommons.org/publicdomain/zero/1.0/ │
|
|
╚─────────────────────────────────────────────────────────────────*/
|
|
#endif
|
|
#include "libc/calls/calls.h"
|
|
#include "libc/errno.h"
|
|
#include "libc/runtime/runtime.h"
|
|
#include "libc/stdio/stdio.h"
|
|
#include "libc/str/str.h"
|
|
|
|
/**
|
|
* @fileoverview Command for updating timestamps on files.
|
|
*/
|
|
|
|
int main(int argc, char *argv[]) {
|
|
int i;
|
|
for (i = 1; i < argc; ++i) {
|
|
if (touch(argv[i], 0666) == -1) {
|
|
fprintf(stderr, "ERROR: %s: %s\n", argv[i], strerror(errno));
|
|
exit(1);
|
|
}
|
|
}
|
|
return 0;
|
|
}
|