xlat16_sysctl.c (f373a82454a8331f0290f3138fa98a12a09de546) xlat16_sysctl.c (c90c7d694693960461e74b594c8f0b82b46292e3)
1/*
2 * Copyright (c) 2000-2001, Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 56 unchanged lines hidden (view full) ---

65 olen = sizeof(dout);
66 if (sysctlbyname("kern.iconv.add", &dout, &olen, &din, sizeof(din)) == -1)
67 return (errno);
68 return (0);
69}
70
71#else /* statically linked */
72
1/*
2 * Copyright (c) 2000-2001, Boris Popov
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 56 unchanged lines hidden (view full) ---

65 olen = sizeof(dout);
66 if (sysctlbyname("kern.iconv.add", &dout, &olen, &din, sizeof(din)) == -1)
67 return (errno);
68 return (0);
69}
70
71#else /* statically linked */
72
73#include <sys/types.h>
74#include <sys/iconv.h>
73#include <errno.h>
74
75int
75#include <errno.h>
76
77int
76kiconv_add_xlat16_table(const char *to, const char *from, const void *data, int datalen)
78kiconv_add_xlat16_table(const char *to __unused, const char *from __unused,
79 const void *data __unused, int datalen __unused)
77{
80{
81
78 return (EINVAL);
79}
80
81#endif /* PIC */
82 return (EINVAL);
83}
84
85#endif /* PIC */