Blame


1 fe90d24f 2021-02-04 op /*
2 fe90d24f 2021-02-04 op * Copyright (c) 2021 Omar Polo <op@omarpolo.com>
3 fe90d24f 2021-02-04 op *
4 fe90d24f 2021-02-04 op * Permission to use, copy, modify, and distribute this software for any
5 fe90d24f 2021-02-04 op * purpose with or without fee is hereby granted, provided that the above
6 fe90d24f 2021-02-04 op * copyright notice and this permission notice appear in all copies.
7 fe90d24f 2021-02-04 op *
8 fe90d24f 2021-02-04 op * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 fe90d24f 2021-02-04 op * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 fe90d24f 2021-02-04 op * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 fe90d24f 2021-02-04 op * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 fe90d24f 2021-02-04 op * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 fe90d24f 2021-02-04 op * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 fe90d24f 2021-02-04 op * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 fe90d24f 2021-02-04 op */
16 fe90d24f 2021-02-04 op
17 fe90d24f 2021-02-04 op #include <sys/types.h>
18 fe90d24f 2021-02-04 op #include <sys/prctl.h>
19 fe90d24f 2021-02-04 op
20 fe90d24f 2021-02-04 op int
21 fe90d24f 2021-02-04 op main(void)
22 fe90d24f 2021-02-04 op {
23 fe90d24f 2021-02-04 op prctl(PR_SET_NAME, "foo");
24 fe90d24f 2021-02-04 op }